<?php include_once 'ressources/class.templates.inc'; include_once 'ressources/class.fdm.inc'; if (isset($_GET["fdm_DeleteScript"])) { Delete(); exit; } if (isset($_GET["fdm_rule"])) { SaveRule(); exit; } if (isset($_GET["rulename"])) { ShowRule(); exit; } if (isset($_GET["ScriptRulename"])) { ShowScript(); exit; } if (isset($_GET["events"])) { events(); exit; } ShowRule(); function ShowRule() { $uid = $_GET["uid"]; $rulename = $_GET["rulename"]; if ($rulename == null) { $rulename = "{$uid}_" . date('Ymdhis');
$users=new usersMenus(); if(!PostFixVerifyRights()){ $tpl=new templates(); $ERROR_NO_PRIVS=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('$ERROR_NO_PRIVS');"; die(); } if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["form-rotator-mode"])){form_rotator_mode();exit;} if(isset($_GET["ip-rotator-list"])){rotator_list_rules();exit;} if(isset($_GET["ip-rotator-form"])){popup_form();exit;} if(isset($_GET["SaveRule"])){SaveRule();exit;} if(isset($_GET["DeleteRule"])){DeleteRule();exit;} if(isset($_GET["popup-rules"])){ListRules();exit;} js(); // iptables -t nat -A PREROUTING -p tcp -d 192.168.1.42 --dport 25 -m state --state NEW -m statistic --mode nth --every 2 --packet 0 -j DNAT --to-destination 192.168.1.43:25 function js(){ $page=CurrentPageName(); $tpl=new templates(); if(is_base64_encoded($_GET["ou"])){$_GET["ou"]=base64_decode($_GET["ou"]);} $title="{ip_rotator}::{$_GET["hostname"]}/{$_GET["ou"]}"; $title=$tpl->_ENGINE_parse_body($title); $_GET["ou"]=urlencode($_GET["ou"]); echo "YahooWin3(660,'$page?tabs=yes&hostname={$_GET["hostname"]}&ou={$_GET["ou"]}','$title');"; }