exit; } if (isset($_GET["FolderDelete"])) { folder_delete(); exit; } if (isset($_GET["mkdirp"])) { mkdirp(); exit; } if (isset($_GET["TreeRightInfos"])) { TreeRightInfos(); exit; } if (isset($_GET["userlists"])) { echo folder_security_list_users(); exit; } if (isset($_POST["AddUserToFolder"])) { folder_security_adduser(); exit; } if (isset($_POST["SaveUseridPrivileges"])) { folder_security_save_priv(); exit; } if (isset($_POST["DeleteAllFolderSecu"])) { folder_security_clean_priv(); exit; } if (isset($_GET["main"])) {
function folder_security() { $page = CurrentPageName(); $folder = $_GET["prop"]; $smb = new samba(); $html = "\n\t<H6>{users_and_groups}</H6>\n\t<input type='hidden' id='folder_security_users_ff' value='{$folder}'>\n\t<div style='padding:5px;margin:5px;border:1px solid #CCCCCC;width:380px;background-color:white' id='userlists'>\n\t\t" . folder_security_list_users() . "\n\t\n\t\n\t\n\t</div>\n\t<table style='width:400px'>\n\t<tr>\n\t<td width=99%> </td>\n\t<td><input type='button' value='{add} »' OnClick=\"javascript:YahooWin5(400,'{$page}?security={$folder}','{security} {$folder}');\"></td>\n\t<td>\n\t<input type='hidden' id='selectuserfirst' value='{selectuserfirst}'>\n\t<input type='hidden' value='' id='DeleteUserid'>\n\t<input type='button' value='{delete} »' OnClick=\"javascript:DeleteUserPrivilege();\"></td>\n\t</tr>\n\t</table>\n\t<br>\n\t<div style='padding:5px;margin:5px;border:1px solid #CCCCCC;width:380px;background-color:white' id='UserSecurityInfos'>\n\t\n\t</div>\n\t\n\t"; $tpl = new templates(); return $tpl->_ENGINE_parse_body($html); }
function folder_security() { $page = CurrentPageName(); $folder = $_GET["prop"]; $tpl = new templates(); $smb = new samba(); if ($smb->main_array[$folder]["hosts deny"] != null) { return $tpl->_ENGINE_parse_body("<H5>{SIMPLE_SHARE_IS_ENABLED}</H5>"); } $folder_uri = urlencode($folder); $html = "\n\t<div style='font-size:16px'>{users_and_groups}</div>\n\t<input type='hidden' id='folder_security_users_ff' value='{$folder}'>\n\t<div style='padding:5px;margin:5px;width:380px;background-color:white' id='userlists'>\n\t\t" . folder_security_list_users() . "\n\t\n\t\n\t\n\t</div>\n\t<table style='width:400px'>\n\t<tr>\n\t<td width=99%> </td>\n\t<td><input type='button' value='{add} »' OnClick=\"javascript:YahooWin5(600,'{$page}?security={$folder_uri}','{security} {$folder}');\"></td>\n\t<td>\n\t<input type='hidden' id='selectuserfirst' value='{selectuserfirst}'>\n\t<input type='hidden' value='' id='DeleteUserid'>\n\t<input type='button' value='{delete} »' OnClick=\"javascript:DeleteUserPrivilege();\"></td>\n\t</tr>\n\t</table>\n\t<br>\n\t<div style='padding:5px;margin:5px;width:380px;' id='UserSecurityInfos'>\n\t\n\t</div>\n\t\n\t"; return $tpl->_ENGINE_parse_body($html); }
if(isset($_GET["debug-page"])){ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);$GLOBALS["VERBOSE"]=true;} if(!CheckSambaRights()){ $tpl=new templates(); $ERROR_NO_PRIVS=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}"); echo "<H1>$ERROR_NO_PRIVS</H1>";die(); } if(isset($_GET["folder-security-list-users-table"])){folder_security_users_table();exit;} if(isset($_GET["main-js"])){main_smb_config_js();exit();}; if( isset($_POST['upload']) ){main_kav4samba_LicenceUploaded();exit();} if(isset($_GET["FolderDelete"])){folder_delete();exit;} if(isset($_GET["mkdirp"])){mkdirp();exit;} if(isset($_GET["TreeRightInfos"])){TreeRightInfos();exit;} if(isset($_GET["userlists"])){echo folder_security_list_users();exit;} if(isset($_POST["AddUserToFolder"])){folder_security_adduser();exit;} if(isset($_POST["SaveUseridPrivileges"])){folder_security_save_priv();exit;} if(isset($_POST["DeleteAllFolderSecu"])){folder_security_clean_priv();exit;} if(isset($_GET["main"])){main_switch();exit;} if(isset($_POST["ChangeShareNameOrg"])){folder_change_sharename();exit;} if(isset($_POST["ArticaSambaAutomAskCreation"])){main_artica_for_samba_save();exit;} if(isset($_POST["recycle_vfs"])){recycle_vfs_save();exit;} if(isset($_GET["jsaddons"])){echo jsaddons();exit;} if(!CheckSambaUniqueRights()){ $tpl=new templates(); $ERROR_NO_PRIVS=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}"); echo "<H1>$ERROR_NO_PRIVS</H1>";die(); }