function popup(){
	$tpl=new templates();
	$page=CurrentPageName();
	Launch();
	
	
	

	$t=$_GET["t"];
	if(!is_numeric($t)){$t=time();}
	
	$title="{PLEASE_WAIT_COMPILING_WEBFILTERING_SETTINGS}";
	$text=$tpl->_ENGINE_parse_body($title);
	
	
	
$html="
<center id='title-$t' style='font-size:18px;margin-bottom:20px'>$text</center>
<div id='progress-$t' style='height:50px'></div>
<p>&nbsp;</p>
<textarea style='margin-top:5px;font-family:Courier New;
font-weight:bold;width:99%;height:446px;border:5px solid #8E8E8E;
overflow:auto;font-size:11px' id='text-$t'></textarea>
	
<script>
function Step1$t(){
	$('#progress-$t').progressbar({ value: 1 });
	Loadjs('$page?build-js=yes&t=$t&md5file=0');
}
$('#progress-$t').progressbar({ value: 1 });
setTimeout(\"Step1$t()\",1000);

</script>
";
echo $html;	
}
function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    Launch();
    $t = $_GET["t"];
    if (!is_numeric($t)) {
        $t = time();
    }
    $title = "{GLOBAL_ACCESS_CENTER}";
    $text = $tpl->_ENGINE_parse_body($title);
    $html = "\n<center id='title-{$t}' style='font-size:18px;margin-bottom:20px'>{$text}</center>\n<div id='progress-{$t}' style='height:50px'></div>\n<p>&nbsp;</p>\n<textarea style='margin-top:5px;font-family:Courier New;\nfont-weight:bold;width:98%;height:446px;border:5px solid #8E8E8E;\noverflow:auto;font-size:11px' id='text-{$t}'></textarea>\n\t\n<script>\nfunction Step1{$t}(){\n\t\$('#progress-{$t}').progressbar({ value: 1 });\n\tLoadjs('{$page}?build-js=yes&t={$t}&md5file=0');\n}\n\$('#progress-{$t}').progressbar({ value: 1 });\nsetTimeout(\"Step1{$t}()\",1000);\n\n</script>\n";
    echo $html;
}
function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    Launch();
    $t = $_GET["t"];
    if (!is_numeric($t)) {
        $t = time();
    }
    $title = "{PLEASE_WAIT_RESTARTING_ALL_SERVICES}";
    if (isset($_GET["onlySquid"])) {
        $title = "{please_wait}, {restarting_proxy_service}";
    }
    if (isset($_GET["onlyreload"])) {
        $title = "{please_wait_reloading_service}";
    }
    if (isset($_GET["CheckCaches"])) {
        $onlySquid = "&CheckCaches=yes";
        $title = "{please_wait_check_caches}";
    }
    if (isset($_GET["firewall"])) {
        $title = "{please_wait}, {reconfigure_transparent_rules}";
    }
    $text = $tpl->_ENGINE_parse_body($title);
    $html = "\n<center id='title-{$t}' style='font-size:18px;margin-bottom:20px'>{$text}</center>\n<div id='progress-{$t}' style='height:50px'></div>\n<p>&nbsp;</p>\n<textarea style='margin-top:5px;font-family:Courier New;\nfont-weight:bold;width:98%;height:446px;border:5px solid #8E8E8E;\noverflow:auto;font-size:11px' id='text-{$t}'></textarea>\n\t\n<script>\nfunction Step1{$t}(){\n\t\$('#progress-{$t}').progressbar({ value: 1 });\n\tLoadjs('{$page}?build-js=yes&t={$t}&md5file=0');\n}\n\$('#progress-{$t}').progressbar({ value: 1 });\nsetTimeout(\"Step1{$t}()\",1000);\n\n</script>\n";
    echo $html;
}