"; file_put_contents('cache.php', $content); } function uploadimg($arr, $uppath, $uptype) { if ((($arr["type"] == "image/jpeg") || ($arr["type"] == "image/jpg") || ($arr["type"] == "image/png")) && $arr["size"] < 10485760) { copy($arr["tmp_name"], ROOT . $uppath); saveSetting($uptype, '/' . $uppath); } elseif ($arr["size"] == 0) { } else { echo ''; } } $set = isset($_GET['set']) ? $_GET['set'] : null; if ($set == 'save') { $title = $_POST['title']; $logo = $_POST['logo']; $background = $_POST['background']; $wapbackground = $_POST['wapbackground']; $keywords = $_POST['keywords']; $description = $_POST['description']; $mode = $_POST['mode']; $snapshot = $_POST['snapshot']; $licensecode = $_POST['licensecode']; $copyright = $_POST['copyright']; $icp = $_POST['icp']; $yan = $_POST['yan']; $wztj = $_POST['wztj']; $cdnpublic = $_POST['cdnpublic']; if ($yan == 'true') { saveSetting('yan', 'true'); } else { saveSetting('yan', 'false'); } saveSetting('tq', 'false'); saveSetting('title', $title, "网站名称"); saveSetting('logo', $logo, "网站LOGO"); saveSetting('background', $background, "背景图片"); saveSetting('wap_background', $wapbackground, "手机背景图片"); saveSetting('keywords', $keywords, "网站关键词"); saveSetting('description', $description, "网站描述"); saveSetting('mode', $mode, "网站运行模式"); saveSetting('snapshot', $snapshot, "详情页快照API"); saveSetting('copyright', $copyright, "底部版权"); saveSetting('icp', $icp, "ICP备案号"); saveSetting('wztj', $wztj, "自定义footer"); saveSetting('cdnpublic', $cdnpublic, "CDN地址"); saveSetting('c', $licensecode, "程序授权码"); uploadimg($_FILES["logoimg"], 'assets/img/web-logo.png', 'logo'); uploadimg($_FILES["wapbackgroundimg"], 'assets/img/web-wapbackground.jpg', 'wap_background'); uploadimg($_FILES["backgroundimg"], 'assets/img/web-background.jpg', 'background'); echo ''; } else { ?>
比例1:1(正方形),可填写图片的URL,默认值:./assets/img/logo.png/assets/img/logo.png或从本地上传
填写图片的URL,如:/assets/img/background.jpg或从本地上传
设置Bing每日壁纸:/assets/img/bing.php
注:修改后需要清除浏览器缓存才会改变
手机端独立背景,留空则使用PC端壁纸
注:修改后需要清除浏览器缓存才会改变
网站搜索引擎关键字
网站描述,用于搜索引擎抓取相关信息
导航链接访问方式,详情页模式需要启用伪静态 查看教程
显示在首页底部的版权提示,支持HTML代码
站点底部自定义,可填写网站统计、JS代码(需要script标签)、CSS代码(需要style标签)等支持HTML代码 查看教程
显示在首页的随机一言,自定义一言文件路径,一行一条/assets/date/date.dat
用于详情页生成网站缩略图,不填不启用,若不了解请留空 查看教程
微信关注【上云六零】公众号免费获取授权,授权后点击检查更新会自动下发授权密钥。查看说明
内网用户需手动填入,当前域名:
授权正常请勿修改密钥