コード例 #1
0
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"])) {
コード例 #2
0
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.samba.inc');


	
	
	$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');";
}