Example #1
0
    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;
}
if (isset($_GET["SharedFolderListJS"])) {
    echo SharedFolderListJS();
    exit;
Example #2
0
		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();		
	}
	
	if(isset($_GET["SharedFolderListJS"])){echo SharedFolderListJS();exit;}
	if(isset($_GET["main-params-js"])){main_parameters_js();exit;}
	if(isset($_GET["RestartServices"])){restart_services();exit;}
	if(isset($_GET["script"])){popup_js();exit;}
	if(isset($_GET["popup"])){popup_page();exit;}
	if(isset($_GET["SaveGeneralSettings"])){SaveConf();exit;}
	if(isset($_GET["status"])){echo main_status();exit;}