Exemplo n.º 1
0
    putIniFile($Authz, getAuthzPath());
}
//删除路径权限
if (8 == $_GET['ac']) {
    $Authz['aliases'] = array();
    $ph = $_GET['ph'];
    $k = trim($_GET['k']);
    unset($Authz[$ph][$k]);
    putIniFile($Authz, getAuthzPath());
}
//删除路径
if (9 == $_GET['ac']) {
    $Authz['aliases'] = array();
    $ph = $_GET['ph'];
    unset($Authz[$ph]);
    putIniFile($Authz, getAuthzPath());
}
//删除用户
if (10 == $_GET['ac']) {
    $name = trim($_GET['name']);
    unset($userList['users'][$name]);
    putIniFile($userList, getPasswdPath());
}
$qx = $Authz = getAuthz();
$Authz = $Authz['groups'];
unset($qx['aliases']);
unset($qx['groups']);
$userList = getPasswd();
?>
<script src="http://cdn.bootcss.com/jquery/2.1.1-rc2/jquery.min.js"></script>
<script>
Exemplo n.º 2
0
/**
 * 获取权限住处
 * @return type
 */
function getAuthz()
{
    return parse_ini_file(getAuthzPath(), true);
}