mirror of
https://github.com/LyLme/lylme_spage.git
synced 2024-11-17 14:34:08 +08:00
优化 更新程序
This commit is contained in:
parent
cabc3fd818
commit
4a31ee2470
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,7 @@
|
||||
include/log.txt
|
||||
nginx.htaccess
|
||||
install/install.lock
|
||||
admin/cache.php
|
||||
admin/log.txt
|
||||
.htaccess
|
||||
.gitignore
|
||||
|
124
install/data/install_data.sql
Normal file
124
install/data/install_data.sql
Normal file
@ -0,0 +1,124 @@
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
|
||||
INSERT INTO `lylme_groups` (`group_id`, `group_name`, `group_icon`, `group_order`, `group_status`, `group_pwd`) VALUES
|
||||
(1, '常用导航', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-remen\"></use></svg>', 1, 1, 0),
|
||||
(2, '设计视觉', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-sheji\"></use></svg>', 2, 1, 0),
|
||||
(3, '社交&存储', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-msg\"></use></svg>', 3, 1, 0),
|
||||
(4, '工具', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-ai-tool\"></use></svg>', 4, 1, 0),
|
||||
(5, '开发', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-kongzhitai\"></use></svg>', 5, 1, 0),
|
||||
(6, '游戏娱乐', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-game00\"></use></svg>', 6, 1, 0),
|
||||
(7, '网站公告', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-gg00\"></use></svg>', 7, 1, 0);
|
||||
|
||||
INSERT INTO `lylme_links` (`id`, `name`, `group_id`, `url`, `icon`, `PS`, `link_order`, `link_status`, `link_pwd`) VALUES
|
||||
(1, '百度', 1, 'https://www.baidu.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-icon_baidulogo\"></use></svg>', NULL, 10, 1, 0),
|
||||
(2, '腾讯视频', 1, 'https://v.qq.com', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-tengxunshipin\"></use></svg>', NULL, 10, 1, 0),
|
||||
(3, '优酷', 1, 'https://www.youku.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-youku\"></use></svg>', NULL, 10, 1, 0),
|
||||
(4, '爱奇艺', 1, 'https://www.iqiyi.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-aiqiyi\"></use></svg>', NULL, 10, 1, 0),
|
||||
(5, '淘宝', 1, 'https://www.taobao.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-taobao\"></use></svg>', NULL, 10, 1, 0),
|
||||
(6, '哔哩哔哩', 1, 'https://www.bilibili.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-bili\"></use></svg>', NULL, 10, 1, 0),
|
||||
(7, '微博', 1, 'https://www.weibo.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-weibo\"></use></svg>', NULL, 10, 1, 0),
|
||||
(8, 'QQ邮箱', 1, 'https://mail.qq.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-qqmail00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(9, '百度贴吧', 1, 'https://tieba.baidu.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-tieba00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(10, 'CCTV直播', 1, 'https://tv.cctv.com/live/index.shtml', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-cctv\"></use></svg>', NULL, 10, 1, 0),
|
||||
(11, '抖音网页版', 1, 'https://www.douyin.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-douyin00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(12, '快手网页版', 1, 'https://www.kuaishou.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-kuaishou00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(13, '网易云音乐', 1, 'https://music.163.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-wyyyy00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(14, 'QQ音乐', 1, 'https://y.qq.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-qqmusic00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(15, '酷狗音乐', 1, 'https://www.kugou.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-kugou00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(16, '虎牙直播', 1, 'https://www.huya.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-huya00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(17, '斗鱼直播', 1, 'https://www.douyu.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-douyu00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(18, '企鹅电竞', 1, 'https://egame.qq.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-qie00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(19, '微信文件传输助手', 1, 'https://filehelper.weixin.qq.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-wechat00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(20, '120秒视界', 1, 'https://60s.lylme.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-remen\"></use></svg>', NULL, 10, 1, 0),
|
||||
(21, 'Office模板', 2, 'https://www.officeplus.cn/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-office00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(22, '搞定设计', 2, 'https://www.gaoding.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-gaoding00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(23, '素材天下', 2, 'http://www.sucaitianxia.net/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-video\"></use></svg>', NULL, 10, 1, 0),
|
||||
(24, '千库网', 2, 'https://588ku.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-qianku00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(25, '图怪兽', 2, 'https://818ps.com', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-tu00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(26, '站酷', 2, 'https://www.zcool.com.cn/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-zhanku\"></use></svg>', NULL, 10, 1, 0),
|
||||
(27, '阿里图标', 2, 'https://www.iconfont.cn/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-iconfont\"></use></svg>', NULL, 10, 1, 0),
|
||||
(28, 'IconFinder', 2, 'https://www.iconfinder.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-eye\"></use></svg>', NULL, 10, 1, 0),
|
||||
(29, '优设教程', 2, 'https://uiiiuiii.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-jiaocheng\"></use></svg>', NULL, 10, 1, 0),
|
||||
(30, '知乎', 3, 'https://www.zhihu.com/explore', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-zhihu\"></use></svg>', NULL, 10, 1, 0),
|
||||
(31, '豆瓣', 3, 'https://www.douban.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-douban\"></use></svg>', NULL, 10, 1, 0),
|
||||
(32, '简书', 3, 'https://www.jianshu.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-jianshu\"></use></svg>', NULL, 10, 1, 0),
|
||||
(33, '阿里云盘', 3, 'https://www.aliyundrive.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-alipan00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(34, '百度网盘', 3, 'https://pan.baidu.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-baidupan00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(35, '蓝奏云', 3, 'https://www.lanzou.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-lanzou00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(36, '迅雷云盘', 3, 'https://pan.xunlei.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-xunleipan00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(37, 'OneDrive', 3, 'https://onedrive.live.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-OneDrive00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(38, '天翼云盘', 3, 'https://cloud.189.cn/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-tianyipan00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(39, 'UC网盘', 3, 'https://www.yun.cn/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-yunpan\"></use></svg>', NULL, 10, 1, 0),
|
||||
(40, 'QQ邮箱', 3, 'https://mail.qq.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-qqmail00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(41, 'Gmail', 3, 'https://mail.google.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-gmail\"></use></svg>', NULL, 10, 1, 0),
|
||||
(42, 'Hotmail', 3, 'https://outlook.live.com/mail/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-windows\"></use></svg>', NULL, 10, 1, 0),
|
||||
(43, '网易邮箱', 3, 'https://mail.163.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-wangyi\"></use></svg>', NULL, 10, 1, 0),
|
||||
(44, '新浪邮箱', 3, 'https://mail.sina.com.cn/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-xinlangwang\"></use></svg>', NULL, 10, 1, 0),
|
||||
(45, '阿里邮箱', 3, 'https://mail.aliyun.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-yunyouxiang\"></use></svg>', NULL, 10, 1, 0),
|
||||
(46, '在线工具', 4, 'https://tool.lu/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-ai-tool\"></use></svg>', NULL, 10, 1, 0),
|
||||
(47, 'IP查询', 4, 'https://ip.cn/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-wangluo\"></use></svg>', NULL, 10, 1, 0),
|
||||
(48, '文档在线转换', 4, 'https://xpdf.net/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-docto\"></use></svg>', NULL, 10, 1, 0),
|
||||
(49, '谷歌翻译', 4, 'https://translate.google.cn/?hl=zh-CN', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-fanyi\"></use></svg>', NULL, 10, 1, 0),
|
||||
(50, '有道翻译', 4, 'https://fanyi.youdao.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-youdao00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(51, 'HTML在线运行', 4, 'https://c.runoob.com/front-end/61/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-html00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(52, 'MD编辑器', 4, 'https://www.lylme.com/html/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-md\"></use></svg>', NULL, 10, 1, 0),
|
||||
(53, '微PE工具', 4, 'http://www.wepe.com.cn/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-wepe00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(54, '在线代码格式化', 4, 'https://tool.oschina.net/codeformat/html/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-base64\"></use></svg>', NULL, 10, 1, 0),
|
||||
(55, 'JS混淆器', 4, 'http://tool.chinaz.com/tools/jscodeconfusion.aspx', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-jshunxiao\"></use></svg>', NULL, 10, 1, 0),
|
||||
(56, '站长工具', 4, 'http://tool.chinaz.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-zhanzhang00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(57, '在线Ping', 4, 'https://ping.chinaz.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-wangluo1\"></use></svg>', NULL, 10, 1, 0),
|
||||
(58, 'ICP备案查询', 4, 'https://icp.chinaz.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-icp00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(59, '在线PS', 4, 'https://www.photopea.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-ps00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(60, 'W3school', 5, 'http://www.w3school.com.cn/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-h5\"></use></svg>', NULL, 10, 1, 0),
|
||||
(61, 'Github', 5, 'https://github.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-github\"></use></svg>', NULL, 10, 1, 0),
|
||||
(62, '码云Gitee', 5, 'https://gitee.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-gitee00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(63, 'Linux命令查询', 5, 'https://linux.lylme.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-linux\"></use></svg>', NULL, 10, 1, 0),
|
||||
(64, 'CSDN', 5, 'https://www.csdn.net/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-csdn\"></use></svg>', NULL, 10, 1, 0),
|
||||
(65, 'CdnJs', 5, 'https://cdnjs.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-cdnjs\"></use></svg>', NULL, 10, 1, 0),
|
||||
(66, '字节跳动CDN', 5, 'https://cdn.bytedance.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-zjtd00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(67, 'Font Awesome', 5, 'https://fontawesome.com/icons?https://fontawesome.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-font-awesome\"></use></svg>', NULL, 10, 1, 0),
|
||||
(68, 'MSDN我告诉你', 5, 'https://msdn.itellyou.cn/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-msdn00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(69, '腾讯云', 5, 'https://cloud.tencent.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-qcloud00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(70, '阿里云', 5, 'https://www.aliyun.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-alicloud00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(71, '4399小游戏', 6, 'http://www.4399.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-439900\"></use></svg>', NULL, 10, 1, 0),
|
||||
(72, '7k7k小游戏', 6, 'http://www.7k7k.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-7k7k00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(73, '英雄联盟', 6, 'https://lol.qq.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-lol00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(74, '永劫无间', 6, 'https://www.yjwujian.cn/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-yjwj00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(75, 'STEAM', 6, 'https://store.steampowered.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-steam00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(76, '王者荣耀', 6, 'https://pvp.qq.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-wzry00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(77, '3DM GAME', 6, 'https://www.3dmgame.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-games00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(78, '官方主页', 7, 'https://www.lylme.com/', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-home00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(79, '申请收录', 7, '/apply', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-sq00\"></use></svg>', NULL, 10, 1, 0),
|
||||
(80, '建议&反馈', 7, 'https://support.qq.com/products/356339', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-fk00\"></use></svg>', NULL, 10, 1, 0);
|
||||
|
||||
INSERT INTO `lylme_sou` (`sou_id`, `sou_alias`, `sou_name`, `sou_hint`, `sou_color`, `sou_link`, `sou_waplink`, `sou_icon`, `sou_st`, `sou_order`) VALUES
|
||||
(1, 'baidu', '百度一下', '百度一下,你就知道', '#0c498c', 'https://www.baidu.com/s?word=', 'https://m.baidu.com/s?word=', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-icon_baidulogo\"></use></svg>', 1, 1),
|
||||
(2, 'sogou', '搜狗搜索', '上网从搜狗开始', '#696a6d', 'https://www.sogou.com/web?query=', NULL, '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-sougou\"></use></svg>', 1, 2),
|
||||
(3, 'bing', 'Bing必应', '微软必应搜索', '#696a6d', 'https://cn.bing.com/search?', NULL, '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-bing\"></use></svg>', 1, 3),
|
||||
(4, 'zhihu', '知乎搜索', '有问题,上知乎', '#0084fe', 'https://www.zhihu.com/search?q=', NULL, '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-zhihu\"></use></svg>', 1, 4),
|
||||
(5, 'bilibili', '哔哩哔哩', '(゜-゜)つロ 干杯~', '#00aeec', 'https://search.bilibili.com/all?keyword=', NULL, '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-bili\"></use></svg>', 1, 5),
|
||||
(6, 'weibo', '微博搜索', '随时随地发现新鲜事', '#ff5722', 'https://s.weibo.com/weibo/', '', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-weibo\"></use></svg>', 1, 6),
|
||||
(7, 'google', '谷歌搜索', '值得信任的搜索引擎', '#3B83FA', 'https://www.google.com/search?q=', '', '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-google00\"></use></svg>', 1, 7),
|
||||
(8, 'fanyi', '在线翻译', '输入翻译内容(自动检测语言)', '#0084fe', 'https://fanyi.baidu.com/#auto/zh/', NULL, '<svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-fanyi\"></use></svg>', 1, 8);
|
||||
|
||||
INSERT INTO `lylme_tags` (`tag_id`, `tag_name`, `tag_link`, `tag_target`) VALUES
|
||||
(1, '主页', 'https://www.lylme.com/', 0),
|
||||
(2, '博客', 'https://blog.lylme.com/', 1),
|
||||
(3, 'Github', 'https://github.com/lylme', 1),
|
||||
(4, '关于本站', '/about', 1),
|
||||
(5, '申请收录', '/apply', 1),
|
||||
(6, '查看', '/pwd', 0);
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
167
install/data/install_struct.sql
Normal file
167
install/data/install_struct.sql
Normal file
@ -0,0 +1,167 @@
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_apply`;
|
||||
CREATE TABLE `lylme_apply` (
|
||||
`apply_id` int(4) NOT NULL,
|
||||
`apply_name` varchar(20) NOT NULL,
|
||||
`apply_url` varchar(255) NOT NULL,
|
||||
`apply_group` int(2) NOT NULL,
|
||||
`apply_icon` text NOT NULL,
|
||||
`apply_mail` varchar(30) NOT NULL,
|
||||
`apply_time` datetime NOT NULL,
|
||||
`apply_status` int(11) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='收录申请';
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_config`;
|
||||
CREATE TABLE `lylme_config` (
|
||||
`id` int(11) NOT NULL,
|
||||
`k` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '键',
|
||||
`v` text COLLATE utf8mb4_unicode_ci COMMENT '值',
|
||||
`description` varchar(60) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '描述'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='导航配置' ROW_FORMAT=COMPACT;
|
||||
|
||||
INSERT INTO `lylme_config` (`id`, `k`, `v`, `description`) VALUES
|
||||
(1, 'admin_user', 'admin', '管理员用户名'),
|
||||
(2, 'admin_pwd', '1ef987f238b7a80eaf3689cfc42aad2d', '管理员密码(1ef987f238b7a80eaf3689cfc42aad2d)对应123456'),
|
||||
(3, 'md5pass', '1', '启用md5加密密码'),
|
||||
(4, 'apply', '0', '收录申请'),
|
||||
(5, 'apply_gg', '<b>收录说明:</b><br>1. 禁止提交违规违法站点<br>2. 页面整洁,无多个弹窗广告和恶意跳转<br>3. 非盈利性网站,网站正常访问<br>4. 添加本站友链或网站已ICP备案优先收录<br>', '收录公告'),
|
||||
(6, 'background', './assets/img/background.jpg', '背景图片'),
|
||||
(7, 'cdnpublic', NULL, 'CDN地址'),
|
||||
(8, 'copyright', 'Copyright ©2022 <a href=\"/\">LyLme Spage</a>. All Rights Reserved.', '版权代码'),
|
||||
(9, 'description', '六零导航页(LyLme Spage)致力于简洁高效无广告的上网导航和搜索入口,沉淀最具价值链接,全站无商业推广,简约而不简单。', '网站描述'),
|
||||
(10, 'home-title', '<h2 class=\"title\">上网,从这里开始!</h2>', '首页标题'),
|
||||
(11, 'icp', '', '备案号'),
|
||||
(12, 'keywords', '六零导航页,百度搜索,哔哩哔哩搜索,知乎搜索,六零导航,LyLme Spage,六零,LyLme,网站导航,上网导航', '关键字'),
|
||||
(13, 'logo', './assets/img/logo.png', '网站图标'),
|
||||
(14, 'template', 'default', '网站模板'),
|
||||
(15, 'title', '上网导航 - LyLme Spage', '网站名称'),
|
||||
(16, 'tq', 'true', '天气显示开关'),
|
||||
(17, 'version', 'v1.8.0', '程序版本'),
|
||||
(18, 'wap_background', NULL, '手机端背景'),
|
||||
(19, 'wztj', '', '网站统计代码'),
|
||||
(20, 'yan', 'true', '随机一言开关');
|
||||
|
||||
|
||||
ALTER TABLE `lylme_config`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD UNIQUE KEY `k` (`k`);
|
||||
|
||||
|
||||
ALTER TABLE `lylme_config`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
|
||||
COMMIT;
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_groups`;
|
||||
CREATE TABLE `lylme_groups` (
|
||||
`group_id` int(2) NOT NULL COMMENT '分组ID',
|
||||
`group_name` varchar(10) NOT NULL COMMENT '分组名称',
|
||||
`group_icon` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '分组图标',
|
||||
`group_order` int(4) NOT NULL DEFAULT '5' COMMENT '分组排序',
|
||||
`group_status` int(1) NOT NULL DEFAULT '1' COMMENT '分组状态',
|
||||
`group_pwd` int(2) NOT NULL DEFAULT '0' COMMENT '加密组ID'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_links`;
|
||||
CREATE TABLE `lylme_links` (
|
||||
`id` int(4) NOT NULL COMMENT '网站ID',
|
||||
`name` varchar(20) NOT NULL COMMENT '链接标题',
|
||||
`group_id` int(2) NOT NULL DEFAULT '1' COMMENT '分组名称',
|
||||
`url` varchar(255) NOT NULL COMMENT '链接地址',
|
||||
`icon` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '链接图标',
|
||||
`PS` varchar(255) DEFAULT NULL COMMENT '备注',
|
||||
`link_order` int(4) DEFAULT '10' COMMENT '链接排序',
|
||||
`link_status` int(1) NOT NULL DEFAULT '1' COMMENT '链接状态',
|
||||
`link_pwd` int(2) DEFAULT '0' COMMENT '加密组ID'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_pwd`;
|
||||
CREATE TABLE `lylme_pwd` (
|
||||
`pwd_id` int(2) NOT NULL COMMENT '加密组ID',
|
||||
`pwd_name` varchar(20) NOT NULL COMMENT '加密组名称',
|
||||
`pwd_key` varchar(20) NOT NULL COMMENT '加密组密码',
|
||||
`pwd_ps` varchar(30) DEFAULT NULL COMMENT '加密组备注'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_sou`;
|
||||
CREATE TABLE `lylme_sou` (
|
||||
`sou_id` int(11) NOT NULL COMMENT '搜索引擎ID',
|
||||
`sou_alias` varchar(20) NOT NULL COMMENT '搜索引擎别名',
|
||||
`sou_name` varchar(20) NOT NULL COMMENT '搜索引擎名称',
|
||||
`sou_hint` varchar(30) NOT NULL DEFAULT '请输入搜索关键词' COMMENT '搜索引擎提示文字',
|
||||
`sou_color` varchar(20) NOT NULL DEFAULT '#696a6d' COMMENT '搜索引擎字体颜色',
|
||||
`sou_link` varchar(255) NOT NULL COMMENT '搜索引擎地址',
|
||||
`sou_waplink` varchar(255) DEFAULT NULL COMMENT '搜索引擎移动端地址',
|
||||
`sou_icon` text NOT NULL COMMENT '搜索引擎图标',
|
||||
`sou_st` int(1) NOT NULL DEFAULT '1' COMMENT '搜索引擎开关',
|
||||
`sou_order` int(2) NOT NULL COMMENT '搜索引擎排序'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='搜索引擎';
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_tags`;
|
||||
CREATE TABLE `lylme_tags` (
|
||||
`tag_id` int(11) NOT NULL,
|
||||
`tag_name` varchar(30) NOT NULL,
|
||||
`tag_link` varchar(60) NOT NULL,
|
||||
`tag_target` int(1) NOT NULL DEFAULT '1'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
ALTER TABLE `lylme_apply`
|
||||
ADD PRIMARY KEY (`apply_id`);
|
||||
|
||||
ALTER TABLE `lylme_config`
|
||||
ADD PRIMARY KEY (`k`) USING BTREE;
|
||||
|
||||
ALTER TABLE `lylme_groups`
|
||||
ADD PRIMARY KEY (`group_id`) USING BTREE,
|
||||
ADD UNIQUE KEY `group_name` (`group_name`) USING BTREE;
|
||||
|
||||
ALTER TABLE `lylme_links`
|
||||
ADD PRIMARY KEY (`id`) USING BTREE,
|
||||
ADD KEY `组` (`group_id`) USING BTREE;
|
||||
|
||||
ALTER TABLE `lylme_pwd`
|
||||
ADD PRIMARY KEY (`pwd_id`);
|
||||
|
||||
ALTER TABLE `lylme_sou`
|
||||
ADD PRIMARY KEY (`sou_id`);
|
||||
|
||||
ALTER TABLE `lylme_tags`
|
||||
ADD PRIMARY KEY (`tag_id`);
|
||||
|
||||
|
||||
ALTER TABLE `lylme_apply`
|
||||
MODIFY `apply_id` int(4) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
ALTER TABLE `lylme_groups`
|
||||
MODIFY `group_id` int(2) NOT NULL AUTO_INCREMENT COMMENT '分组ID';
|
||||
|
||||
ALTER TABLE `lylme_links`
|
||||
MODIFY `id` int(4) NOT NULL AUTO_INCREMENT COMMENT '网站ID';
|
||||
|
||||
ALTER TABLE `lylme_pwd`
|
||||
MODIFY `pwd_id` int(2) NOT NULL AUTO_INCREMENT COMMENT '加密组ID';
|
||||
|
||||
ALTER TABLE `lylme_sou`
|
||||
MODIFY `sou_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '搜索引擎ID';
|
||||
|
||||
ALTER TABLE `lylme_tags`
|
||||
MODIFY `tag_id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
|
||||
ALTER TABLE `lylme_links`
|
||||
ADD CONSTRAINT `组` FOREIGN KEY (`group_id`) REFERENCES `lylme_groups` (`group_id`);
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
4
install/data/update8.sql
Normal file
4
install/data/update8.sql
Normal file
@ -0,0 +1,4 @@
|
||||
-- v1.8.0
|
||||
ALTER TABLE `lylme_apply` CHANGE `apply_mail` `apply_desc` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '链接描述';
|
||||
ALTER TABLE `lylme_links` CHANGE `PS` `link_desc` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '链接描述';
|
||||
ALTER TABLE `lylme_tags` ADD `sort` INT NOT NULL DEFAULT '60' COMMENT '权重' AFTER `tag_target`;
|
@ -1,342 +1,324 @@
|
||||
<?php
|
||||
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('您已经安装过,如需重新安装请删除<font color=red> install/install.lock </font>文件后再安装!');
|
||||
/**
|
||||
* @File: index.php
|
||||
* @User: LyLme <admin@lylme.com>
|
||||
* @Date: 2023-12-16
|
||||
* @Description: 六零导航页安装程序
|
||||
*/
|
||||
|
||||
header('Content-Type:text/html; charset=utf-8');
|
||||
|
||||
// 检测php版本号
|
||||
if (phpversion() < '5.4') {
|
||||
exit('抱歉,您的PHP版本过低,请升级到PHP5.4或更高版本再安装!');
|
||||
}
|
||||
|
||||
function checkfunc($f,$m = false) {
|
||||
if (function_exists($f)) {
|
||||
return '<font color="green">可用</font>';
|
||||
} else {
|
||||
if ($m == false) {
|
||||
return '<font color="black">不支持</font>';
|
||||
} else {
|
||||
return '<font color="red">不支持</font>';
|
||||
}
|
||||
}
|
||||
// 不限制响应时间
|
||||
// error_reporting(0);
|
||||
set_time_limit(0);
|
||||
|
||||
// 设置系统路径
|
||||
define('IN_INSTALL', true);
|
||||
define('INSTALL_PATH', str_replace('\\', '/', dirname(__FILE__)));
|
||||
define('ROOT_PATH', dirname(INSTALL_PATH . '/'));
|
||||
|
||||
// 版权信息设置
|
||||
$cfg_copyright = '© 2021-' . date("Y") . ' LYLME';
|
||||
|
||||
// 获取当前步骤
|
||||
$s = getStep();
|
||||
|
||||
// 提示已经安装
|
||||
if (is_file(INSTALL_PATH . '/install.lock') && $s != md5('done')) {
|
||||
require_once(INSTALL_PATH . '/templates/step_5.php');
|
||||
exit();
|
||||
}
|
||||
|
||||
function checkclass($f,$m = false) {
|
||||
if (class_exists($f)) {
|
||||
return '<font color="green">可用</font>';
|
||||
} else {
|
||||
if ($m == false) {
|
||||
return '<font color="black">不支持</font>';
|
||||
} else {
|
||||
return '<font color="red">不支持</font>';
|
||||
}
|
||||
}
|
||||
// 执行相应操作
|
||||
$GLOBALS['isNext'] = true;
|
||||
|
||||
// 获取当前步骤
|
||||
function getStep()
|
||||
{
|
||||
$s1 = $_GET['s'] ?? 0;
|
||||
// 初始化参数
|
||||
$s2 = $_POST['s'] ?? 0;
|
||||
// 如果有GET值则覆盖POST值
|
||||
if ($s1 > 0 && in_array($s1, [1, 63832, md5('done')])) {
|
||||
$s2 = $s1;
|
||||
}
|
||||
return $s2;
|
||||
}
|
||||
function checkconnect($connect){
|
||||
if(function_exists($connect)){
|
||||
echo '<font color="green">可用</font>';}
|
||||
else {
|
||||
echo '<font color="red">不支持</font>';
|
||||
}
|
||||
|
||||
// 协议说明
|
||||
if ($s == 0) {
|
||||
require_once(INSTALL_PATH . '/templates/step_0.php');
|
||||
exit();
|
||||
}
|
||||
$ver = constant("VERSION");
|
||||
?>
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no,minimal-ui">
|
||||
<title>六零导航页 - 安装程序</title>
|
||||
<link href="//lib.baomitu.com/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-fixed-top navbar-default">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<span class="navbar-brand">安装向导</span>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="container" style="padding-top:60px;">
|
||||
<div class="col-xs-12 col-sm-8 col-lg-6 center-block" style="float: none;">
|
||||
|
||||
<?php if($do=='0'){
|
||||
$_SESSION['checksession']=1;
|
||||
?>
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading" style="background: #15A638;">
|
||||
<h3 class="panel-title" align="center">用户使用协议阅读</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<p><iframe src="readme.html" style="width:100%;height:465px;"></iframe></p>
|
||||
<p align="center"><a id="agreebtn" class="btn btn-primary" href="index.php?do=1">同意协议并开始安装</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php }elseif($do=='1'){?>
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title" align="center">环境检查</h3>
|
||||
</div>
|
||||
<div class="progress progress-striped">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 10%">
|
||||
<span class="sr-only">10%</span>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:20%">函数检测</th>
|
||||
<th style="width:15%">需求</th>
|
||||
<th style="width:15%">当前</th>
|
||||
<th style="width:50%">用途</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>PHP 5.4及以上(推荐使用PHP5.6)</td>
|
||||
<td>必须</td>
|
||||
<td><?php echo version_compare(PHP_VERSION, '5.4.0', '>')?'<font color="green">'.PHP_VERSION.'</font>':'<font color="red">'.PHP_VERSION.'</font>'; ?></td>
|
||||
<td>PHP版本支持</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PDO</td>
|
||||
<td>必须</td>
|
||||
<td><?php echo checkclass('PDO',true); ?></td>
|
||||
<td>数据库连接</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>file_get_contents()</td>
|
||||
<td>必须</td>
|
||||
<td><?php echo checkfunc('file_get_contents',true); ?></td>
|
||||
<td>读取文件</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>session</td>
|
||||
<td>必须</td>
|
||||
<td><?php echo $_SESSION['checksession']==1?'<font color="green">可用</font>':'<font color="red">不支持</font>'; ?></td>
|
||||
<td>PHP必备功能</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<p><span><a class="btn btn-primary" href="index.php?do=0"><<上一步</a></span>
|
||||
<span style="float:right"><a class="btn btn-primary" href="index.php?do=2" align="right">下一步>></a></span></p>
|
||||
</div>
|
||||
|
||||
<?php }elseif($do=='2'){?>
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title" align="center">数据库配置</h3>
|
||||
</div>
|
||||
<div class="progress progress-striped">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 30%">
|
||||
<span class="sr-only">30%</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
if(!defined("SAE_ACCESSKEY"))
|
||||
echo <<<HTML
|
||||
<form action="?do=3" class="form-sign" method="post">
|
||||
<label for="name">数据库地址:</label>
|
||||
<input type="text" class="form-control" name="db_host" value="localhost">
|
||||
<label for="name">数据库端口:</label>
|
||||
<input type="text" class="form-control" name="db_port" value="3306">
|
||||
<label for="name">数据库用户名:</label>
|
||||
<input type="text" class="form-control" name="db_user">
|
||||
<label for="name">数据库密码:</label>
|
||||
<input type="text" class="form-control" name="db_pwd">
|
||||
<label for="name">数据库名:</label>
|
||||
<input type="text" class="form-control" name="db_name">
|
||||
<br><input type="submit" class="btn btn-primary btn-block" name="submit" value="保存配置">
|
||||
</form><br/>
|
||||
(如果已事先填写好config.php相关数据库配置,请 <a href="?do=3&jump=1">点击此处</a> 跳过这一步!)
|
||||
HTML;
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php }elseif($do=='3'){
|
||||
?>
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title" align="center">保存数据库</h3>
|
||||
</div>
|
||||
<div class="progress progress-striped">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 50%">
|
||||
<span class="sr-only">50%</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
if(defined("SAE_ACCESSKEY") || $_GET['jump']==1){
|
||||
include_once '../config.php';
|
||||
if(!$dbconfig['user']||!$dbconfig['pwd']||!$dbconfig['dbname']) {
|
||||
echo '<div class="alert alert-danger">请先填写好数据库并保存后再安装!<hr/><a href="javascript:history.back(-1)"><< 返回上一页</a></div>';
|
||||
} else {
|
||||
if(!$con=mysqli_connect($dbconfig['host'],$dbconfig['user'],$dbconfig['pwd'],$dbconfig['dbname'],$dbconfig['port'])){
|
||||
if(mysqli_connect_errno()==2002)
|
||||
echo '<div class="alert alert-warning">连接数据库失败,数据库地址填写错误!</div>';
|
||||
elseif(mysqli_connect_errno()==1045)
|
||||
echo '<div class="alert alert-warning">连接数据库失败,数据库用户名或密码填写错误!</div>';
|
||||
elseif(mysqli_connect_errno()==1049)
|
||||
echo '<div class="alert alert-warning">连接数据库失败,数据库名不存在!</div>';
|
||||
else
|
||||
echo '<div class="alert alert-warning">连接数据库失败,['.mysqli_connect_errno().']'.mysqli_connect_error().'</div>';
|
||||
}elseif(version_compare(mysqli_get_server_info($con), '5.5.3', '<')){
|
||||
echo '<div class="alert alert-warning">MySQL数据库版本太低,需要MySQL 5.6或以上版本!</div>';
|
||||
}else{
|
||||
echo '<div class="alert alert-success">数据库配置文件保存成功!</div>';
|
||||
if(mysqli_query($con, "select * from lylme_config where 1")==FALSE)
|
||||
echo '<p align="right"><a class="btn btn-primary btn-block" href="?do=4">创建数据表>></a></p>';
|
||||
else
|
||||
echo '<div class="list-group-item list-group-item-info">系统检测到你已安装过六零导航页</div>
|
||||
<div class="list-group-item">
|
||||
<a href="?do=6" class="btn btn-block btn-info">跳过安装</a>
|
||||
</div>
|
||||
<div class="list-group-item">
|
||||
<a href="?do=4" onclick="if(!confirm(\'全新安装将会清空所有数据,是否继续?\')){return false;}" class="btn btn-block btn-warning">强制全新安装</a>
|
||||
</div>';
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$db_host=isset($_POST['db_host'])?$_POST['db_host']:NULL;
|
||||
$db_port=isset($_POST['db_port'])?$_POST['db_port']:NULL;
|
||||
$db_user=isset($_POST['db_user'])?$_POST['db_user']:NULL;
|
||||
$db_pwd=isset($_POST['db_pwd'])?$_POST['db_pwd']:NULL;
|
||||
$db_name=isset($_POST['db_name'])?$_POST['db_name']:NULL;
|
||||
|
||||
if($db_host==null || $db_port==null || $db_user==null || $db_pwd==null || $db_name==null){
|
||||
echo '<div class="alert alert-danger">保存错误,请确保每项都不为空<hr/><a href="javascript:history.back(-1)"><< 返回上一页</a></div>';
|
||||
} else {
|
||||
$config='<?php
|
||||
/*数据库配置*/
|
||||
$dbconfig=array(
|
||||
"host" => "'.$db_host.'", //数据库服务器
|
||||
"port" => '.$db_port.', //数据库端口
|
||||
"user" => "'.$db_user.'", //数据库用户名
|
||||
"pwd" => "'.$db_pwd.'", //数据库密码
|
||||
"dbname" => "'.$db_name.'", //数据库名
|
||||
);
|
||||
?>';
|
||||
if(!$con=mysqli_connect($db_host,$db_user,$db_pwd,$db_name,$db_port)){
|
||||
if(mysqli_connect_errno()==2002)
|
||||
echo '<div class="alert alert-warning">连接数据库失败,数据库地址填写错误!</div>';
|
||||
elseif(mysqli_connect_errno()==1045)
|
||||
echo '<div class="alert alert-warning">连接数据库失败,数据库用户名或密码填写错误!</div>';
|
||||
elseif(mysqli_connect_errno()==1044)
|
||||
echo '<div class="alert alert-warning">连接数据库失败,数据库名填写错误!</div>';
|
||||
elseif(mysqli_connect_errno()==1049)
|
||||
echo '<div class="alert alert-warning">连接数据库失败,数据库名不存在!</div>';
|
||||
else
|
||||
echo '<div class="alert alert-warning">连接数据库失败,['.mysqli_connect_errno().']'.mysqli_connect_error().'</div>';
|
||||
}elseif(version_compare(mysqli_get_server_info($con), '5.5.3', '<')){
|
||||
echo '<div class="alert alert-warning">MySQL数据库版本太低,需要MySQL 5.6或以上版本!</div>';
|
||||
}elseif(file_put_contents('../config.php',$config)){
|
||||
if(function_exists("opcache_reset"))@opcache_reset();
|
||||
echo '<div class="alert alert-success">数据库配置文件保存成功!</div>';
|
||||
if(mysqli_query($con, "select * from lylme_config where 1")==FALSE)
|
||||
echo '<p align="right"><a class="btn btn-primary btn-block" href="?do=4">创建数据表>></a></p>';
|
||||
else
|
||||
echo '<div class="list-group-item list-group-item-info">系统检测到你已安装过六零导航页</div>
|
||||
<div class="list-group-item">
|
||||
<a href="?do=6" class="btn btn-block btn-info">跳过安装</a>
|
||||
</div>
|
||||
<div class="list-group-item">
|
||||
<a href="?do=4" onclick="if(!confirm(\'全新安装将会清空所有数据,是否继续?\')){return false;}" class="btn btn-block btn-warning">强制全新安装</a>
|
||||
</div>';
|
||||
}else
|
||||
echo '<div class="alert alert-danger">保存失败,请确保网站根目录有写入权限<hr/><a href="javascript:history.back(-1)"><< 返回上一页</a></div>';
|
||||
}
|
||||
// 环境检测
|
||||
if ($s == 1) {
|
||||
// 获取检测的路径数据
|
||||
$iswrite_array = getIsWriteArray();
|
||||
// 获取检测的函数数据
|
||||
$exists_array = getExistsFuncArray();
|
||||
// 获取扩展要求数据
|
||||
$extendArray = getExtendArray();
|
||||
// 引入环境检测html
|
||||
require_once(INSTALL_PATH . '/templates/step_1.php');
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php }elseif($do=='4'){?>
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title" align="center">创建数据表</h3>
|
||||
</div>
|
||||
<div class="progress progress-striped">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 70%">
|
||||
<span class="sr-only">70%</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
include_once '../config.php';
|
||||
if(!$dbconfig['user']||!$dbconfig['pwd']||!$dbconfig['dbname']) {
|
||||
echo '<div class="alert alert-danger">请先填写好数据库并保存后再安装!<hr/><a href="javascript:history.back(-1)"><< 返回上一页</a></div>';
|
||||
} else {
|
||||
date_default_timezone_set("PRC");
|
||||
$date = date("Y-m-d");
|
||||
$sql=file_get_contents("install.sql");
|
||||
$sql=explode(';',$sql);
|
||||
$sql[] = "INSERT INTO `lylme_config` VALUES ('build', '".$date."', '建站日期')";
|
||||
$cn = mysqli_connect($dbconfig['host'],$dbconfig['user'],$dbconfig['pwd'],$dbconfig['dbname'],$dbconfig['port']);
|
||||
if (!$cn) die('链接数据库失败:['.mysqli_connect_errno().']'.mysqli_connect_error());
|
||||
mysqli_query($cn, "set sql_mode = ''");
|
||||
mysqli_query($cn, "set names utf8");
|
||||
$t=0; $e=0; $error='';
|
||||
for($i=0;$i<count($sql);$i++) {
|
||||
if (trim($sql[$i])=='')continue;
|
||||
if(mysqli_query($cn, $sql[$i])) {
|
||||
++$t;
|
||||
} else {
|
||||
++$e;
|
||||
$error.=mysqli_error($cn).'<br/>';
|
||||
}
|
||||
}
|
||||
// 配置文件
|
||||
if ($s == 2) {
|
||||
require_once(INSTALL_PATH . '/templates/step_2.php');
|
||||
exit();
|
||||
}
|
||||
if($e==0) {
|
||||
echo '<div class="alert alert-success">安装成功!<br/>SQL成功'.$t.'句/失败'.$e.'句</div><p align="right"><a class="btn btn-block btn-primary" href="index.php?do=5">下一步>></a></p>';
|
||||
} else {
|
||||
echo '<div class="alert alert-danger">安装失败<br/>SQL成功'.$t.'句/失败'.$e.'句<br/>错误信息:'.$error.'</div><p align="right"><a class="btn btn-block btn-primary" href="index.php?do=4">点此进行重试</a></p>';
|
||||
// 正在安装
|
||||
if ($s == 3) {
|
||||
require_once(INSTALL_PATH . '/templates/step_3.php');
|
||||
require_once(ROOT_PATH . "/include/version.php");
|
||||
require_once(ROOT_PATH . "/include/function.php");
|
||||
|
||||
if ($_POST['s'] == 3) {
|
||||
|
||||
// 初始化信息
|
||||
$dbhost = $_POST['dbhost'] ?? '';
|
||||
$dbname = $_POST['dbname'] ?? '';
|
||||
$dbuser = $_POST['dbuser'] ?? '';
|
||||
$dbpwd = $_POST['dbpwd'] ?? '';
|
||||
$dbport = $_POST['dbport'] ?? 3306;
|
||||
|
||||
$testdata = $_POST['testdata'] ?? '';
|
||||
|
||||
// 连接证数据库
|
||||
try {
|
||||
$dsn = "mysql:host={$dbhost};port={$dbport};charset=utf8";
|
||||
$pdo = new PDO($dsn, $dbuser, $dbpwd);
|
||||
$pdo->query("SET NAMES utf8"); // 设置数据库编码
|
||||
} catch (Exception $e) {
|
||||
insError('数据库连接错误,请检查!');
|
||||
}
|
||||
|
||||
// 查询数据库
|
||||
$res = $pdo->query('show Databases');
|
||||
|
||||
// 遍历所有数据库,存入数组
|
||||
$dbnameArr = [];
|
||||
foreach ($res->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$dbnameArr[] = $row['Database'];
|
||||
}
|
||||
|
||||
// 检查数据库是否存在,没有则创建数据库
|
||||
if (!in_array(trim($dbname), $dbnameArr)) {
|
||||
if (!$pdo->exec("CREATE DATABASE `$dbname`")) {
|
||||
insError("创建数据库失败,请检查权限或联系管理员!");
|
||||
}
|
||||
}
|
||||
|
||||
// 数据库创建完成,开始连接
|
||||
$pdo->query("USE `$dbname`");
|
||||
|
||||
//数据库配置
|
||||
$config_str = '<?php
|
||||
/*数据库配置*/
|
||||
$dbconfig=array(
|
||||
"host" => "' . $dbhost . '", //数据库服务器
|
||||
"port" => ' . $dbport . ', //数据库端口
|
||||
"user" => "' . $dbuser . '", //数据库用户名
|
||||
"pwd" => "' . $dbpwd . '", //数据库密码
|
||||
"dbname" => "' . $dbname . '", //数据库名
|
||||
);
|
||||
?>';
|
||||
|
||||
$fp = fopen(ROOT_PATH . '/config.php', 'w');
|
||||
fwrite($fp, $config_str);
|
||||
fclose($fp);
|
||||
|
||||
// 防止浏览器缓存
|
||||
$buffer = ini_get('output_buffering');
|
||||
echo str_repeat(' ', $buffer + 1);
|
||||
|
||||
insInfo("数据库连接文件创建完成!");
|
||||
ob_flush();
|
||||
flush();
|
||||
|
||||
// 创建表结构
|
||||
$tbstruct = readDataFile('install_struct.sql');
|
||||
$pdo->exec(trim($tbstruct));
|
||||
|
||||
insInfo("数据库结构导入完成!");
|
||||
ob_flush();
|
||||
flush();
|
||||
|
||||
// 导入其他安装数据
|
||||
|
||||
$pdo->query("INSERT INTO `lylme_config` (`id`, `k`, `v`, `description`) VALUES (NULL, 'build', '" . date("Y-m-d H:i") . "', '建站日期');");
|
||||
$data_str = readDataFile('install_data.sql');
|
||||
$pdo->exec(trim($data_str));
|
||||
insInfo("数据导入完成!");
|
||||
ob_flush();
|
||||
flush();
|
||||
|
||||
|
||||
|
||||
// 查看是否需要安装测试数据
|
||||
// if ($testdata == 'true') {
|
||||
// insInfo("正在加载测试数据!");
|
||||
// ob_flush();
|
||||
// flush();
|
||||
|
||||
// $sqlstr_file = readDataFile('install_testdata.sql');
|
||||
// $pdo->exec(trim($sqlstr_file));
|
||||
|
||||
// insInfo("测试数据导入完成!");
|
||||
// ob_flush();
|
||||
// flush();
|
||||
// }
|
||||
|
||||
// 结束缓存区
|
||||
ob_end_flush();
|
||||
|
||||
// 安装完成进行跳转
|
||||
echo '<script>setTimeout(function () { location.href="?s=' . md5('done') . '"; }, 2000)</script>';
|
||||
@get_curl(msgInfo("aHR0cHM6Ly9kZXYuaGFvLmx5bG1lLmNvbS9pbnN0YWxscz92PQ=="));
|
||||
exit();
|
||||
}
|
||||
exit();
|
||||
}
|
||||
// 检测数据库信息
|
||||
if ($s == 63832) {
|
||||
$dbhost = $_GET['dbhost'] ?? '';
|
||||
$dbuser = $_GET['dbuser'] ?? '';
|
||||
$dbpwd = $_GET['dbpwd'] ?? '';
|
||||
$dbport = $_GET['dbport'] ?? '';
|
||||
try {
|
||||
$dsn = "mysql:host=$dbhost;port={$dbport};charset=utf8";
|
||||
$pdo = new PDO($dsn, $dbuser, $dbpwd);
|
||||
echo 'true';
|
||||
} catch (Exception $e) {
|
||||
echo 'false';
|
||||
}
|
||||
exit();
|
||||
}
|
||||
// 安装完成
|
||||
if ($s == md5('done')) {
|
||||
require_once(INSTALL_PATH . '/templates/step_4.php');
|
||||
$fp = fopen(INSTALL_PATH . '/install.lock', 'w');
|
||||
fwrite($fp, '程序已正确安装,重新安装请删除本文件');
|
||||
fclose($fp);
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php }elseif($do=='5'){ ?>
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title" align="center">安装完成</h3>
|
||||
</div>
|
||||
<div class="progress progress-striped">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
|
||||
<span class="sr-only">100%</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
require '../include/function.php';
|
||||
// 获取扩展要求数据
|
||||
function getExtendArray()
|
||||
{
|
||||
$data = [
|
||||
[
|
||||
'name' => 'CURL',
|
||||
'status' => extension_loaded('curl'),
|
||||
],
|
||||
[
|
||||
'name' => 'PDO Mysql',
|
||||
'status' => extension_loaded('PDO') && extension_loaded('pdo_mysql'),
|
||||
],
|
||||
[
|
||||
'name' => 'GD',
|
||||
'status' => extension_loaded('gd'),
|
||||
],
|
||||
[
|
||||
'name' => 'mbstring',
|
||||
'status' => extension_loaded('mbstring'),
|
||||
]
|
||||
];
|
||||
foreach ($data as $item) {
|
||||
!$item['status'] && setIsNext(false);
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
get_curl(base64_decode("aHR0cHM6Ly9kZXYuaGFvLmx5bG1lLmNvbS9pbnN0YWxscz92PQ==").$ver.'&date='.date('Y-m-d H:i').'&url='.$_SERVER['HTTP_HOST']);
|
||||
@file_put_contents("install.lock",'安装锁');
|
||||
echo '<div class="alert alert-info"><font color="green">安装完成!管理账号和密码是:admin/123456</font><br/><br/><a href="../" target="_blank">>>网站首页</a>|<a href="../admin/" target="_blank">>>后台管理</a><hr/>更多设置选项请登录后台管理进行修改。<br/><br/><font color="#FF0033">如果你的空间不支持本地文件读写,请自行在install/ 目录建立 install.lock 文件!</font></div></div>';
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
// 获取检测的路径数据
|
||||
function getIsWriteArray()
|
||||
{
|
||||
return [
|
||||
'/config.php'
|
||||
];
|
||||
}
|
||||
|
||||
<?php }elseif($do=='6'){ ?>
|
||||
// 获取检测的函数数据
|
||||
function getExistsFuncArray()
|
||||
{
|
||||
return ['curl_init', 'mb_substr'];
|
||||
}
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title" align="center">安装完成</h3>
|
||||
</div>
|
||||
<div class="progress progress-striped">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
|
||||
<span class="sr-only">100%</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
@file_put_contents("install.lock",'安装锁');
|
||||
echo '<div class="alert alert-info"><font color="green">安装完成!管理账号和密码是:admin/123456</font><br/><br/><a href="../" target="_blank">>>网站首页</a>|<a href="../admin/" target="_blank">>>后台管理</a><hr/>更多设置选项请登录后台管理进行修改。<br/><br/><font color="#FF0033">如果你的空间不支持本地文件读写,请自行在install/ 目录建立 install.lock 文件!</font></div>';
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
// 测试可写性
|
||||
function isWrite($file)
|
||||
{
|
||||
if (is_writable(ROOT_PATH . $file)) {
|
||||
echo '<span>可写</span>';
|
||||
} else {
|
||||
echo '<span class="col-red">不可写</span>';
|
||||
setIsNext(false);
|
||||
}
|
||||
}
|
||||
|
||||
<?php }?>
|
||||
// 测试函数是否存在
|
||||
function isFunExists($func)
|
||||
{
|
||||
$state = function_exists($func);
|
||||
if ($state === false) {
|
||||
setIsNext(false);
|
||||
}
|
||||
return $state;
|
||||
}
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
// 测试函数是否存在
|
||||
function isFunExistsTxt($func)
|
||||
{
|
||||
if (isFunExists($func)) {
|
||||
echo '<span>无</span>';
|
||||
} else {
|
||||
echo '<span class="col-red">需安装</span>';
|
||||
setIsNext(false);
|
||||
}
|
||||
}
|
||||
|
||||
// 清除txt中的BOM
|
||||
function clearBOM($contents)
|
||||
{
|
||||
$charset[1] = substr($contents, 0, 1);
|
||||
$charset[2] = substr($contents, 1, 1);
|
||||
$charset[3] = substr($contents, 2, 1);
|
||||
if (ord($charset[1]) == 239 &&
|
||||
ord($charset[2]) == 187 &&
|
||||
ord($charset[3]) == 191) {
|
||||
return substr($contents, 3);
|
||||
} else {
|
||||
return $contents;
|
||||
}
|
||||
}
|
||||
|
||||
// 设置是否允许下一步
|
||||
function setIsNext(bool $bool)
|
||||
{
|
||||
$GLOBALS['isNext'] = $bool;
|
||||
}
|
||||
|
||||
// 获取data文件夹中的文件内容
|
||||
function readDataFile(string $file)
|
||||
{
|
||||
return file_get_contents(INSTALL_PATH . '/data/' . $file);
|
||||
}
|
||||
|
||||
function insInfo($str)
|
||||
{
|
||||
echo '<script>$("#install").append("' . $str . '<br>");</script>';
|
||||
}
|
||||
|
||||
function insError($str, $isExit = false)
|
||||
{
|
||||
insInfo("<span class='col-red'>$str</span>");
|
||||
exit();
|
||||
}
|
||||
function msgInfo($data)
|
||||
{
|
||||
return base64_decode($data) . constant("VERSION") . '&url=' . $_SERVER['HTTP_HOST'];
|
||||
}
|
||||
|
@ -1,244 +0,0 @@
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET NAMES utf8 */;
|
||||
/*!50503 SET NAMES utf8mb4 */;
|
||||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_apply`;
|
||||
CREATE TABLE IF NOT EXISTS `lylme_apply` (
|
||||
`apply_id` int(4) NOT NULL AUTO_INCREMENT,
|
||||
`apply_name` varchar(20) NOT NULL,
|
||||
`apply_url` varchar(255) NOT NULL,
|
||||
`apply_group` int(2) NOT NULL,
|
||||
`apply_icon` text NOT NULL,
|
||||
`apply_mail` varchar(30) NOT NULL,
|
||||
`apply_time` datetime NOT NULL,
|
||||
`apply_status` int(11) NOT NULL,
|
||||
PRIMARY KEY (`apply_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='收录申请';
|
||||
|
||||
DELETE FROM `lylme_apply`;
|
||||
/*!40000 ALTER TABLE `lylme_apply` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `lylme_apply` ENABLE KEYS */;
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_config`;
|
||||
CREATE TABLE IF NOT EXISTS `lylme_config` (
|
||||
`k` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '键',
|
||||
`v` text COLLATE utf8mb4_unicode_ci COMMENT '值',
|
||||
`description` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '描述',
|
||||
PRIMARY KEY (`k`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPACT COMMENT='导航配置';
|
||||
|
||||
DELETE FROM `lylme_config`;
|
||||
/*!40000 ALTER TABLE `lylme_config` DISABLE KEYS */;
|
||||
INSERT INTO `lylme_config` (`k`, `v`, `description`) VALUES
|
||||
('admin_user', 'admin', '管理员账号'),
|
||||
('admin_pwd', '123456', '管理员密码'),
|
||||
('apply', '0', '收录申请'),
|
||||
('apply_gg', '<b>收录说明:</b><br>1. 禁止提交违规违法站点<br>2. 页面整洁,无多个弹窗广告和恶意跳转<br>3. 非盈利性网站,网站正常访问<br>4. 添加本站友链或网站已ICP备案优先收录<br>', '收录公告'),
|
||||
('background', './assets/img/background.jpg', '背景图片'),
|
||||
('cdnpublic', NULL, 'CDN地址'),
|
||||
('copyright', 'Copyright ©2022 <a href="/">LyLme Spage</a>. All Rights Reserved.', '版权代码'),
|
||||
('description', '六零导航页(LyLme Spage)致力于简洁高效无广告的上网导航和搜索入口,沉淀最具价值链接,全站无商业推广,简约而不简单。', '网站描述'),
|
||||
('home-title', '<h2 class="title">上网,从这里开始!</h2>', '首页标题'),
|
||||
('icp', '', '备案号'),
|
||||
('keywords', '六零导航页,百度搜索,哔哩哔哩搜索,知乎搜索,六零导航,LyLme Spage,六零,LyLme,网站导航,上网导航', '关键字'),
|
||||
('logo', './assets/img/logo.png', '网站图标'),
|
||||
('template', 'default', '网站模板'),
|
||||
('title', '上网导航 - LyLme Spage', '网站名称'),
|
||||
('tq', 'true', '天气显示开关'),
|
||||
('version', 'v1.3.0', '程序版本'),
|
||||
('wap_background', NULL, '手机端背景'),
|
||||
('wztj', '', '网站统计代码'),
|
||||
('yan', 'true', '随机一言开关');
|
||||
/*!40000 ALTER TABLE `lylme_config` ENABLE KEYS */;
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_groups`;
|
||||
CREATE TABLE IF NOT EXISTS `lylme_groups` (
|
||||
`group_id` int(2) NOT NULL AUTO_INCREMENT COMMENT '分组ID',
|
||||
`group_name` varchar(10) NOT NULL COMMENT '分组名称',
|
||||
`group_icon` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '分组图标',
|
||||
`group_order` int(4) NOT NULL DEFAULT '5' COMMENT '分组排序',
|
||||
`group_status` int(1) NOT NULL DEFAULT '1' COMMENT '分组状态',
|
||||
`group_pwd` int(2) NOT NULL DEFAULT '0' COMMENT '加密组ID',
|
||||
PRIMARY KEY (`group_id`) USING BTREE,
|
||||
UNIQUE KEY `group_name` (`group_name`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
|
||||
|
||||
DELETE FROM `lylme_groups`;
|
||||
/*!40000 ALTER TABLE `lylme_groups` DISABLE KEYS */;
|
||||
INSERT INTO `lylme_groups` (`group_id`, `group_name`, `group_icon`, `group_order`, `group_status`, `group_pwd`) VALUES
|
||||
(1, '常用导航', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-remen"></use></svg>', 1, 1, 0),
|
||||
(2, '设计视觉', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-sheji"></use></svg>', 2, 1, 0),
|
||||
(3, '社交&存储', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-msg"></use></svg>', 3, 1, 0),
|
||||
(4, '工具', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-ai-tool"></use></svg>', 4, 1, 0),
|
||||
(5, '开发', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-kongzhitai"></use></svg>', 5, 1, 0),
|
||||
(6, '游戏娱乐', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-game00"></use></svg>', 6, 1, 0),
|
||||
(7, '网站公告', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-gg00"></use></svg>', 7, 1, 0);
|
||||
/*!40000 ALTER TABLE `lylme_groups` ENABLE KEYS */;
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_links`;
|
||||
CREATE TABLE IF NOT EXISTS `lylme_links` (
|
||||
`id` int(4) NOT NULL AUTO_INCREMENT COMMENT '网站ID',
|
||||
`name` varchar(20) NOT NULL COMMENT '链接标题',
|
||||
`group_id` int(2) NOT NULL DEFAULT '1' COMMENT '分组名称',
|
||||
`url` varchar(255) NOT NULL COMMENT '链接地址',
|
||||
`icon` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '链接图标',
|
||||
`PS` varchar(255) DEFAULT NULL COMMENT '备注',
|
||||
`link_order` int(4) DEFAULT '10' COMMENT '链接排序',
|
||||
`link_status` int(1) NOT NULL DEFAULT '1' COMMENT '链接状态',
|
||||
`link_pwd` int(2) DEFAULT '0' COMMENT '加密组ID',
|
||||
PRIMARY KEY (`id`) USING BTREE,
|
||||
KEY `组` (`group_id`) USING BTREE,
|
||||
CONSTRAINT `组` FOREIGN KEY (`group_id`) REFERENCES `lylme_groups` (`group_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
|
||||
|
||||
DELETE FROM `lylme_links`;
|
||||
/*!40000 ALTER TABLE `lylme_links` DISABLE KEYS */;
|
||||
INSERT INTO `lylme_links` (`id`, `name`, `group_id`, `url`, `icon`, `PS`, `link_order`, `link_status`, `link_pwd`) VALUES
|
||||
(1, '百度', 1, 'https://www.baidu.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-icon_baidulogo"></use></svg>', NULL, 10, 1, 0),
|
||||
(2, '腾讯视频', 1, 'https://v.qq.com', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-tengxunshipin"></use></svg>', NULL, 10, 1, 0),
|
||||
(3, '优酷', 1, 'https://www.youku.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-youku"></use></svg>', NULL, 10, 1, 0),
|
||||
(4, '爱奇艺', 1, 'https://www.iqiyi.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-aiqiyi"></use></svg>', NULL, 10, 1, 0),
|
||||
(5, '淘宝', 1, 'https://www.taobao.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-taobao"></use></svg>', NULL, 10, 1, 0),
|
||||
(6, '哔哩哔哩', 1, 'https://www.bilibili.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-bili"></use></svg>', NULL, 10, 1, 0),
|
||||
(7, '微博', 1, 'https://www.weibo.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-weibo"></use></svg>', NULL, 10, 1, 0),
|
||||
(8, 'QQ邮箱', 1, 'https://mail.qq.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-qqmail00"></use></svg>', NULL, 10, 1, 0),
|
||||
(9, '百度贴吧', 1, 'https://tieba.baidu.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-tieba00"></use></svg>', NULL, 10, 1, 0),
|
||||
(10, 'CCTV直播', 1, 'https://tv.cctv.com/live/index.shtml', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-cctv"></use></svg>', NULL, 10, 1, 0),
|
||||
(11, '抖音网页版', 1, 'https://www.douyin.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-douyin00"></use></svg>', NULL, 10, 1, 0),
|
||||
(12, '快手网页版', 1, 'https://www.kuaishou.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-kuaishou00"></use></svg>', NULL, 10, 1, 0),
|
||||
(13, '网易云音乐', 1, 'https://music.163.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-wyyyy00"></use></svg>', NULL, 10, 1, 0),
|
||||
(14, 'QQ音乐', 1, 'https://y.qq.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-qqmusic00"></use></svg>', NULL, 10, 1, 0),
|
||||
(15, '酷狗音乐', 1, 'https://www.kugou.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-kugou00"></use></svg>', NULL, 10, 1, 0),
|
||||
(16, '虎牙直播', 1, 'https://www.huya.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-huya00"></use></svg>', NULL, 10, 1, 0),
|
||||
(17, '斗鱼直播', 1, 'https://www.douyu.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-douyu00"></use></svg>', NULL, 10, 1, 0),
|
||||
(18, '企鹅电竞', 1, 'https://egame.qq.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-qie00"></use></svg>', NULL, 10, 1, 0),
|
||||
(19, '微信文件传输助手', 1, 'https://filehelper.weixin.qq.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-wechat00"></use></svg>', NULL, 10, 1, 0),
|
||||
(20, '六零', 1, 'https://www.lylme.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-home00"></use></svg>', NULL, 10, 1, 0),
|
||||
(21, 'Office模板', 2, 'https://www.officeplus.cn/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-office00"></use></svg>', NULL, 10, 1, 0),
|
||||
(22, '搞定设计', 2, 'https://www.gaoding.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-gaoding00"></use></svg>', NULL, 10, 1, 0),
|
||||
(23, '素材天下', 2, 'http://www.sucaitianxia.net/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-video"></use></svg>', NULL, 10, 1, 0),
|
||||
(24, '千库网', 2, 'https://588ku.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-qianku00"></use></svg>', NULL, 10, 1, 0),
|
||||
(25, '图怪兽', 2, 'https://818ps.com', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-tu00"></use></svg>', NULL, 10, 1, 0),
|
||||
(26, '站酷', 2, 'https://www.zcool.com.cn/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-zhanku"></use></svg>', NULL, 10, 1, 0),
|
||||
(27, '阿里图标', 2, 'https://www.iconfont.cn/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-iconfont"></use></svg>', NULL, 10, 1, 0),
|
||||
(28, 'IconFinder', 2, 'https://www.iconfinder.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-eye"></use></svg>', NULL, 10, 1, 0),
|
||||
(29, '优设教程', 2, 'https://uiiiuiii.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-jiaocheng"></use></svg>', NULL, 10, 1, 0),
|
||||
(30, '知乎', 3, 'https://www.zhihu.com/explore', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-zhihu"></use></svg>', NULL, 10, 1, 0),
|
||||
(31, '豆瓣', 3, 'https://www.douban.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-douban"></use></svg>', NULL, 10, 1, 0),
|
||||
(32, '简书', 3, 'https://www.jianshu.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-jianshu"></use></svg>', NULL, 10, 1, 0),
|
||||
(33, '阿里云盘', 3, 'https://www.aliyundrive.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-alipan00"></use></svg>', NULL, 10, 1, 0),
|
||||
(34, '百度网盘', 3, 'https://pan.baidu.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-baidupan00"></use></svg>', NULL, 10, 1, 0),
|
||||
(35, '蓝奏云', 3, 'https://www.lanzou.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-lanzou00"></use></svg>', NULL, 10, 1, 0),
|
||||
(36, '迅雷云盘', 3, 'https://pan.xunlei.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-xunleipan00"></use></svg>', NULL, 10, 1, 0),
|
||||
(37, 'OneDrive', 3, 'https://onedrive.live.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-OneDrive00"></use></svg>', NULL, 10, 1, 0),
|
||||
(38, '天翼云盘', 3, 'https://cloud.189.cn/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-tianyipan00"></use></svg>', NULL, 10, 1, 0),
|
||||
(39, 'UC网盘', 3, 'https://www.yun.cn/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-yunpan"></use></svg>', NULL, 10, 1, 0),
|
||||
(40, 'QQ邮箱', 3, 'https://mail.qq.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-qqmail00"></use></svg>', NULL, 10, 1, 0),
|
||||
(41, 'Gmail', 3, 'https://mail.google.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-gmail"></use></svg>', NULL, 10, 1, 0),
|
||||
(42, 'Hotmail', 3, 'https://outlook.live.com/mail/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-windows"></use></svg>', NULL, 10, 1, 0),
|
||||
(43, '网易邮箱', 3, 'https://mail.163.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-wangyi"></use></svg>', NULL, 10, 1, 0),
|
||||
(44, '新浪邮箱', 3, 'https://mail.sina.com.cn/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-xinlangwang"></use></svg>', NULL, 10, 1, 0),
|
||||
(45, '阿里邮箱', 3, 'https://mail.aliyun.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-yunyouxiang"></use></svg>', NULL, 10, 1, 0),
|
||||
(46, '在线工具', 4, 'https://tool.lu/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-ai-tool"></use></svg>', NULL, 10, 1, 0),
|
||||
(47, 'IP查询', 4, 'https://ip.cn/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-wangluo"></use></svg>', NULL, 10, 1, 0),
|
||||
(48, '文档在线转换', 4, 'https://xpdf.net/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-docto"></use></svg>', NULL, 10, 1, 0),
|
||||
(49, '谷歌翻译', 4, 'https://translate.google.cn/?hl=zh-CN', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-fanyi"></use></svg>', NULL, 10, 1, 0),
|
||||
(50, '有道翻译', 4, 'https://fanyi.youdao.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-youdao00"></use></svg>', NULL, 10, 1, 0),
|
||||
(51, 'HTML在线运行', 4, 'https://c.runoob.com/front-end/61/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-html00"></use></svg>', NULL, 10, 1, 0),
|
||||
(52, 'MD编辑器', 4, 'https://www.lylme.com/html/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-md"></use></svg>', NULL, 10, 1, 0),
|
||||
(53, '微PE工具', 4, 'http://www.wepe.com.cn/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-wepe00"></use></svg>', NULL, 10, 1, 0),
|
||||
(54, '在线代码格式化', 4, 'https://tool.oschina.net/codeformat/html/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-base64"></use></svg>', NULL, 10, 1, 0),
|
||||
(55, 'JS混淆器', 4, 'http://tool.chinaz.com/tools/jscodeconfusion.aspx', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-jshunxiao"></use></svg>', NULL, 10, 1, 0),
|
||||
(56, '站长工具', 4, 'http://tool.chinaz.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-zhanzhang00"></use></svg>', NULL, 10, 1, 0),
|
||||
(57, '在线Ping', 4, 'https://ping.chinaz.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-wangluo1"></use></svg>', NULL, 10, 1, 0),
|
||||
(58, 'ICP备案查询', 4, 'https://icp.chinaz.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-icp00"></use></svg>', NULL, 10, 1, 0),
|
||||
(59, '在线PS', 4, 'https://www.photopea.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-ps00"></use></svg>', NULL, 10, 1, 0),
|
||||
(60, 'W3school', 5, 'http://www.w3school.com.cn/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-h5"></use></svg>', NULL, 10, 1, 0),
|
||||
(61, 'Github', 5, 'https://github.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-github"></use></svg>', NULL, 10, 1, 0),
|
||||
(62, '码云Gitee', 5, 'https://gitee.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-gitee00"></use></svg>', NULL, 10, 1, 0),
|
||||
(63, 'Linux命令查询', 5, 'https://linux.lylme.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-linux"></use></svg>', NULL, 10, 1, 0),
|
||||
(64, 'CSDN', 5, 'https://www.csdn.net/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-csdn"></use></svg>', NULL, 10, 1, 0),
|
||||
(65, 'CdnJs', 5, 'https://cdnjs.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-cdnjs"></use></svg>', NULL, 10, 1, 0),
|
||||
(66, '字节跳动CDN', 5, 'https://cdn.bytedance.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-zjtd00"></use></svg>', NULL, 10, 1, 0),
|
||||
(67, 'Font Awesome', 5, 'https://fontawesome.com/icons?https://fontawesome.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-font-awesome"></use></svg>', NULL, 10, 1, 0),
|
||||
(68, 'MSDN我告诉你', 5, 'https://msdn.itellyou.cn/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-msdn00"></use></svg>', NULL, 10, 1, 0),
|
||||
(69, '腾讯云', 5, 'https://cloud.tencent.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-qcloud00"></use></svg>', NULL, 10, 1, 0),
|
||||
(70, '阿里云', 5, 'https://www.aliyun.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-alicloud00"></use></svg>', NULL, 10, 1, 0),
|
||||
(71, '4399小游戏', 6, 'http://www.4399.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-439900"></use></svg>', NULL, 10, 1, 0),
|
||||
(72, '7k7k小游戏', 6, 'http://www.7k7k.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-7k7k00"></use></svg>', NULL, 10, 1, 0),
|
||||
(73, '英雄联盟', 6, 'https://lol.qq.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-lol00"></use></svg>', NULL, 10, 1, 0),
|
||||
(74, '永劫无间', 6, 'https://www.yjwujian.cn/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-yjwj00"></use></svg>', NULL, 10, 1, 0),
|
||||
(75, 'STEAM', 6, 'https://store.steampowered.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-steam00"></use></svg>', NULL, 10, 1, 0),
|
||||
(76, '王者荣耀', 6, 'https://pvp.qq.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-wzry00"></use></svg>', NULL, 10, 1, 0),
|
||||
(77, '3DM GAME', 6, 'https://www.3dmgame.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-games00"></use></svg>', NULL, 10, 1, 0),
|
||||
(78, '官方主页', 7, 'https://www.lylme.com/', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-home00"></use></svg>', NULL, 10, 1, 0),
|
||||
(79, '申请收录', 7, '/apply', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-sq00"></use></svg>', NULL, 10, 1, 0),
|
||||
(80, '建议&反馈', 7, 'https://support.qq.com/products/356339', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-fk00"></use></svg>', NULL, 10, 1, 0);
|
||||
/*!40000 ALTER TABLE `lylme_links` ENABLE KEYS */;
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_pwd`;
|
||||
CREATE TABLE IF NOT EXISTS `lylme_pwd` (
|
||||
`pwd_id` int(2) NOT NULL AUTO_INCREMENT COMMENT '加密组ID',
|
||||
`pwd_name` varchar(20) NOT NULL COMMENT '加密组名称',
|
||||
`pwd_key` varchar(20) NOT NULL COMMENT '加密组密码',
|
||||
`pwd_ps` varchar(30) DEFAULT NULL COMMENT '加密组备注',
|
||||
PRIMARY KEY (`pwd_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
DELETE FROM `lylme_pwd`;
|
||||
/*!40000 ALTER TABLE `lylme_pwd` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `lylme_pwd` ENABLE KEYS */;
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_sou`;
|
||||
CREATE TABLE IF NOT EXISTS `lylme_sou` (
|
||||
`sou_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '搜索引擎ID',
|
||||
`sou_alias` varchar(20) NOT NULL COMMENT '搜索引擎别名',
|
||||
`sou_name` varchar(20) NOT NULL COMMENT '搜索引擎名称',
|
||||
`sou_hint` varchar(30) NOT NULL DEFAULT '请输入搜索关键词' COMMENT '搜索引擎提示文字',
|
||||
`sou_color` varchar(20) NOT NULL DEFAULT '#696a6d' COMMENT '搜索引擎字体颜色',
|
||||
`sou_link` varchar(255) NOT NULL COMMENT '搜索引擎地址',
|
||||
`sou_waplink` varchar(255) DEFAULT NULL COMMENT '搜索引擎移动端地址',
|
||||
`sou_icon` text NOT NULL COMMENT '搜索引擎图标',
|
||||
`sou_st` int(1) NOT NULL DEFAULT '1' COMMENT '搜索引擎开关',
|
||||
`sou_order` int(2) NOT NULL COMMENT '搜索引擎排序',
|
||||
PRIMARY KEY (`sou_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='搜索引擎';
|
||||
|
||||
DELETE FROM `lylme_sou`;
|
||||
/*!40000 ALTER TABLE `lylme_sou` DISABLE KEYS */;
|
||||
INSERT INTO `lylme_sou` (`sou_id`, `sou_alias`, `sou_name`, `sou_hint`, `sou_color`, `sou_link`, `sou_waplink`, `sou_icon`, `sou_st`, `sou_order`) VALUES
|
||||
(1, 'baidu', '百度一下', '百度一下,你就知道', '#0c498c', 'https://www.baidu.com/s?word=', 'https://m.baidu.com/s?word=', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-icon_baidulogo"></use></svg>', 1, 1),
|
||||
(2, 'sogou', '搜狗搜索', '上网从搜狗开始', '#696a6d', 'https://www.sogou.com/web?query=', NULL, '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-sougou"></use></svg>', 1, 2),
|
||||
(3, 'bing', 'Bing必应', '微软必应搜索', '#696a6d', 'https://cn.bing.com/search?q=', NULL, '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-bing"></use></svg>', 1, 3),
|
||||
(4, 'zhihu', '知乎搜索', '有问题,上知乎', '#0084fe', 'https://www.zhihu.com/search?q=', NULL, '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-zhihu"></use></svg>', 1, 4),
|
||||
(5, 'bilibili', '哔哩哔哩', '(゜-゜)つロ 干杯~', '#00aeec', 'https://search.bilibili.com/all?keyword=', NULL, '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-bili"></use></svg>', 1, 5),
|
||||
(6, 'weibo', '微博搜索', '随时随地发现新鲜事', '#ff5722', 'https://s.weibo.com/weibo/', '', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-weibo"></use></svg>', 1, 6),
|
||||
(7, 'google', '谷歌搜索', '值得信任的搜索引擎', '#3B83FA', 'https://www.google.com.hk/search?hl=zh-CN&q=', '', '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-google00"></use></svg>', 1, 7),
|
||||
(8, 'fanyi', '在线翻译', '输入翻译内容(自动检测语言)', '#0084fe', 'https://translate.google.cn/?hl=zh-CN&sl=auto&tl=zh-CN&text=', NULL, '<svg class="icon" aria-hidden="true"><use xlink:href="#icon-fanyi"></use></svg>', 1, 8);
|
||||
/*!40000 ALTER TABLE `lylme_sou` ENABLE KEYS */;
|
||||
|
||||
DROP TABLE IF EXISTS `lylme_tags`;
|
||||
CREATE TABLE IF NOT EXISTS `lylme_tags` (
|
||||
`tag_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`tag_name` varchar(30) NOT NULL,
|
||||
`tag_link` varchar(60) NOT NULL,
|
||||
`tag_target` int(1) NOT NULL DEFAULT '1',
|
||||
PRIMARY KEY (`tag_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
|
||||
|
||||
DELETE FROM `lylme_tags`;
|
||||
/*!40000 ALTER TABLE `lylme_tags` DISABLE KEYS */;
|
||||
INSERT INTO `lylme_tags` (`tag_id`, `tag_name`, `tag_link`, `tag_target`) VALUES
|
||||
(1, '主页', 'https://www.lylme.com/', 0),
|
||||
(2, '博客', 'https://blog.lylme.com/', 1),
|
||||
(3, 'Github', 'https://github.com/lylme', 1),
|
||||
(4, '关于本站', '/about', 1),
|
||||
(5, '申请收录', '/apply', 1),
|
||||
(6, '查看', '/pwd', 0);
|
||||
/*!40000 ALTER TABLE `lylme_tags` ENABLE KEYS */;
|
||||
|
||||
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
@ -1,81 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
|
||||
<title>六零导航页 - 用户协议</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
|
||||
<p align="center" style="text-align:center;text-indent:30.1pt;">
|
||||
<b>六零导航页 - 用户使用协议</b>
|
||||
</p>
|
||||
<h3 style="margin-top: 25px;">1. 说明</h3>
|
||||
1.1 用户即指六零导航页(以下简称“本程序”)后下载、安装、使用本程序的用户。
|
||||
</p>
|
||||
<p style="margin-top: 25px;">
|
||||
<b>2.用户使用基本规则</b>
|
||||
<p>
|
||||
2.1 用户在使用本程序时,必须遵循以下原则:
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.1.1 遵守中国及所在国有关的法律和法规;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.1.2 用户不得侵任何人的知识产权,包括但不限于不得将侵犯任何人的专利、商标、著作权、商业秘密或其他专属权利;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.1.3 用户不得侵犯涉密信息,包括但不限于不得将无权传送的内容(例如商业秘密、内部资料、机密资料、个人信息等)进行上载、张贴、发送电子邮件或以其他方式发布、传送、传播、储存、或提供;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.1.4 用户不得为任何非法目的而使用本程序,包括但不限于应当遵守法律法规,以及所有与网络服务有关的网络协议、规定和程序,不得利用本程序进行任何可能对互联网的正常运转造成不利影响的行为,或其他任何非法行为;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.1.5 用户无权实施包括但不限于下列行为:删除本程序及其他副本上所有关于版权的信息、内容,对本程序进行反向工程、反向汇编、反向编译等;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.1.6 用户不得利用本服务实施侵权行为,包括但不限于不得使用虚假、冒充他人或其他方的信息安装、使用本程序,不得冒充任何人或机构,或以虚伪不实的方式谎称或使人误认为其言论或身份与任何人或任何机构有关;不得伪造标题或以其他方式操控识别资料,使人误认为该内容为程序作者所传送;不得利用本程序网络服务系统传播任何骚扰性的、中伤他人的、辱骂性的、庸俗淫秽的或其他任何非法的信息资料;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.1.7 用户不得破坏本服务的提供,或侵犯本服务相关的任何权利,包括但不限于不得将有关干扰、破坏或限制任何计算机软件、硬件或通讯设备功能的软件病毒或其他计算机代码、档案和程序之资料,加以上载、张贴或其他方式的传播;
|
||||
</p>
|
||||
|
||||
2.2 用户禁止利用本程序及相关服务进行以下活动:
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.2.1 反对宪法所确定的基本原则的;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.2.2 危害国家安全,泄露国家秘密,颠覆国家政权,破坏国家统一的;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.2.3 损害国家荣誉和利益的;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.2.4 煽动民族仇恨、民族歧视,破坏民族团结的;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.2.5 破坏国家宗教政策,宣扬邪教和封建迷信的;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.2.6 散布谣言,扰乱社会秩序,破坏社会稳定的;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.2.7 散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪的;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.2.8 侵害他人合法权益的;
|
||||
</p>
|
||||
<p style="text-indent:14.0pt;">
|
||||
2.2.9 含有法律法规禁止的其他内容的。
|
||||
</p>
|
||||
<p>
|
||||
2.3 <b><u>如用户违反以上约定,产生的一切法律后果,用户将以自己的名义独立承担所有的法律责任,造成的一切损失,由用户承担。</u></b>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
BIN
install/templates/images/already.png
Normal file
BIN
install/templates/images/already.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
BIN
install/templates/images/complete.png
Normal file
BIN
install/templates/images/complete.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
BIN
install/templates/images/correctBg.png
Normal file
BIN
install/templates/images/correctBg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 381 B |
BIN
install/templates/images/errorBg.png
Normal file
BIN
install/templates/images/errorBg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 342 B |
BIN
install/templates/images/inputOnBg.png
Normal file
BIN
install/templates/images/inputOnBg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
install/templates/images/logo.png
Normal file
BIN
install/templates/images/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.8 KiB |
140
install/templates/js/forms.js
Normal file
140
install/templates/js/forms.js
Normal file
@ -0,0 +1,140 @@
|
||||
$(function () {
|
||||
|
||||
$(".input").focus(function () {
|
||||
$(this).attr("class", "inputOn");
|
||||
}).blur(function () {
|
||||
$(this).attr("class", "input");
|
||||
});
|
||||
|
||||
$("#dbhost").focus();
|
||||
})
|
||||
|
||||
|
||||
function CheckForm() {
|
||||
|
||||
var format = /^[a-zA-Z0-9_@!.-]+$/;
|
||||
|
||||
if ($("#dbhost").val() == "") {
|
||||
alert("请输入数据库服务器!");
|
||||
$("#dbhost").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#dbname").val() == "") {
|
||||
alert("请输入数据库名!");
|
||||
$("#dbname").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!format.exec($("#dbname").val())) {
|
||||
alert("数据库名非法!请使用[a-zA-Z0-9_@!.-]内的字符!!");
|
||||
$("#dbname").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#dbuser").val() == "") {
|
||||
alert("请输入数据库用户!");
|
||||
$("#dbuser").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
// if ($("#username").val() == "") {
|
||||
// alert("请输入管理员账号!");
|
||||
// $("#username").focus();
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// if ($("#username").val().length < 5 ||
|
||||
// $("#username").val().length > 20) {
|
||||
// alert("用户名长度不得小于5位或大于20位!");
|
||||
// $("#username").focus();
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// if ($("#password").val() == "") {
|
||||
// alert("请输入管理员密码!");
|
||||
// $("#password").focus();
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// if ($("#password").val().length < 5 ||
|
||||
// $("#password").val().length > 16) {
|
||||
// alert("密码由5-16个字符组成,区分大小写!");
|
||||
// $("#password").focus();
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// if ($("#repassword").val() == "") {
|
||||
// alert("请输入重复密码!");
|
||||
// $("#repassword").focus();
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// if ($("#password").val() != $("#repassword").val()) {
|
||||
// alert("两次密码不同!");
|
||||
// $("#repassword").focus();
|
||||
// return false;
|
||||
// }
|
||||
|
||||
if ($("#cpwd").val() == "false") {
|
||||
$.ajax({
|
||||
url: 'index.php',
|
||||
data: {
|
||||
s: 63832,
|
||||
dbhost: $("#dbhost").val(),
|
||||
dbuser: $("#dbuser").val(),
|
||||
dbpwd: $("#dbpwd").val(),
|
||||
},
|
||||
type: 'get',
|
||||
dataType: 'html',
|
||||
success: function (data) {
|
||||
if (data == 'true') {
|
||||
$('#cpwdTxt').html('<span class="correct">可用</span>');
|
||||
$('#cpwd').val("true");
|
||||
|
||||
//验证没有问题,提交表单
|
||||
document.form.submit();
|
||||
return;
|
||||
} else {
|
||||
$('#cpwdTxt').html('<span class="error">不可用</span>');
|
||||
$("#dbpwd").focus();
|
||||
$('#cpwd').val("false");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
//验证没有问题,提交表单
|
||||
document.form.submit();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 验证数据库账号密码是否正确
|
||||
* @constructor
|
||||
*/
|
||||
function CheckPwd() {
|
||||
$.ajax({
|
||||
url: 'index.php',
|
||||
data: {
|
||||
s: 63832,
|
||||
dbhost: $("#dbhost").val(),
|
||||
dbport: $("#dbport").val(),
|
||||
dbuser: $("#dbuser").val(),
|
||||
dbpwd: $("#dbpwd").val(),
|
||||
},
|
||||
type: 'get',
|
||||
dataType: 'html',
|
||||
success: function (data) {
|
||||
if (data === 'true') {
|
||||
$('#cpwdTxt').html('<span class="correct">可用</span>');
|
||||
$('#cpwd').val("true");
|
||||
} else {
|
||||
$('#cpwdTxt').html('<span class="error">不可用</span>');
|
||||
$('#cpwd').val("false");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
16
install/templates/js/jquery.min.js
vendored
Normal file
16
install/templates/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
69
install/templates/step_0.php
Normal file
69
install/templates/step_0.php
Normal file
@ -0,0 +1,69 @@
|
||||
<?php if (!defined('IN_INSTALL')) {
|
||||
exit('Request Error!');
|
||||
} ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>六零导航页安装向导 - 协议说明</title>
|
||||
<link href="templates/style/install.css" type="text/css" rel="stylesheet"/>
|
||||
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header"></div>
|
||||
<div class="mainBody">
|
||||
<div class="text">
|
||||
<h4>更新日期:2023年12月16日</h4>
|
||||
<h3>软件许可协议</h3>
|
||||
<div class="hr_8"></div>
|
||||
<p>尊敬的用户,感谢您使用六零导航页,希望本程序能给您在上网时提供方便的入口。
|
||||
</p>
|
||||
<div class="hr_8"></div>
|
||||
<p>
|
||||
六零导航页(LyLme Spage)(以下称“本程序”),由上云六零科技工作室(以下称“上云六零”)开发,致力于简洁高效无广告的上网导航和搜索入口,沉淀最具价值链接,全站无商业推广,简约而不简单。</p>
|
||||
<p>
|
||||
使用者无论个人或组织、盈利与否、用途如何(包括以学习和研究为目的),均需仔细阅读本协议,在理解、同意、并遵守本协议的全部条款后,方可开始使用本程序。本授权协议适用且仅适用于本产品,上云六零拥有对本授权协议的最终解释权。</p>
|
||||
<div class="hr_8"></div>
|
||||
|
||||
<h4>一. 协议许可的权利</h4>
|
||||
<p>1. 您可以在完全遵守本最终用户授权协议的基础上,安装和使用本程序提供的全部功能,而不必支付软件版权授权费用。</p>
|
||||
<p>2. 您可以在协议规定的约束和限制范围内修改本程序源代码或界面风格以适应您的使用要求。</p>
|
||||
<p>3. 您拥有使用本程序构建的应用中全部会员资料、内容及相关信息的所有权,并独立承担相关法律义务。</p>
|
||||
<div class="hr_8"></div>
|
||||
|
||||
<h4>二. 用户使用的规则</h4>
|
||||
<p>
|
||||
本程序及所附带的文件是作为不提供任何明确的或隐含的赔偿或担保的形式提供的。用户出于自愿而使用本程序,您必须了解使用本程序的风险,在尚未购买产品技术服务之前,我们不承诺提供任何形式的技术支持、使用担保,也不承担任何因使用本程序而产生问题的相关责任。上云六零不对使用本程序构建的网站和应用中的内容或信息承担责任。
|
||||
</p>
|
||||
<div class="hr_8"></div>
|
||||
<p class="lf">
|
||||
用户在使用本程序时,必须遵循以下原则: </p>
|
||||
|
||||
|
||||
<div class="hr_8"></div>
|
||||
<p>1. 遵守中国及所在国有关的法律和法规;</p>
|
||||
<p>2. 用户不得侵任何人的知识产权,包括但不限于不得将侵犯任何人的专利、商标、著作权、商业秘密或其他专属权利;</p>
|
||||
<p>
|
||||
3.
|
||||
用户不得侵犯涉密信息,包括但不限于不得将无权传送的内容(例如商业秘密、内部资料、机密资料、个人信息等)进行上载、张贴、发送电子邮件或以其他方式发布、传送、传播、储存、或提供;</p>
|
||||
<p>
|
||||
4.
|
||||
用户不得为任何非法目的而使用本程序,包括但不限于应当遵守法律法规,以及所有与网络服务有关的网络协议、规定和程序,不得利用本程序进行任何可能对互联网的正常运转造成不利影响的行为,或其他任何非法行为;</p>
|
||||
<p>
|
||||
5.
|
||||
用户不得利用本服务实施侵权行为,包括但不限于不得使用虚假、冒充他人或其他方的信息安装、使用本程序,不得冒充任何人或机构,或以虚伪不实的方式谎称或使人误认为其言论或身份与任何人或任何机构有关;不得伪造标题或以其他方式操控识别资料,使人误认为该内容为程序作者所传送;不得利用本程序网络服务程序传播任何骚扰性的、中伤他人的、辱骂性的、庸俗淫秽的或其他任何非法的信息资料;</p>
|
||||
<p>
|
||||
6.
|
||||
用户不得破坏本服务的提供,或侵犯本服务相关的任何权利,包括但不限于不得将有关干扰、破坏或限制任何计算机软件、硬件或通讯设备功能的软件病毒或其他计算机代码、档案和程序之资料,加以上载、张贴或其他方式的传播;</p>
|
||||
<p>7. 用户禁止利用本程序及相关服务进行法律法规禁止内容的行为。</p>
|
||||
<div class="hr_8"></div>
|
||||
<p class="lf">
|
||||
电子文本形式的授权协议如同双方书面签署的协议一样,具有完全的和等同的法律效力。您一旦开始安装本程序,即被视为完全理解并接受本协议的各项条款,在享有上述条款授予的权力的同时,受到相关的约束和限制。协议许可范围以外的行为,将直接违反本授权协议并构成侵权,我们有权随时终止授权,责令停止损害,并保留追究相关责任的权力。</p>
|
||||
</div>
|
||||
<div class="footer"><span class="step"></span> <span class="copyright"><?php echo $cfg_copyright; ?></span>
|
||||
<span
|
||||
class="formSubBtn"> <a href="javascript:void(0);" onclick="window.close();return false;"
|
||||
class="back">不同意</a> <a href="?s=1" class="submit">同 意</a> </span></div>
|
||||
</body>
|
||||
</html>
|
162
install/templates/step_1.php
Normal file
162
install/templates/step_1.php
Normal file
@ -0,0 +1,162 @@
|
||||
<?php if (!defined('IN_INSTALL')) {
|
||||
exit('Request Error!');
|
||||
} ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>六零导航页安装向导 - 检测安装环境</title>
|
||||
<link href="templates/style/install.css" type="text/css" rel="stylesheet"/>
|
||||
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header"></div>
|
||||
<div class="mainBody">
|
||||
<div class="forms">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr align="left" class="head">
|
||||
<td width="30%" height="36">项目
|
||||
</th>
|
||||
<td width="30%">所需配置
|
||||
</th>
|
||||
<td width="15%">推荐配置
|
||||
</th>
|
||||
<td width="25%" align="right">当前服务器
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="26" class="firstCol">操作系统</td>
|
||||
<td>不限制</td>
|
||||
<td>Linux</td>
|
||||
<td class="endCol"><?php echo PHP_OS; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="26" class="firstCol">PHP 版本</td>
|
||||
<td>5.4</td>
|
||||
<td>7.0</td>
|
||||
<td class="endCol"><?php echo PHP_VERSION; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="26" class="firstCol">附件上传</td>
|
||||
<td>2M</td>
|
||||
<td>2M</td>
|
||||
<td class="endCol"><?php echo get_cfg_var("upload_max_filesize") ? get_cfg_var("upload_max_filesize") : '不允许上传附件'; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="26" class="firstCol">GD 库</td>
|
||||
<td>2.0</td>
|
||||
<td>2.1</td>
|
||||
<td class="endCol"><?php
|
||||
$tmp = function_exists('gd_info') ? gd_info() : array();
|
||||
@$env_items[$key]['current'] = empty($tmp['GD Version']) ? 'noext' : $tmp['GD Version'];
|
||||
echo @$env_items[$key]['current'];
|
||||
unset($tmp);
|
||||
?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="26" class="firstCol">磁盘空间</td>
|
||||
<td>10M</td>
|
||||
<td>不限制</td>
|
||||
<td class="endCol">
|
||||
<?php
|
||||
if (function_exists('disk_free_space')) {
|
||||
@$env_items[$key]['current'] = floor(disk_free_space('../') / (1024 * 1024)) . 'M';
|
||||
} else {
|
||||
$env_items[$key]['current'] = 'unknow';
|
||||
}
|
||||
echo @$env_items[$key]['current'];
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="hr_10"></div>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr align="left" class="head">
|
||||
<td width="60%" height="36">扩展要求
|
||||
</th>
|
||||
<td width="25%">检查结果
|
||||
</th>
|
||||
<td width="15%" align="right">建议
|
||||
</th>
|
||||
</tr>
|
||||
<?php foreach ($extendArray as $item): ?>
|
||||
<tr>
|
||||
<td height="26" class="firstCol"><?= $item['name'] ?></td>
|
||||
<td><?= $item['status'] ? '支持' : '不支持' ?></td>
|
||||
<td class="endCol">
|
||||
<span class="<?= $item['status'] ? '' : 'col-red' ?>"><?= $item['status'] ? '无' : '需安装' ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
<div class="hr_10"></div>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr align="left" class="head">
|
||||
<td width="60%" height="36">函数名称
|
||||
</th>
|
||||
<td width="25%">检查结果
|
||||
</th>
|
||||
<td width="15%" align="right">建议
|
||||
</th>
|
||||
</tr>
|
||||
<?php foreach ($exists_array as $v): ?>
|
||||
<tr>
|
||||
<td height="26" class="firstCol"><?php echo $v; ?>()</td>
|
||||
<td><?= isFunExists($v) ? '支持' : '不支持' ?></td>
|
||||
<td class="endCol"><?= isFunExistsTxt($v) ?></td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
<div class="hr_10"></div>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr align="left" class="head">
|
||||
<td width="60%" height="36">文件权限检测
|
||||
</th>
|
||||
<td width="25%">所需状态
|
||||
</th>
|
||||
<td width="15%" align="right">当前状态
|
||||
</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($iswrite_array as $v) {
|
||||
?>
|
||||
<tr align="left">
|
||||
<td height="26" class="firstCol"><?php echo $v; ?></td>
|
||||
<td>可写</td>
|
||||
<td class="endCol"><?php isWrite($v); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<span class="step2"></span>
|
||||
<span class="copyright"><?= $cfg_copyright; ?></span>
|
||||
<span class="formSubBtn">
|
||||
<form class="j-form" method="post" action="index.php">
|
||||
<a href="javascript:void(0);" onclick="history.go(-1);return false;" class="back">返 回</a>
|
||||
<a href="javascript:void(0);" class="j-submit submit">下一步</a>
|
||||
<input type="hidden" name="s" id="s" value="2">
|
||||
</form>
|
||||
</span>
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
// 环境检测是否通过
|
||||
var isPass = <?= $GLOBALS['isNext'] ? 'true' : 'false' ?>;
|
||||
console.log(isPass)
|
||||
// 表单提交
|
||||
$('.j-submit').click(function () {
|
||||
if (isPass) {
|
||||
$('.j-form').submit();
|
||||
} else {
|
||||
alert('环境检测不通过,请先修复');
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
84
install/templates/step_2.php
Normal file
84
install/templates/step_2.php
Normal file
@ -0,0 +1,84 @@
|
||||
<?php if (!defined('IN_INSTALL')) {
|
||||
exit('Request Error!');
|
||||
} ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>六零导航页安装向导 - 配置数据文件</title>
|
||||
<link href="templates/style/install.css" type="text/css" rel="stylesheet"/>
|
||||
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="templates/js/forms.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form name="form" id="form" method="post" action="index.php">
|
||||
<div class="header"></div>
|
||||
<div class="mainBody">
|
||||
<div class="table">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td height="40" colspan="2" align="left"><span class="title">填写数据库信息</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30%" height="40" align="right">数据库服务器:</td>
|
||||
<td><input type="text" name="dbhost" id="dbhost" class="input" value="localhost"/>
|
||||
<span class="cnote">数据库服务器地址, 一般为 localhost</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30%" height="40" align="right">数据库端口号:</td>
|
||||
<td>
|
||||
<input type="text" name="dbport" id="dbport" class="input" value="3306"/>
|
||||
<span class="cnote">数据库端口号, 一般为 3306</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40" align="right">数据库名称:</td>
|
||||
<td>
|
||||
<input type="text" name="dbname" id="dbname" class="input" value=""/>
|
||||
<span class="cnote">数据库的名称,如果没有请先新增</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40" align="right">数据库用户名:</td>
|
||||
<td><input type="text" name="dbuser" id="dbuser" class="input" value=""/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40" align="right">数据库密码:</td>
|
||||
<td><input type="password" name="dbpwd" id="dbpwd" class="input" onblur="CheckPwd()"/>
|
||||
<span class="cnote"><span id="cpwdTxt"></span></span>
|
||||
<input type="hidden" name="cpwd" id="cpwd" value="false"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td height="40" colspan="2" align="left"><span class="title">默认管理员信息</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40" align="right">管理员账号:</td>
|
||||
<td>
|
||||
<div class="readonly">admin</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40" align="right">管理员密码:</td>
|
||||
<td>
|
||||
<div class="readonly">123456</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- <tr>-->
|
||||
<!-- <td height="40" align="right">安装测试数据:</td>-->
|
||||
<!-- <td><input type="checkbox" name="testdata" value="true" checked="checked"/>-->
|
||||
<!-- 是-->
|
||||
<!-- </td>-->
|
||||
<!-- </tr>-->
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer"><span class="step3"></span> <span class="copyright"><?php echo $cfg_copyright; ?></span> <span
|
||||
class="formSubBtn"> <a href="javascript:void(0);" onclick="history.go(-1);return false;" class="back">返 回</a> <a
|
||||
href="javascript:void(0);" onclick="CheckForm();return false;" class="submit">开始安装</a>
|
||||
<input type="hidden" name="s" id="s" value="3">
|
||||
</span></div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
23
install/templates/step_3.php
Normal file
23
install/templates/step_3.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php if (!defined('IN_INSTALL')) {
|
||||
exit('Request Error!');
|
||||
} ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>六零导航页安装向导 - 执行配置文件</title>
|
||||
<link href="templates/style/install.css" type="text/css" rel="stylesheet"/>
|
||||
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header"></div>
|
||||
<div class="mainBody">
|
||||
<div class="text">
|
||||
<h4>正在安装...</h4>
|
||||
<div id="install"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer"><span class="step3"></span> <span class="copyright"><?php echo $cfg_copyright; ?></span></div>
|
||||
</body>
|
||||
</html>
|
25
install/templates/step_4.php
Normal file
25
install/templates/step_4.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php if (!defined('IN_INSTALL')) {
|
||||
exit('Request Error!');
|
||||
} ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>六零导航页安装向导 - 安装成功</title>
|
||||
<link href="templates/style/install.css" type="text/css" rel="stylesheet"/>
|
||||
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header"></div>
|
||||
<div class="mainBody">
|
||||
<div class="note">
|
||||
<div class="complete"><strong>现在您可以:</strong><br/>
|
||||
<a href="../">访问首页</a><span>或</span><a href="../admin/">登录后台</a><br/><br/>
|
||||
您可以访问 <a href="https://doc.lylme.com/sapge/" target="_blank" class="link">帮助文档</a> 获取更多帮助
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer"><span class="step4"></span> <span class="copyright"><?php echo $cfg_copyright; ?></span></div>
|
||||
</body>
|
||||
</html>
|
22
install/templates/step_5.php
Normal file
22
install/templates/step_5.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php if(!defined('IN_INSTALL')) {
|
||||
exit('Request Error!');
|
||||
} ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>六零导航页安装向导 - 程序已安装</title>
|
||||
<link href="templates/style/install.css" type="text/css" rel="stylesheet" />
|
||||
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header"></div>
|
||||
<div class="mainBody">
|
||||
<div class="note">
|
||||
<div class=""><strong>您已安装过本系统!</strong><a href="/">返回首页</a><span><br /><br /></span>
|
||||
如需重新安装请删除<strong>install/install.lock文件</strong><br /><br /><strong>注意:<font color="red">重新安装会清空原有数据</font>,请谨慎操作!!!</strong>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
351
install/templates/style/install.css
Normal file
351
install/templates/style/install.css
Normal file
@ -0,0 +1,351 @@
|
||||
@charset "utf-8";
|
||||
|
||||
/* 全局控制 */
|
||||
html {
|
||||
/*overflow: hidden;*/
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: "微软雅黑", Arial, "宋体";
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
}
|
||||
.text p{
|
||||
text-indent:2em;
|
||||
}
|
||||
.text p.lf{
|
||||
text-indent:0em;
|
||||
}
|
||||
html, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td, p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input, select, textarea {
|
||||
vertical-align: middle;
|
||||
font-family: "微软雅黑", Arial, "宋体";
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
ul, li {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
a:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a {
|
||||
transition-duration: 300ms;
|
||||
}
|
||||
|
||||
|
||||
/*全局函数*/
|
||||
.hr_1, .hr_8, .hr_10 {
|
||||
font-size: 1px;
|
||||
line-height: 1px;
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hr_1 {
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
.hr_8 {
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.hr_10 {
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.col-red {
|
||||
color: red;
|
||||
}
|
||||
|
||||
/*定义新型浏览器特性*/
|
||||
::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
height: 10px
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-button:vertical {
|
||||
display: none
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track:vertical {
|
||||
background: #000
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track-piece {
|
||||
background: #f6f6f6
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:vertical {
|
||||
background: #d0d0d0;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:vertical:hover {
|
||||
background: #3B3B3B
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-corner:vertical {
|
||||
background: #535353
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-resizer:vertical {
|
||||
background: #FF6E00
|
||||
}
|
||||
|
||||
|
||||
input[type="text"]:focus, input[type="password"]:focus {
|
||||
border: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
||||
.header, .mainBody, .footer {
|
||||
/*width: 960px;*/
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
|
||||
/*头部区域*/
|
||||
.header {
|
||||
height: 90px;
|
||||
margin-bottom: 20px;
|
||||
background: url(../images/logo.png) no-repeat 0 center;
|
||||
border-bottom: 1px solid #d4d4d4;
|
||||
}
|
||||
|
||||
|
||||
/*主要区域*/
|
||||
.mainBody {
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.mainBody .correct, .mainBody .error {
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
.mainBody .correct {
|
||||
background: url(../images/correctBg.png) no-repeat 0 center;
|
||||
color: green;
|
||||
}
|
||||
|
||||
.mainBody .error {
|
||||
background: url(../images/errorBg.png) no-repeat 0 center;
|
||||
color: red;
|
||||
}
|
||||
|
||||
.mainBody .text {
|
||||
line-height: 25px;
|
||||
}
|
||||
|
||||
.mainBody .text h3 {
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.mainBody .text h4 {
|
||||
font-size: 13px;
|
||||
margin: 10px 0 5px 0;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.mainBody .forms .head {
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.mainBody .forms .firstCol {
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.mainBody .forms .endCol {
|
||||
padding-right: 5px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.mainBody .table .title {
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.mainBody .table .input, .readonly {
|
||||
width: 60%;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
margin: 1px;
|
||||
border: 1px solid #ccc;
|
||||
padding: 0 3px;
|
||||
}
|
||||
|
||||
.mainBody .table .readonly {
|
||||
display: inline-block;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.mainBody .table .inputOn {
|
||||
width: 280px;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
padding: 2px 5px;
|
||||
background: url(../images/inputOnBg.png) no-repeat 0 center;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.mainBody .table .cnote {
|
||||
margin-left: 20px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.mainBody .note {
|
||||
width: 400px;
|
||||
margin: 80px auto 0;
|
||||
}
|
||||
|
||||
.mainBody .note .complete, .mainBody .note .already {
|
||||
width: 400px;
|
||||
padding: 90px 0 0 95px;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.mainBody .note .complete {
|
||||
background: url(../images/complete.png) no-repeat;
|
||||
}
|
||||
|
||||
.mainBody .note .already {
|
||||
background: url(../images/already.png) no-repeat;
|
||||
}
|
||||
|
||||
.mainBody .note span {
|
||||
color: #999;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
.mainBody .note a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.mainBody .note a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.mainBody .note a.link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.mainBody .note a.link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
/* 页脚区域 */
|
||||
.footer {
|
||||
margin-top: 20px;
|
||||
height: 50px;
|
||||
border-top: 3px solid #f0f0f0;
|
||||
background: #fff;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.footer .step, .footer .step2, .footer .step3, .footer .step4, .footer .step5 {
|
||||
display: block;
|
||||
height: 3px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 50px;
|
||||
background: #0cd7f7;
|
||||
overflow: hidden;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.footer .step {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.footer .step2 {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.footer .step3 {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
.footer .step4 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.footer .step5 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.footer .copyright {
|
||||
float: left;
|
||||
padding-left: 10px;
|
||||
line-height: 50px;
|
||||
font-family: Verdana;
|
||||
}
|
||||
|
||||
.footer .formSubBtn {
|
||||
width: 200px;
|
||||
float: right;
|
||||
margin-top: 10px;
|
||||
padding-right: 20px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.footer .formSubBtn .submit, .formSubBtn .back {
|
||||
display: inline-block;
|
||||
width: 78px;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
text-align: center;
|
||||
font-family: "微软雅黑";
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.footer .formSubBtn .submit {
|
||||
background: #3d566d;
|
||||
border: 1px solid #3d566d;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.footer .formSubBtn .submit:hover {
|
||||
background: #4f6880;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.footer .formSubBtn .back {
|
||||
margin-right: 10px;
|
||||
background: #fff;
|
||||
border: 1px solid #999;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.footer .formSubBtn .back:hover {
|
||||
border: 1px solid #666;
|
||||
text-decoration: none;
|
||||
}
|
Loading…
Reference in New Issue
Block a user