From 0bc32f95ff40e5402cdae36fbfac48aec802c4be Mon Sep 17 00:00:00 2001 From: kf_wuhao <15392746632@qq.com> Date: Mon, 1 Mar 2021 12:29:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=BB=B6=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.php | 3 +++ edit.php | 20 ++++++++++++++++++++ pmcalendar.php | 38 +++++++++++++++++++++++++++++++++++++- 3 files changed, 60 insertions(+), 1 deletion(-) diff --git a/_config.php b/_config.php index 194bd41..2584f47 100644 --- a/_config.php +++ b/_config.php @@ -17,4 +17,7 @@ $DBYFEROLES = $configJson['dbyferoles']; //上线 $SXYYEROLES = $configJson['sxyyeroles']; $SXAROLES = $configJson['sxaroles']; +// 延期编辑 +$YQEROLES = $configJson['yqeroles']; + ?> \ No newline at end of file diff --git a/edit.php b/edit.php index a88344b..c1d2458 100644 --- a/edit.php +++ b/edit.php @@ -131,6 +131,15 @@ if(!isn(r('sxaroles'))){ file_put_contents("config.json",json_encode($configJson)); echo ""; } +//***********************************延期评论*************************************************** +if(!isn(r('myqeroles'))){ + $roles = trim(_r("yqeroles")); + $roles = str_replace("\r","",$roles); + $arr = explode("\n",$roles); + $configJson['yqeroles'] = $arr; + file_put_contents("config.json",json_encode($configJson)); + echo ""; +} //require_once(ROOT.'./_config.php'); ?> @@ -290,6 +299,17 @@ if(!isn(r('sxaroles'))){
+ +