Esempio n. 1
0
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.dansguardian.inc');
	include_once('ressources/class.squid.reverse.inc');
	header("Pragma: no-cache");	
	header("Expires: 0");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-cache, must-revalidate");	
	$user=new usersMenus();
	if(!$user->AsDansGuardianAdministrator){
		$tpl=new templates();
		echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}").");";
		exit;
		
	}
	
	if(isset($_GET["smtp-parameters-js"])){SMTP_PARAMETERS_JS();exit;}
	if(isset($_GET["smtp-parameters-popup"])){SMTP_PARAMETERS_POPUP();exit;}
	if(isset($_POST["smtp_notifications"])){SMTP_PARAMETERS_SAVE();exit;}
	if(isset($_GET["test-smtp-js"])){tests_smtp_js();exit;}
	if(isset($_GET["smtp_sendto"])){tests_smtp();exit;}
	
	
	if(isset($_POST["UfdbGuardHTTPAllowUnblock"])){UNLOCK_SAVE();exit;}
	if(isset($_GET["EnableSquidGuardHTTPService"])){save();exit;}
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["per-categories"])){per_category_main();exit;}
	if(isset($_GET["per-categories-settings"])){per_category_settings();exit;}
	if(isset($_POST["external_uri"])){per_category_settings_save();exit;}
	if(isset($_GET["skin"])){skin();exit;}
	if(isset($_POST["CATEGORY"])){SAVE_SKIN();exit;}
Esempio n. 2
0
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.dansguardian.inc';
include_once 'ressources/class.squid.reverse.inc';
include_once 'ressources/class.squidguard-msmtp.inc';
header("Pragma: no-cache");
header("Expires: 0");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
$user = new usersMenus();
if (!$user->AsDansGuardianAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . ");";
    exit;
}
if (isset($_GET["smtp-parameters-js"])) {
    SMTP_PARAMETERS_JS();
    exit;
}
if (isset($_GET["smtp-parameters-popup"])) {
    SMTP_PARAMETERS_POPUP();
    exit;
}
if (isset($_POST["smtp_notifications"])) {
    SMTP_PARAMETERS_SAVE();
    exit;
}
if (isset($_GET["test-smtp-js"])) {
    tests_smtp_js();
    exit;
}
if (isset($_GET["smtp_sendto"])) {