Esempio n. 1
0
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.system.network.inc';
include_once 'ressources/class.mysql.inc';
$user = new usersMenus();
if ($user->AsSystemAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["params"])) {
    service_parameters();
    exit;
}
if (isset($_POST["mailto"])) {
    service_parameters_save();
    exit;
}
if (isset($_GET["dumptypes"])) {
    dumptypes();
    exit;
}
if (isset($_GET["dumptype-key"])) {
    dumptype_popup();
    exit;
}
if (isset($_POST["dumpname"])) {
Esempio n. 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.system.network.inc');
	include_once('ressources/class.mysql.inc');

$user=new usersMenus();
	if($user->AsSystemAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["params"])){service_parameters();exit;}
	if(isset($_POST["mailto"])){service_parameters_save();exit;}
	
	if(isset($_GET["dumptypes"])){dumptypes();exit;}
	if(isset($_GET["dumptype-key"])){dumptype_popup();exit;}
	if(isset($_POST["dumpname"])){dumptype_save();exit;}
	if(isset($_GET["amanda-dumptypes-list"])){dumptypes_list();exit;}
	
js();


function js(){
	$page=CurrentPageName();
	echo "$('#BodyContent').load('$page?tabs=yes');";
	
}