register_save(); exit; } if (isset($_GET["verbose"])) { $GLOBALS["VERBOSE"] = true; ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); ini_set('error_prepend_string', null); ini_set('error_append_string', null); } if (isset($_GET["js"])) { js(); exit; } if (isset($_GET["tweaks"])) { tweaks(); exit; } if (isset($_GET["register-js"])) { register_js(); exit; } if (isset($_GET["popup"])) { popup(); exit; } none_page(); function wifidog_pong() { $q = new mysql_squid_builder(); $MAIN = unserialize(@file_get_contents("/usr/share/artica/postfix/ressources/logs/web/wifidog.status"));
function main_switch() { cookies_main(); //if(GET_CACHED(__FILE__,__FUNCTION__,$_GET["main"])){return;} $array["transport_settings"] = '{transport_settings}'; $array["security_settings"] = '{security_settings}'; $array["tweaks"] = '{tweaks}'; if (isset($_GET["ajaxmenu"])) { echo "<div id='main_config_postfix'>"; } switch ($_GET["main"]) { case "transport_settings": $html = Transport_rules_redirect(); //SET_CACHED(__FILE__,__FUNCTION__,$_GET["main"],$html); echo $html; break; case "transport_settings_rules": $html = Transport_rules(); //SET_CACHED(__FILE__,__FUNCTION__,$_GET["main"],$html); echo $html; break; case "security_settings": $html = security(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; case "security2": $html = security2(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; case "tweaks": $html = tweaks(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; case "filters": $html = filters_section(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; case "mailbox": $html = mailbox_section(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; case "status": $html = status_section(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; case "filters-connect": $html = filters_connect_section(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; default: $html = Transport_rules(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; } if (isset($_GET["ajaxmenu"])) { echo "</div>"; } }