Ejemplo n.º 1
0
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"])) {
Ejemplo n.º 2
0
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.samba.inc');
	include_once('ressources/class.user.inc');
	include_once('ressources/class.kav4samba.inc');
	
	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();