From 9b59808474735c715c25f8e376f4c505310b8072 Mon Sep 17 00:00:00 2001 From: wuhao <15392746632@qq.com> Date: Mon, 14 Dec 2020 17:24:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E7=BA=BF=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.php | 3 +++ edit.php | 22 +++++++++++++++++++++- pmcalendar.php | 8 ++++++-- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/_config.php b/_config.php index eb0baf9..d135eeb 100644 --- a/_config.php +++ b/_config.php @@ -13,4 +13,7 @@ $DBVROLES = $configJson['dbvroles']; $DBYYEROLES = $configJson['dbyyeroles']; $DBCPEROLES = $configJson['dbcperoles']; $DBYFEROLES = $configJson['dbyferoles']; + +//上线 +$SXYYEROLES = $configJson['sxyyeroles']; ?> \ No newline at end of file diff --git a/edit.php b/edit.php index 4649b91..29cadd2 100644 --- a/edit.php +++ b/edit.php @@ -104,7 +104,7 @@ if(!isn(r('mxfvroles'))){ file_put_contents("config.json",json_encode($configJson)); echo ""; } -//修复节点浏览 +//修复节点编辑 if(!isn(r('mxfyyeroles'))){ $roles = trim(_r("xfyyeroles")); $roles = str_replace("\r","",$roles); @@ -113,6 +113,15 @@ if(!isn(r('mxfyyeroles'))){ file_put_contents("config.json",json_encode($configJson)); echo ""; } +//***********************************上线*************************************************** +if(!isn(r('msxyyeroles'))){ + $roles = trim(_r("sxyyeroles")); + $roles = str_replace("\r","",$roles); + $arr = explode("\n",$roles); + $configJson['sxyyeroles'] = $arr; + file_put_contents("config.json",json_encode($configJson)); + echo ""; +} //require_once(ROOT.'./_config.php'); ?> @@ -251,6 +260,17 @@ if(!isn(r('mxfyyeroles'))){
+ +