include_once('ressources/class.dansguardian.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->AsSquidAdministrator){
		$tpl=new templates();
		echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}").");";
		exit;
		
	}
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_POST["SquidGuardWebAllowUnblockSinglePassContent"])){SaveBlockSettings();exit;}
js();	
	
function js(){
	$tpl=new templates();
	$page=CurrentPageName();
	$title=$tpl->_ENGINE_parse_body("{banned_page_webservice}::{unblock_parameters}");
	
	$html="
		YahooWin6('550','$page?tabs=yes','$title');
	";
	echo $html;
		
		
}
function tabs(){
$user = new usersMenus();
if (!$user->AsSquidAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . ");";
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_POST["SquidGuardWebAllowUnblockSinglePassContent"])) {
    SaveBlockSettings();
    exit;
}
js();
function js()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $title = $tpl->_ENGINE_parse_body("{banned_page_webservice}::{unblock_parameters}");
    $html = "\n\t\tYahooWin6('550','{$page}?tabs=yes','{$title}');\n\t";
    echo $html;
}
function tabs()
{
    $tpl = new templates();
    $array["popup"] = '{unblock_parameters}';