那些人可以添加上线卡片
This commit is contained in:
parent
8d8bf97dbe
commit
7c89861970
@ -16,4 +16,5 @@ $DBYFEROLES = $configJson['dbyferoles'];
|
|||||||
|
|
||||||
//上线
|
//上线
|
||||||
$SXYYEROLES = $configJson['sxyyeroles'];
|
$SXYYEROLES = $configJson['sxyyeroles'];
|
||||||
|
$SXAROLES = $configJson['sxaroles'];
|
||||||
?>
|
?>
|
19
edit.php
19
edit.php
@ -122,6 +122,15 @@ if(!isn(r('msxyyeroles'))){
|
|||||||
file_put_contents("config.json",json_encode($configJson));
|
file_put_contents("config.json",json_encode($configJson));
|
||||||
echo "<script language=JavaScript> location.replace(location.href);</script>";
|
echo "<script language=JavaScript> location.replace(location.href);</script>";
|
||||||
}
|
}
|
||||||
|
//***********************************添加上线卡片***************************************************
|
||||||
|
if(!isn(r('sxaroles'))){
|
||||||
|
$roles = trim(_r("sxaroles"));
|
||||||
|
$roles = str_replace("\r","",$roles);
|
||||||
|
$arr = explode("\n",$roles);
|
||||||
|
$configJson['sxaroles'] = $arr;
|
||||||
|
file_put_contents("config.json",json_encode($configJson));
|
||||||
|
echo "<script language=JavaScript> location.replace(location.href);</script>";
|
||||||
|
}
|
||||||
//require_once(ROOT.'./_config.php');
|
//require_once(ROOT.'./_config.php');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -152,6 +161,16 @@ if(!isn(r('msxyyeroles'))){
|
|||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<h3>哪些人可以添加上线?</h3>
|
||||||
|
<form name="form1" method="post" action="">
|
||||||
|
<p>每行一个</p>
|
||||||
|
<p>
|
||||||
|
<textarea name="sxaroles" id="sxaroles" cols="45" rows="5" style="width:90%;height:300px;"><?=implode("\n",$SXAROLES)?></textarea>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<input type="submit" name="modiroles" id="button" value="提交">
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
<!--更新节点-->
|
<!--更新节点-->
|
||||||
<!--<h3>更新-信息查看区浏览权限?</h3>-->
|
<!--<h3>更新-信息查看区浏览权限?</h3>-->
|
||||||
<!--<form name="form1" method="post" action="">-->
|
<!--<form name="form1" method="post" action="">-->
|
||||||
|
Loading…
Reference in New Issue
Block a user