Example #1
0
	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();
	
	
	
function start(){
	$page=CurrentPageName();
Example #2
0
}
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;
}