From f678e260588197a41d5f6f52a0fa568c5ae4ca5d Mon Sep 17 00:00:00 2001 From: luosongbai <15272473386@163.com> Date: Thu, 3 Dec 2020 09:47:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- edit.php | 42 ++++++++++++++++++++++++++++++++++++++++++ pmcalendar.php | 28 ++++++++++++++++++---------- 2 files changed, 60 insertions(+), 10 deletions(-) diff --git a/edit.php b/edit.php index ecf0846..7cf3342 100644 --- a/edit.php +++ b/edit.php @@ -14,6 +14,15 @@ if(!isn(r('modiroles'))){ $configJson['roles'] = $arr; file_put_contents("config.json",json_encode($configJson)); } + +if(!isn(r('modiroles'))){ + $cproles = trim(_r("chanpin")); + $cproles = str_replace("\r","",$cproles); + $arr = explode("\n",$cproles); + $configJson['cproles'] = $arr; + file_put_contents("config.json",json_encode($configJson)); +} + require_once(ROOT.'./_config.php'); ?> @@ -42,6 +51,39 @@ require_once(ROOT.'./_config.php');
+ +