Example #1
0
    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;
}
if (isset($_GET["backup-server"])) {
    backup_server_popup();
    exit;
}
if (isset($_POST["AmandaBackupServer"])) {
    AmandaBackupServerSave();
    exit;
}
if (isset($_GET["AmandaServerResolv"])) {
Example #2
0
	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');";
	
}


function service_parameters(){
	$sock=new sockets();
	$config=unserialize(base64_decode($sock->GET_INFO("AmandaServerConfig")));