示例#1
0
    exit;
}
if (isset($_POST["CATEGORY"])) {
    SAVE_SKIN();
    exit;
}
if (isset($_GET["unlock"])) {
    UNLOCK_SECTION();
    exit;
}
if (isset($_GET["skin-tabs"])) {
    skin_tabs();
    exit;
}
if (isset($_GET["skin-logo"])) {
    skin_logo();
    exit;
}
js();
function js()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $title = $tpl->_ENGINE_parse_body("{banned_page_webservice}");
    header("content-type: application/x-javascript");
    $html = "\n\t\tYahooWin5('1071','{$page}?tabs=yes','{$title}');\n\t";
    echo $html;
}
function SMTP_PARAMETERS_JS()
{
    $tpl = new templates();
示例#2
0
	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;}
	if(isset($_GET["unlock"])){UNLOCK_SECTION();exit;}
	if(isset($_GET["skin-tabs"])){skin_tabs();exit;}
	if(isset($_GET["skin-logo"])){skin_logo();exit;}
js();	
	
function js(){
	$tpl=new templates();
	$page=CurrentPageName();
	$title=$tpl->_ENGINE_parse_body("{banned_page_webservice}");
	header("content-type: application/x-javascript");
	$html="
		YahooWin5('1071','$page?tabs=yes','$title');
	";
	echo $html;
		
		
}
	$user=new usersMenus();
	if(!$user->AsDansGuardianAdministrator){
		$tpl=new templates();
		echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}").");";
		exit;
		
	}
	if(isset($_GET["enable-js"])){skin_enable_js();exit;}
	if(isset($_GET["delete-rule-js"])){skin_delete_js();exit;}
	if(isset($_GET["picture"])){send_picture();exit;}
	if(isset($_GET["skin-js"])){skin_js();exit;}
	if(isset($_GET["list"])){list_items();exit();}
	if(isset($_GET["skin-tabs"])){skin_tabs();exit;}
	if(isset($_GET["TEMPLATE_SETTINGS"])){skin_parameters();exit;}
	if(isset($_GET["TEMPLATE_CONTENT"])){skin_design();exit;}
	if(isset($_GET["TEMPLATE_LOGO"])){skin_logo();exit;}
	
	if(isset($_POST["zmd5-params"])){skin_parameters_save();exit;}
	if(isset($_POST["UFDBGUARD_TITLE_1"])){skin_design_save();exit;}
	if(isset($_POST["SquidHTTPTemplateLogoEnable"])){skin_logo_save();exit;}
	if(isset($_POST["delete-rule"])){skin_delete();exit;}
	if(isset($_POST["enable-rule"])){skin_enable();exit;}
page();

function skin_js(){
	
	header("content-type: application/x-javascript");
	$page=CurrentPageName();
	$tpl=new templates();
	$sock=new sockets();
	$zmd5=$_GET["zmd5"];