$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> function getMemberListSe() { str = ''; <?php if ($userList['users']) {
$Authz['groups'][$gname] = ''; putIniFile($Authz, getAuthzPath()); } } //组员添加 if (3 == $_POST['ac']) { $Authz['aliases'] = array(); $gname = trim($_POST['gname']); $tmpgrow = explode(',', $Authz['groups'][$gname]); $tmpList = array_unique($_POST['member']); if ($tmpgrow[0]) { $tmpList = array_merge($tmpgrow, $tmpList); } $tmpList = array_unique($tmpList); $Authz['groups'][$gname] = implode(',', $tmpList); putIniFile($Authz, getAuthzPath()); } } //整理数据 $Authz = $Authz['groups']; //unset($qx['aliases']); //unset($qx['groups']); $top = 2; include 'header.php'; ?> <link href="/css/dashboard.css" rel="stylesheet"> <div class="container"> <!-- Main component for a primary marketing message or call to action --> <div class="jumbotron"> <?php include 'top.php';