exit;
}
if (isset($_GET["items-rules"])) {
    items();
    exit;
}
if (isset($_GET["diclaimers-rule"])) {
    disclaimer_rule();
    exit;
}
if (isset($_GET["zoom-js"])) {
    zoom_js();
    exit;
}
if (isset($_GET["zoom-popup"])) {
    zoom_popup();
    exit;
}
if (isset($_POST["mailfrom"])) {
    rule_add();
    exit;
}
if (isset($_POST["del-zmd5"])) {
    autocompress_rule_delete();
    exit;
}
popup();
function delete_message_js()
{
    header("content-type: application/x-javascript");
    $tpl = new templates();
include_once('ressources/class.artica.inc');
include_once('ressources/class.ini.inc');
include_once('ressources/class.squid.inc');
include_once('ressources/class.system.network.inc');
$GLOBALS["LOGFILE"]="/usr/share/artica-postfix/ressources/logs/web/exec.virtuals-ip.php.html";

$user=new usersMenus();
if($user->AsSquidAdministrator==false){
	$tpl=new templates();
	echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
	die();exit();
}

if(isset($_GET["logs"])){logs();exit;}
if(isset($_GET["zoom-js"])){zoom_js();exit;}
if(isset($_GET["zoom-popup"])){zoom_popup();exit;}
table_main();

function zoom_js(){
	$page=CurrentPageName();
	$tpl=new templates();
	header("content-type: application/x-javascript");
	$uri=urlencode($_GET["zoom-js"]);
	$MAIN=unserialize(base64_decode($_GET["zoom-js"]));
	$title="Zoom";
	if(is_numeric($MAIN["ID"])){
		$q=new mysql();
		$ligne=mysql_fetch_array($q->QUERY_SQL("SELECT eth,rulename FROM iptables_main WHERE ID='{$MAIN["ID"]}'","artica_backup"));
		$title="{$ligne["eth"]}::".$tpl->javascript_parse_text($ligne["rulename"]);
	}