Esempio n. 1
0
    exit;
}
if (isset($_GET["dansguardian-rotate-logs"])) {
    rotate_logs();
    exit;
}
if (isset($_GET["squid-restart-js"])) {
    squid_restart_js();
    exit;
}
if (isset($_GET["squid-restart-perform"])) {
    squid_restart_perform();
    exit;
}
if (isset($_GET["rule_main"])) {
    main_rules_switch();
    exit;
}
function squid_restart_js()
{
    $page = CurrentPageName();
    $html = "\n\tvar x_squid_restart_start= function (obj) {\n\t\tvar res=obj.responseText;\n\t\tif (res.length>0){alert(res);}\n\t}\t\n\t\n\tfunction squid_restart_start(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('squid-restart-perform','yes');\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_squid_restart_start); \n\t}\n\t\n\nsquid_restart_start()";
    echo $html;
}
function squid_restart_perform()
{
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?squid-reconfigure=yes");
    $tpl = new templates();
    echo $tpl->javascript_parse_text("{service_squid_restart_explain}");
}
Esempio n. 2
0
	if(isset($_GET["ip-group_list-rule"])){ip_group_list($_GET["ip-group_list-rule"]);exit;}
	if(isset($_GET["AddComputerToDansGuardian"])){ip_group_list_add_computer();exit;}
	
	if(isset($_GET["template"])){popup_template();exit;}
	
	
	if(isset($_POST["popup_template"])){popup_template_save();exit;}
	if(isset($_GET["template-options"])){template_options_js();exit;}
	if(isset($_GET["template-options-page"])){template_options_page();exit;}
	if(isset($_GET["DansGuardianEnableUserArticaIP"])){template_options_save();exit;}
	if(isset($_GET["dansguardian-rotate-logs"])){rotate_logs();exit;}
	if(isset($_GET["squid-restart-js"])){squid_restart_js();exit;}
	if(isset($_GET["squid-restart-perform"])){squid_restart_perform();exit;}
	
	
	if(isset($_GET["rule_main"])){main_rules_switch();exit;}
	
	
	
function squid_restart_js(){
$page=CurrentPageName();

$html="
	var x_squid_restart_start= function (obj) {
		var res=obj.responseText;
		if (res.length>0){alert(res);}
	}	
	
	function squid_restart_start(){
			var XHR = new XHRConnection();
			XHR.appendData('squid-restart-perform','yes');