include_once(dirname(__FILE__)."/ressources/class.templates.inc"); include_once(dirname(__FILE__)."/ressources/class.users.menus.inc"); include_once(dirname(__FILE__)."/ressources/class.mysql.archive.builder.inc"); include_once(dirname(__FILE__)."/ressources/class.user.inc"); include_once(dirname(__FILE__).'/ressources/smtp/smtp.php'); $users=new usersMenus(); if(!$users->AsHotSpotManager){die();} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["smtp-params"])){smtp_notifs();exit;} if(isset($_POST["ENABLED_AUTO_LOGIN"])){Save();exit;} if(isset($_POST["tls_enabled"])){Save();exit;} if(isset($_GET["test-smtp-js"])){tests_smtp();exit;} js(); function tabs(){ $page=CurrentPageName(); $tpl=new templates(); $users=new usersMenus(); if(!$users->WIFIDOG_INSTALLED){ echo FATAL_ERROR_SHOW_128("{ERROR_SERVICE_NOT_INSTALLED} <hr><center>".button("{manual_update}", "Loadjs('update.upload.php')",32)."</center>"); return; } $array["popup"]='{self_register}';
ini_set('error_prepend_string', null); ini_set('error_append_string', null); } include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.wifidog.settings.inc'; include_once 'ressources/class.webauth-msmtp.inc'; include_once dirname(__FILE__) . '/ressources/smtp/smtp.php'; $usersmenus = new usersMenus(); if (!$usersmenus->AsSquidAdministrator) { echo FATAL_ERROR_SHOW_128("{ERROR_NO_PRIVS}"); die; } if (isset($_POST["mobile"])) { tests_smtp(); exit; } if (isset($_POST["ruleid"])) { Save(); exit; } if (isset($_GET["test-smtp-js"])) { tests_ask_smtp(); exit; } Page(); function tests_ask_smtp() { header("content-type: application/x-javascript"); $tpl = new templates();
header("Expires: 0"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); $user=new usersMenus(); if(!$user->AsDansGuardianAdministrator){ $tpl=new templates(); echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}").");"; exit; } if(isset($_GET["smtp-parameters-js"])){SMTP_PARAMETERS_JS();exit;} if(isset($_GET["smtp-parameters-popup"])){SMTP_PARAMETERS_POPUP();exit;} if(isset($_POST["smtp_notifications"])){SMTP_PARAMETERS_SAVE();exit;} if(isset($_GET["test-smtp-js"])){tests_smtp_js();exit;} if(isset($_GET["smtp_sendto"])){tests_smtp();exit;} if(isset($_POST["UfdbGuardHTTPAllowUnblock"])){UNLOCK_SAVE();exit;} if(isset($_GET["EnableSquidGuardHTTPService"])){save();exit;} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["per-categories"])){per_category_main();exit;} if(isset($_GET["per-categories-settings"])){per_category_settings();exit;} if(isset($_POST["external_uri"])){per_category_settings_save();exit;} if(isset($_GET["skin"])){skin();exit;} if(isset($_POST["CATEGORY"])){SAVE_SKIN();exit;} if(isset($_GET["unlock"])){UNLOCK_SECTION();exit;} if(isset($_GET["skin-tabs"])){skin_tabs();exit;} if(isset($_GET["skin-logo"])){skin_logo();exit;} js();