Merge branch 'master' of http://git.legu.cc/wuhao/leguevent
This commit is contained in:
commit
ada92e5dbe
@ -8,4 +8,9 @@ $GXCPEROLES = $configJson['gxcperoles'];
|
|||||||
$GXYFEROLES = $configJson['gxyferoles'];
|
$GXYFEROLES = $configJson['gxyferoles'];
|
||||||
$XFVROLES = $configJson['xfvroles'];
|
$XFVROLES = $configJson['xfvroles'];
|
||||||
$XFYYEROLES = $configJson['xfyyeroles'];
|
$XFYYEROLES = $configJson['xfyyeroles'];
|
||||||
|
|
||||||
|
$DBVROLES = $configJson['dbvroles'];
|
||||||
|
$DBYYEROLES = $configJson['dbyyeroles'];
|
||||||
|
$DBCPEROLES = $configJson['dbcperoles'];
|
||||||
|
$DBYFEROLES = $configJson['dbyferoles'];
|
||||||
?>
|
?>
|
122
edit.php
122
edit.php
@ -53,6 +53,48 @@ if(!isn(r('mgxyferoles'))){
|
|||||||
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('mdbvroles'))){
|
||||||
|
$roles = trim(_r("dbvroles"));
|
||||||
|
$roles = str_replace("\r","",$roles);
|
||||||
|
$arr = explode("\n",$roles);
|
||||||
|
$configJson['dbvroles'] = $arr;
|
||||||
|
// exit(json_encode($configJson));
|
||||||
|
file_put_contents("config.json",json_encode($configJson));
|
||||||
|
echo "<script language=JavaScript> location.replace(location.href);</script>";
|
||||||
|
}
|
||||||
|
//打包节点运营编辑
|
||||||
|
if(!isn(r('mdbyyeroles'))){
|
||||||
|
$roles = trim(_r("dbyyeroles"));
|
||||||
|
$roles = str_replace("\r","",$roles);
|
||||||
|
$arr = explode("\n",$roles);
|
||||||
|
$configJson['dbyyeroles'] = $arr;
|
||||||
|
file_put_contents("config.json",json_encode($configJson));
|
||||||
|
echo "<script language=JavaScript> location.replace(location.href);</script>";
|
||||||
|
}
|
||||||
|
//打包节点产品编辑
|
||||||
|
if(!isn(r('mdbcperoles'))){
|
||||||
|
$roles = trim(_r("dbcperoles"));
|
||||||
|
$roles = str_replace("\r","",$roles);
|
||||||
|
$arr = explode("\n",$roles);
|
||||||
|
$configJson['dbcperoles'] = $arr;
|
||||||
|
file_put_contents("config.json",json_encode($configJson));
|
||||||
|
echo "<script language=JavaScript> location.replace(location.href);</script>";
|
||||||
|
}
|
||||||
|
//打包节点研发编辑
|
||||||
|
if(!isn(r('mdbyferoles'))){
|
||||||
|
$roles = trim(_r("dbyferoles"));
|
||||||
|
$roles = str_replace("\r","",$roles);
|
||||||
|
$arr = explode("\n",$roles);
|
||||||
|
$configJson['dbyferoles'] = $arr;
|
||||||
|
file_put_contents("config.json",json_encode($configJson));
|
||||||
|
echo "<script language=JavaScript> location.replace(location.href);</script>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//***********************************修复***************************************************
|
||||||
//修复节点浏览
|
//修复节点浏览
|
||||||
if(!isn(r('mxfvroles'))){
|
if(!isn(r('mxfvroles'))){
|
||||||
$roles = trim(_r("xfvroles"));
|
$roles = trim(_r("xfvroles"));
|
||||||
@ -101,16 +143,17 @@ if(!isn(r('mxfyyeroles'))){
|
|||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<h3>更新-信息查看区浏览权限?</h3>
|
<!--更新节点-->
|
||||||
<form name="form1" method="post" action="">
|
<!--<h3>更新-信息查看区浏览权限?</h3>-->
|
||||||
<p>每行一个</p>
|
<!--<form name="form1" method="post" action="">-->
|
||||||
<p>
|
<!-- <p>每行一个</p>-->
|
||||||
<textarea name="gxvroles" id="gxvroles" cols="45" rows="5" style="width:90%;height:300px;"><?=implode("\n",$GXVROLES)?></textarea>
|
<!-- <p>-->
|
||||||
</p>
|
<!-- <textarea name="gxvroles" id="gxvroles" cols="45" rows="5" style="width:90%;height:300px;">--><?//=implode("\n",$GXVROLES)?><!--</textarea>-->
|
||||||
<p>
|
<!-- </p>-->
|
||||||
<input type="submit" name="mgxvroles" id="button" value="提交">
|
<!-- <p>-->
|
||||||
</p>
|
<!-- <input type="submit" name="mgxvroles" id="button" value="提交">-->
|
||||||
</form>
|
<!-- </p>-->
|
||||||
|
<!--</form>-->
|
||||||
<h3>更新-运营中心编辑权限?</h3>
|
<h3>更新-运营中心编辑权限?</h3>
|
||||||
<form name="form1" method="post" action="">
|
<form name="form1" method="post" action="">
|
||||||
<p>每行一个</p>
|
<p>每行一个</p>
|
||||||
@ -121,26 +164,73 @@ if(!isn(r('mxfyyeroles'))){
|
|||||||
<input type="submit" name="mgxyyeroles" id="button" value="提交">
|
<input type="submit" name="mgxyyeroles" id="button" value="提交">
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
<h3>更新-产品中心编辑权限?</h3>
|
<!--<h3>更新-产品中心编辑权限?</h3>-->
|
||||||
|
<!--<form name="form1" method="post" action="">-->
|
||||||
|
<!-- <p>每行一个</p>-->
|
||||||
|
<!-- <p>-->
|
||||||
|
<!-- <textarea name="gxcperoles" id="gxcperoles" cols="45" rows="5" style="width:90%;height:300px;">--><?//=implode("\n",$GXCPEROLES)?><!--</textarea>-->
|
||||||
|
<!-- </p>-->
|
||||||
|
<!-- <p>-->
|
||||||
|
<!-- <input type="submit" name="mgxcperoles" id="button" value="提交">-->
|
||||||
|
<!-- </p>-->
|
||||||
|
<!--</form>-->
|
||||||
|
<!--<h3>更新-研发中心编辑权限?</h3>-->
|
||||||
|
<!--<form name="form1" method="post" action="">-->
|
||||||
|
<!-- <p>每行一个</p>-->
|
||||||
|
<!-- <p>-->
|
||||||
|
<!-- <textarea name="gxyferoles" id="gxyferoles" cols="45" rows="5" style="width:90%;height:300px;">--><?//=implode("\n",$GXYFEROLES)?><!--</textarea>-->
|
||||||
|
<!-- </p>-->
|
||||||
|
<!-- <p>-->
|
||||||
|
<!-- <input type="submit" name="mgxyferoles" id="button" value="提交">-->
|
||||||
|
<!-- </p>-->
|
||||||
|
<!--</form>-->
|
||||||
|
|
||||||
|
|
||||||
|
<!--打包节点-->
|
||||||
|
<h3>打包-信息查看区浏览权限?</h3>
|
||||||
<form name="form1" method="post" action="">
|
<form name="form1" method="post" action="">
|
||||||
<p>每行一个</p>
|
<p>每行一个</p>
|
||||||
<p>
|
<p>
|
||||||
<textarea name="gxcperoles" id="gxcperoles" cols="45" rows="5" style="width:90%;height:300px;"><?=implode("\n",$GXCPEROLES)?></textarea>
|
<textarea name="dbvroles" id="dbvroles" cols="45" rows="5" style="width:90%;height:300px;"><?=implode("\n",$dbVROLES)?></textarea>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<input type="submit" name="mgxcperoles" id="button" value="提交">
|
<input type="submit" name="mdbvroles" id="button" value="提交">
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
<h3>更新-研发中心编辑权限?</h3>
|
<h3>打包-运营中心编辑权限?</h3>
|
||||||
<form name="form1" method="post" action="">
|
<form name="form1" method="post" action="">
|
||||||
<p>每行一个</p>
|
<p>每行一个</p>
|
||||||
<p>
|
<p>
|
||||||
<textarea name="gxyferoles" id="gxyferoles" cols="45" rows="5" style="width:90%;height:300px;"><?=implode("\n",$GXYFEROLES)?></textarea>
|
<textarea name="dbyyeroles" id="dbyyeroles" cols="45" rows="5" style="width:90%;height:300px;"><?=implode("\n",$dbYYEROLES)?></textarea>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<input type="submit" name="mgxyferoles" id="button" value="提交">
|
<input type="submit" name="mdbyyeroles" id="button" value="提交">
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
<h3>打包-产品中心编辑权限?</h3>
|
||||||
|
<form name="form1" method="post" action="">
|
||||||
|
<p>每行一个</p>
|
||||||
|
<p>
|
||||||
|
<textarea name="dbcperoles" id="dbcperoles" cols="45" rows="5" style="width:90%;height:300px;"><?=implode("\n",$dbCPEROLES)?></textarea>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<input type="submit" name="mdbcperoles" id="button" value="提交">
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
<h3>打包-研发中心编辑权限?</h3>
|
||||||
|
<form name="form1" method="post" action="">
|
||||||
|
<p>每行一个</p>
|
||||||
|
<p>
|
||||||
|
<textarea name="dbyferoles" id="dbyferoles" cols="45" rows="5" style="width:90%;height:300px;"><?=implode("\n",$dbYFEROLES)?></textarea>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<input type="submit" name="mdbyferoles" id="button" value="提交">
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h3>修复-信息查看区浏览权限?</h3>
|
<h3>修复-信息查看区浏览权限?</h3>
|
||||||
<form name="form1" method="post" action="">
|
<form name="form1" method="post" action="">
|
||||||
<p>每行一个</p>
|
<p>每行一个</p>
|
||||||
|
@ -11,6 +11,11 @@ $isgxyferole = in_array($user['name'], $GXYFEROLES);//更新研发中心编辑
|
|||||||
$isxfvrole = in_array($user['name'], $XFVROLES); //修复信息查看区浏览权限
|
$isxfvrole = in_array($user['name'], $XFVROLES); //修复信息查看区浏览权限
|
||||||
$isxfyyerole = in_array($user['name'], $XFYYEROLES);//修复运营中心编辑权限
|
$isxfyyerole = in_array($user['name'], $XFYYEROLES);//修复运营中心编辑权限
|
||||||
|
|
||||||
|
$isdbvrole ='1'; //in_array($user['name'], $DBVROLES); //打包信息查看区浏览权限
|
||||||
|
$isdbyyerole = in_array($user['name'], $DBYYEROLES);//打包运营中心编辑权限
|
||||||
|
$isdbcperole = in_array($user['name'], $DBCPEROLES);//打包产品中心编辑权限
|
||||||
|
$isdbyferole = in_array($user['name'], $DBYFEROLES);//打包研发中心编辑权限
|
||||||
|
|
||||||
function fix2($v)
|
function fix2($v)
|
||||||
{
|
{
|
||||||
$x = '00' . $v;
|
$x = '00' . $v;
|
||||||
|
Loading…
Reference in New Issue
Block a user