Exemple #1
0
}
if (isset($_GET["export-community-categories"])) {
    dansguardian_community_categories();
    exit;
}
if (isset($_GET["create-user-folder"])) {
    directory_create_user();
    exit;
}
if (isset($_GET["delete-user-folder"])) {
    directory_delete_user();
    exit;
}
//disks
if (isset($_GET["disks-list"])) {
    disks_list();
    exit;
}
if (isset($_GET["usb-scan-write"])) {
    shell_exec("/usr/share/artica-postfix/bin/artica-install --usb-scan-write");
    exit;
}
if (isset($_GET["lvm-lvs"])) {
    lvs_scan();
    exit;
}
if (isset($_GET["sfdisk-dump"])) {
    sfdisk_dump();
    exit;
}
if (isset($_GET["mkfs"])) {
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.ldap.inc');
	
	$user=new usersMenus();
	if(!$user->AsSystemAdministrator){echo "alert('no privileges');";die();}
	if(isset($_GET["lvm-disks-list"])){disks_list();exit;}
	if(isset($_GET["lvm-disk-add-form"])){disks_add_form();exit;}
	if(isset($_GET["groups-infos"])){group_info();exit;}
	if(isset($_GET["vg-content"])){group_content();exit;}
	if(isset($_GET["lvm-tools"])){tools();exit;}
	
	if(isset($_GET["vgservice"])){vgservice_popup();exit;}
	if(isset($_POST["vgservice-save"])){vgservice_save();exit;}
	
	//lvcreate-popup
	if(isset($_GET["lvcreate-popup"])){lvcreate_popup();exit;}
	if(isset($_POST["lvcreate-perform"])){ACTION_LVM_CREATE_LV();exit;}
	if(isset($_POST["lvs-remove"])){ACTION_LVS_REMOVE();exit;}
	
	//actions
	if(isset($_GET["LVM_CONVERT_DEV"])){ACTION_LVM_CONVERT_DEV();exit;}
	if(isset($_GET["LVM_CREATE_GROUP"])){ACTION_LVM_CREATE_GROUP();exit;}
	
	
	
	start();
	
	
	
<?php

include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
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();
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	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);