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']) { ?> str += '<p><select name="member[]" >';
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ header('Content-type: text/html; charset=UTF-8'); include "function.php"; session_start(); ini_set('display_errors', 'On'); error_reporting(E_ALL); //管理员账号 define('ADMIN_ACCOUT', 'admin'); define('ADMIN_PWD', 'admin'); // svn 根目录 ----需要修改 define('SVN_PATH', '/home/svn/'); //define('SVN_PATH', './tmp/'); //项目列表 $projectList = getDirFile(SVN_PATH); //设置当前项目 if (!isset($_SESSION['pro']) || !$_SESSION['pro']) { $_SESSION['pro'] = $projectList[0]; } //用户列表 $userList = getPasswd(); //权限列表 $Authz = getAuthz(); $err = '';