增加 手机电脑独立壁纸

This commit is contained in:
LyLme 2022-05-02 00:53:17 +08:00
parent ebc0e80069
commit 73cc78c9ef
2 changed files with 2 additions and 6 deletions

View File

@ -4,7 +4,7 @@ define('IN_CRONLITE', true);
define('SYS_KEY', 'lylme_key');
define('SYSTEM_ROOT', dirname(__FILE__).'/');
define('ROOT', dirname(SYSTEM_ROOT).'/');
//error_reporting(E_ALL ^ E_NOTICE);
error_reporting(0);
require ROOT.'config.php';
if(!defined('SQLITE') && (!$dbconfig['user']||!$dbconfig['pwd']||!$dbconfig['dbname']))
{

View File

@ -88,11 +88,7 @@ function siteurl() {
$background = $conf["background"];
//网站背景
function background() {
if (empty($GLOBALS['background'])) {
if (file_exists(ROOT.'assets/img/background.jpg'))return '../assets/img/background.jpg'; else return '../assets/img/bing.php';
} else {
return $GLOBALS['background'];
}
return $GLOBALS['background_img'];
}
//程序更新
function update() {