die;
}
if (isset($_GET["table"])) {
    table();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["rules-table-list"])) {
    table_list();
    exit;
}
if (isset($_POST["DeleteWhiteListed"])) {
    DeleteWhiteListed();
    exit;
}
js();
function js()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $title = $tpl->_ENGINE_parse_body("{unblocks}");
    echo "YahooWin2('750','{$page}?popup=yes','{$title}');";
}
function popup()
{
    $fontsize = 18;
    $tpl = new templates();
    $page = CurrentPageName();
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.squid.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["table"])){table();exit;}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["rules-table-list"])){table_list();exit;}
if(isset($_POST["DeleteWhiteListed"])){DeleteWhiteListed();exit;}

table();

function table(){
	$q=new mysql_squid_builder();
	$tpl=new templates();
	$page=CurrentPageName();
	$page=CurrentPageName();
	$sock=new sockets();
	$t=time();	
	
	
	//	

	$ipaddr=$tpl->_ENGINE_parse_body("{ipaddr}");