diff --git a/index.php b/index.php index 13d0a5b..46ccddd 100644 --- a/index.php +++ b/index.php @@ -73,6 +73,7 @@ if(empty($c) || $c == 'index'){ }elseif(in_array($c,['admin','click','api','ico','verify'])){ require "./system/{$c}.php"; }elseif(in_array($c,['apply','guestbook'])){ + if($global_config['Maintenance'] != 0){Amsg(-1,'网站正在进行维护,请稍后再试!');} require "./system/expand/{$c}.php"; }else{ Amsg(-1,'接口错误'.$c); diff --git a/system/Msg.php b/system/Msg.php index b0216de..e2ccea1 100644 --- a/system/Msg.php +++ b/system/Msg.php @@ -23,6 +23,6 @@ function Amsg($code,$msg){ msg($code,$msg); }else{ header("content-Type: text/html; charset=utf-8"); - exit('
终端地址: '. $value['ip'] .'
联系方式: '. $value['contact'] .'
'. str_replace("\n","
",str_replace(" "," ",$value['content'])) ; ?>