Beispiel #1
0
    exit;
}
if (isset($_POST["EnableGoogleSafeSearch"])) {
    EnableGoogleSafeSearch_save();
    exit;
}
if (isset($_POST["EnableGoogleSafeBrowsing"])) {
    EnableGoogleSafeBrowsing_save();
    exit;
}
if (isset($_GET["GoogleSafeBrowsingApiKey-js"])) {
    GoogleSafeBrowsingApiKey_js();
    exit;
}
if (isset($_GET["GoogleSafeBrowsingApiKey-popup"])) {
    GoogleSafeBrowsingApiKey_popup();
    exit;
}
if (isset($_POST["GoogleSafeBrowsingApiKey"])) {
    GoogleSafeBrowsingApiKey_save();
    exit;
}
if (isset($_GET["PhishTankApiKey-js"])) {
    PhishTankApiKey_js();
    exit;
}
if (isset($_GET["PhishTankApiKey-popup"])) {
    PhishTankApiKey_popup();
    exit;
}
if (isset($_POST["PhishTankApiKey"])) {
	include_once('ressources/class.compile.ufdbguard.inc');
	
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsDansGuardianAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}
	if(isset($_GET["service-status"])){service_status();exit;}
	if(isset($_GET["main"])){main();exit;}
	if(isset($_POST["EnableGoogleSafeSearch"])){EnableGoogleSafeSearch_save();exit;}
	if(isset($_POST["EnableGoogleSafeBrowsing"])){EnableGoogleSafeBrowsing_save();exit;}
	if(isset($_GET["GoogleSafeBrowsingApiKey-js"])){GoogleSafeBrowsingApiKey_js();exit;}
	if(isset($_GET["GoogleSafeBrowsingApiKey-popup"])){GoogleSafeBrowsingApiKey_popup();exit;}
	if(isset($_POST["GoogleSafeBrowsingApiKey"])){GoogleSafeBrowsingApiKey_save();exit;}
page();


function service_cmds_js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$cmd=$_GET["service-cmds"];
	$mailman=$tpl->_ENGINE_parse_body("{APP_UFDBGUARD}");
	$html="YahooWin4('650','$page?service-cmds-popup=$cmd','$mailman::$cmd');";
	echo $html;	
}
function service_cmds_popup(){
	$page=CurrentPageName();
	$tpl=new templates();