diff --git a/install/index.php b/install/index.php index d0925de..5b4e967 100644 --- a/install/index.php +++ b/install/index.php @@ -2,6 +2,7 @@ error_reporting(0); session_start(); @header('Content-Type: text/html; charset=UTF-8'); +include '../include/version.php'; $do=isset($_GET['do'])?$_GET['do']:'0'; if(file_exists('install.lock')){ exit('您已经安装过,如需重新安装请删除 install/install.lock 文件后再安装!'); @@ -37,18 +38,7 @@ function checkconnect($connect){ echo '不支持'; } } - -// function random($length, $numeric = 0) { -// $seed = base_convert(md5(microtime().$_SERVER['DOCUMENT_ROOT']), 16, $numeric ? 10 : 35); -// $seed = $numeric ? (str_replace('0', '', $seed).'012340567890') : ($seed.'zZ'.strtoupper($seed)); -// $hash = ''; -// $max = strlen($seed) - 1; -// for($i = 0; $i < $length; $i++) { -// $hash .= $seed[mt_rand(0, $max)]; -// } -// return $hash; -// } -$ver = '1.1.5' +$ver = constant("VERSION"); ?>
diff --git a/install/install.sql b/install/install.sql index f8ebaf9..4ededde 100644 --- a/install/install.sql +++ b/install/install.sql @@ -37,7 +37,7 @@ INSERT INTO `lylme_config` VALUES ('tq', 'true', '天气显示开关'); INSERT INTO `lylme_config` VALUES ('wztj', '', '网站统计代码'); INSERT INTO `lylme_config` VALUES ('template', 'default','网站模板'); INSERT INTO `lylme_config` VALUES ('cdnpublic', NULL,'CDN地址'); -INSERT INTO `lylme_config` VALUES ('apply_gg', '收录说明:六零导航页 - 用户使用协议
- -1.1 二开:六零
-首先感谢 D.Young 和笔下光年的开源项目,虽然原项目的基本上满足了我理想中导航网站的需求,为了更方便的使用,针对我的需求,我在原项目上进行开发并开源,修改如下:
-1. 增加一些常用的搜索引擎(如知乎搜索、哔哩哔哩搜索、在线翻译等)
-2. 为了让添加数据更方便,并且满足一些功能,我使用了PHP+MySql,加入了后台管理的功能
-3. 修改了网站的大部分样式
-4. 增加和优化了一些的内容,比如:返回顶部、获取输入框焦点等
-博客地址:https://blog.lylme.com/
-GitHub:https://github.com/lylme/lylme_spage
-
1.2 前端部分:D.Young
-博客地址:https://blog.5iux.cn/1.3 后端模板:笔下光年
- -后台使用笔下光年的Light Year Admin模板开发
-码云:https://gitee.com/yinqi/Light-Year-Admin-Templatea。
-
- - -1.4 用户即指六零导航页(以下简称“本程序”)后下载、安装、使用系统的用户。 -
-2.用户使用基本规则
diff --git a/install/update2.sql b/install/update2.sql
new file mode 100644
index 0000000..2fa8412
--- /dev/null
+++ b/install/update2.sql
@@ -0,0 +1,3 @@
+INSERT INTO `lylme_config` (`k`, `v`, `description`) VALUES
+('apply_gg', '收录说明:
1. 禁止提交违规违法站点
2. 页面整洁,无多个弹窗广告和恶意跳转
3. 非盈利性网站,网站正常访问
4. 添加本站友链或网站已ICP备案优先收录
', '收录公告'),
+('wap_background', '/assets/img/wapbackground.jpg', '手机端背景');
\ No newline at end of file