From b96e55d6321de22a470b581a9530f92a96330c78 Mon Sep 17 00:00:00 2001 From: 52Hz <80263760+XYZ-dragon@users.noreply.github.com> Date: Fri, 1 Jul 2022 21:10:23 +0800 Subject: [PATCH] Add files via upload --- config.php | 90 ++++++++ index.php | 645 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 735 insertions(+) create mode 100644 config.php create mode 100644 index.php diff --git a/config.php b/config.php new file mode 100644 index 0000000..3f51be5 --- /dev/null +++ b/config.php @@ -0,0 +1,90 @@ + $value) { + $this->$key = $value; + } + } + function get_linklist(int $index, string $type) + { + /* 键名不确定 */ + switch ($type) { + case 'url': + return $this->link_list[array_keys($this->link_list)[$index]][0]; + case 'icon': + return $this->link_list[array_keys($this->link_list)[$index]][1]; + case 'name': + return array_keys($this->link_list)[$index]; + } + } + function get_linklist_without_icon(int $index, string $type) + { + switch ($type) { + case 'url': + return $this->z7z8[array_keys($this->z7z8)[$index]]; + case 'name': + return array_keys($this->z7z8)[$index]; + } + } + function get_wallpaperapi(int $index, string $type) + { + switch ($type) { + case 'url': + return $this->wallpaper_api[array_keys($this->wallpaper_api)[$index]]; + case 'name': + return array_keys($this->wallpaper_api)[$index]; + } + } +} + +$setting = [ + 'domain' => 'http://localhost', + 'title' => 'BLUEEYESWHITEDRAGON.XYZ', // 用了两次 + 'description' => '万千个人站点中的一个', + 'keywords' => '酢豚的小破站', + 'author' => '酢豚', + 'logo_path' => '/favicon.png', + 'logo_text' => ['zuotun', 'xyz'], + 'font_path' => '/font/MIDDST__.TTF', // default_font: Pacifico-Regular 没用上 + 'des_title' => [ + 'Hello world!', 'System.out.print("Hello world!");' + ], + 'des_title_change' => [ + 'Oops !', '哎呀,这都被你发现了 ( 再次点击可切换 )' // 还没用上 + ], + 'social_contact' => [ + 'github' => 'https://github.com/XYZ-dragon', + 'qq' => 'https://wpa.qq.com/msgrd?v=3&uin=964832091&site=qq&menu=yes', + 'email' => '', + 'telegram' => '', + 'twitter' => 'https://twitter.com/zuotun0226' + ], + 'link_list' => [ + '博客' => ['https://blueeyeswhitedragon.xyz/', 'fa-solid fa-blog',], + '兰空图床' => ['http://localhost:8080/', 'fa-solid fa-cloud'], + 'Null' => ['', 'fa-solid fa-music'], + '导航站' => ['', 'fa-solid fa-compass'], + '网址集' => ['https://ionego.net/', 'fa-solid fa-book-bookmark'], + 'Lab' => ['', 'fa-solid fa-flask'] + ], + 'z7z8' => ['站点监控' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5'], + 'weather_api' => 'https://www.yiketianqi.com/free/day?appid=43656176&appsecret=I42og6Lm&unescape=1', // 没用上 + 'wallpaper_api' => [ + '游戏王' => 'https://blueeyeswhitedragon.xyz/api/ygo/', + 'Bing' => 'https://blueeyeswhitedragon.xyz/api/bing/', + '随机风景' => 'https://api.ixiaowai.cn/gqapi/gqapi.php', + '随机动漫' => 'https://api.ixiaowai.cn/api/api.php' + ], + 'Copyright_year' => '2020', + 'Copyright_text' => '酢豚' +]; +$site = new Site($setting); +// echo $site->des_title[0]; diff --git a/index.php b/index.php new file mode 100644 index 0000000..a7c4683 --- /dev/null +++ b/index.php @@ -0,0 +1,645 @@ + + + + + + + + + + + + + + + + + + + <?php echo $site->title; ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+

title; ?>

+ 加载中 +
+
+
+
+ +
+ +
+
+ +
+
+
+
+ +
+ +
+ logo +
+ logo_text[0]; ?> + logo_text[1]; ?> +
+
+ +
+
+ +
+ des_title[0]; ?>
+ des_title[1]; ?> +
+ +
+
+ + +
+
+ + +
+
+ +
+
+ +
+ +
+ +  打开音乐播放器 +
+ +
+
强力的卡片总是伴随着风险 +
+
-「 凯撒 」 +
+
+
+ +
+
+
+
音乐列表
+
回到一言
+
+
+ +
+ +
+ +
+
+
+ 未播放音乐 +
+ +
+
+
+
+
+ +
+
+ 1919 年 8 月 10 日 星期日
11:45:14 +
+
+ 天气  + 加载失败  + °C~ + °C  + + +
+
+
+
+ +
+ + 网站列表 +
+ + +
+
+
+ + + +
+ +
+ +
+
+ + 时间胶囊 + +
+
+
+
今日已经度过了  小时
+
+
+
+
+
+
本周已经度过了  天
+
+
+
+
+
+
本月已经度过了  天
+
+
+
+
+
+
今年已经度过了  个月
+
+
+
+
+
+
+ + 杂七杂八 + +
+ + + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + \ No newline at end of file