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"])) {
include_once('ressources/class.maincf.multi.inc'); include_once('ressources/class.system.network.inc'); $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);