From 1946f2ff5fde7675cc599162c4ae7d233cac18d3 Mon Sep 17 00:00:00 2001 From: LyLme Date: Mon, 2 May 2022 22:07:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E8=83=8C=E6=99=AF=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/set.php | 79 ++++++++++++++++++++++--------------------------- admin/theme.php | 58 ++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 43 deletions(-) create mode 100644 admin/theme.php diff --git a/admin/set.php b/admin/set.php index 650c8bd..bda48b7 100644 --- a/admin/set.php +++ b/admin/set.php @@ -15,6 +15,7 @@ if($set=='save') { $title=$_POST['title']; $logo=$_POST['logo']; $background=$_POST['background']; + $wapbackground=$_POST['wapbackground']; $keywords=$_POST['keywords']; $description=$_POST['description']; $copyright=$_POST['copyright']; @@ -22,8 +23,6 @@ if($set=='save') { $yan=$_POST['yan']; $tq=$_POST['tq']; $wztj=$_POST['wztj']; - $template=$_POST['template']; - $apply=$_POST['apply']; $cdnpublic=$_POST['cdnpublic']; $home_title= $_POST['home-title']; if($yan=='true') { @@ -39,16 +38,16 @@ if($set=='save') { saveSetting('title',$title); saveSetting('logo',$logo); saveSetting('background',$background); + saveSetting('wap_background',$wapbackground); saveSetting('keywords',$keywords); saveSetting('description',$description); saveSetting('copyright',$copyright); saveSetting('icp',$icp); saveSetting('wztj',$wztj); - saveSetting('apply',$apply); - saveSetting('template',$template); saveSetting('cdnpublic',$cdnpublic); saveSetting('home-title',$home_title); uploadimg($_FILES["logoimg"],'assets/img/logo.png','logo'); + uploadimg($_FILES["wapbackgroundimg"],'assets/img/wapbackground.jpg','wap_background'); uploadimg($_FILES["backgroundimg"],'assets/img/background.jpg','background'); echo ''; } else { @@ -82,6 +81,9 @@ if($set=='save') { 填写图片的URL,默认值:./assets/img/logo.png/assets/img/logo.png或从本地上传 + + +
@@ -90,8 +92,28 @@ if($set=='save') {
- 填写图片的URL,留空默认值:./assets/img/background.jpg,或/assets/img/background.jpg或从本地上传
设置Bing每日壁纸:查看教程
+ 填写图片的URL:如./assets/img/background.jpg/assets/img/background.jpg或从本地上传
设置Bing每日壁纸:查看教程
+ + + + + +
+ +
+ +
+ + +
+ 留空则使用PC端壁纸 +
+ + + + +
@@ -102,66 +124,37 @@ if($set=='save') { 网站描述,有利于搜索引擎抓取相关信息
-
- - - 申请收录开关,地址:/apply前往申请收录提交页 -
+
- 首页提示语:支持HTML代码 查看效果演示 + 首页提示语:支持HTML代码 仅适用于部分主题
- - + + 显示在首页底部的版权提示,支持HTML代码
- - - 网站统计代码,支持HTML代码 查看教程 + + + 站点底部自定义,可填写网站统计、引用JS文件等支持HTML代码 查看教程
-
- - -
diff --git a/admin/theme.php b/admin/theme.php new file mode 100644 index 0000000..0ed551a --- /dev/null +++ b/admin/theme.php @@ -0,0 +1,58 @@ +alert("主题修改成功!");window.location.href="./theme.php";'); + } else { + exit(''); + } +} +?> +
+
+
+
+
+

主题设置

+
+
+ + + + + + + + + + + + '; + if($conf['template'] == $theme) { + echo ''; + } else { + echo ''; + } + echo ''; +} +?> + +
截图详情选择
'.$theme.'

'.$theme.'

+

'; + echo @file_get_contents( $theme_path.$theme.'/theme.ini'); + echo '

查看主题说明

当前使用

使用
+
+
+
+
+
+ \ No newline at end of file