Пример #1
0
<?php

include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once "ressources/class.os.system.inc";
include_once "ressources/class.lvm.org.inc";
$user = new usersMenus();
if (!$user->AsSystemAdministrator) {
    echo "alert('no privileges');";
    die;
}
if (isset($_GET["unlink-disk-js"])) {
    unlink_disk_js();
    exit;
}
if (isset($_POST["unlink-disk"])) {
    unlink_disk();
    exit;
}
if (isset($_GET["partinfos-js"])) {
    js();
    exit;
}
if (isset($_GET["display2"])) {
    hd_index();
    exit;
}
if (isset($_GET["display"])) {
    tabs();
    exit;
Пример #2
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once("ressources/class.os.system.inc");
	include_once("ressources/class.lvm.org.inc");
	
	$user=new usersMenus();
	if(!$user->AsSystemAdministrator){echo "alert('no privileges');";die();}
	
	
	if(isset($_GET["unlink-disk-js"])){unlink_disk_js();exit;}
	if(isset($_POST["unlink-disk"])){unlink_disk();exit;}
	if(isset($_GET["partinfos-js"])){js();exit;}
	if(isset($_GET["display2"])){hd_index();exit;}
	if(isset($_GET["display"])){tabs();exit;}
	if(isset($_GET["hd-index-list"])){hd_index_list();exit;}
	if(isset($_GET["partinfos"])){hd_partinfos();exit;}
	if(isset($_GET["ChangeLabel"])){ChangeLabel();exit;}
	if(isset($_GET["BuildBigPartition"])){BuildBigPartition();exit;}
	if(isset($_GET["Lastlogs"])){Lastlogs();exit;}
	if(isset($_GET["SMARTDIndex"])){SMARTDIndex();exit;}
	if(isset($_GET["SMARTDStats"])){SMARTDStats();exit;}
	if(isset($_GET["SMARTDAttrs"])){SMARTDAttrs();exit;}
	if(isset($_GET["SMARTDInfo"])){SMARTDIndexInfos($_GET["SMARTDInfo"]);exit;}
	if(isset($_GET["SMARTDSlefttestShort"])){SMARTDTestShort();exit;}
	if(isset($_GET["EnableSmartctl"])){SMARTDEnable();exit;}
	if(isset($_GET["pvcreatedev"])){lvm_pvcreate_dev();exit;}
	if(isset($_GET["vgcreatedev"])){lvm_vgcreate_dev();exit;}
	if(isset($_GET["vglist"])){echo lv_groups_list($_GET["vglist"]);exit;}
	if(isset($_GET["lvcreate"])){lvm_lvcreate();exit;}