From ebc0e80069de37e5038f919f8d6e9cd756b4775d Mon Sep 17 00:00:00 2001 From: LyLme Date: Mon, 2 May 2022 00:49:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=94=B5=E8=84=91=E7=8B=AC=E7=AB=8B=E5=A3=81=E7=BA=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/common.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/common.php b/include/common.php index b77575b..3c0fdf6 100644 --- a/include/common.php +++ b/include/common.php @@ -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(0); +//error_reporting(E_ALL ^ E_NOTICE); require ROOT.'config.php'; if(!defined('SQLITE') && (!$dbconfig['user']||!$dbconfig['pwd']||!$dbconfig['dbname'])) { @@ -25,4 +25,8 @@ $groupsrows=$DB->num_rows($DB->query("SELECT * FROM `lylme_groups`")); $cdnpublic = cdnpublic($conf['cdnpublic']); $templatepath ='./template/'.$conf["template"]; $template = $templatepath.'/index.php'; +$background = $conf["background"]; +$wap_background = $conf["wap_background"]; +if(checkmobile()){if(!empty($wap_background)){$background_img = $wap_background;} +else{$background_img = $background; }}else{$background_img = $background; } ?> \ No newline at end of file