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["browse-amanda-list"])) {
    clients_list();
    exit;
}
if (isset($_GET["id-js"])) {
    client_js();
    exit;
}
if (isset($_GET["id-popup"])) {
    client_popup();
    exit;
}
if (isset($_POST["ID"])) {
    client_save();
    exit;
}
if (isset($_POST["delete-id"])) {
    client_delete();
    exit;
}
page();
Esempio n. 2
0
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.system.network.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.ccurl.inc');
	include_once("ressources/class.compile.ufdbguard.expressions.inc");
	
	$user=new usersMenus();
	if($user->AsDansGuardianAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	
	
	if(isset($_GET["behavior"])){behavior();exit;}
	if(isset($_GET["client-js"])){client_js();exit;}
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["ufdbperf"])){ufdbperf();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_POST["enforce-https-with-hostname"])){save_ssl();exit;}
	if(isset($_GET["ufdbclient"])){ufdbclient_popup();exit;}
	if(isset($_POST["url_rewrite_children_max"])){save_ssl();exit;}
	if(isset($_POST["UseRemoteUfdbguardService"])){save_ssl();exit;}
	if(isset($_POST["url_rewrite_bypass"])){url_rewrite_bypass_save();exit;}
	if(isset($_GET["force-reload-js"])){force_reload_js();exit;}
	if(isset($_POST["force-reload-perform"])){force_reload_perform();exit;}
	if(isset($_GET["import-export"])){import_export();exit;}
	if(isset($_GET["TestsSocket"])){TestsSocket();exit;}
	js();