Exemple #1
0
    disk_get_mounted_point();
    exit;
}
if (isset($_GET["fdisk-build-big-partitions"])) {
    disk_format_big_partition();
}
if (isset($_GET["chown"])) {
    directory_chown();
    exit;
}
if (isset($_GET["quotastats"])) {
    quotastats();
    exit;
}
if (isset($_GET["repquota"])) {
    repquota();
    exit;
}
if (isset($_GET["setquota"])) {
    setquota();
    exit;
}
if (isset($_GET["quotas-recheck"])) {
    quotasrecheck();
    exit;
}
if (isset($_GET["umount-disk"])) {
    umount_disk();
    exit;
}
if (isset($_GET["lvremove"])) {

	
	
	$user=new usersMenus();
	if($user->AsSambaAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["quotas-disk-list"])){echo disks_list();exit;}
	if(isset($_GET["manage-quotas"])){echo manage_quotas_js();exit;}
	if(isset($_GET["manage-quotas-popup"])){echo manage_quotas_popup();exit;}
	if(isset($_GET["manage-quotas-popup-add"])){echo manage_quotas_popup_add();exit;}
	if(isset($_GET["repquota"])){repquota();exit;}
	if(isset($_GET["SaveUserQuota"])){SaveUserQuota();exit;}
	if(isset($_GET["RecheckQuotasAll"])){RecheckQuotasAll();exit;}
page();


function manage_quotas_js(){
	$page=CurrentPageName();
	$tpl=new templates();	
	$dir=$_GET["mount"];
	$title=$tpl->_ENGINE_parse_body("{quota_disk}:$dir");
	$dir=urlencode($dir);
	echo "YahooWin5('785','$page?manage-quotas-popup=yes&mount=$dir','$title');";
}