$usersmenus = new usersMenus(); if (!$usersmenus->AsPostfixAdministrator) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["add"])) { popup_add(); exit; } if (isset($_GET["servername"])) { popup_save(); exit; } if (isset($_GET["sync-table"])) { echo popup_table(); exit; } if (isset($_GET["delete"])) { popup_delete(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates();
<?php 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);} include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.system.network.inc'); if(isset($_GET["items"])){items();exit;} if(isset($_GET["popup-ad-js"])){js_popup_ad();exit;} if(isset($_GET["popup-ad-tab"])){tab_ad();exit;} if(isset($_GET["popup-ad-popup"])){popup_ad();exit;} if(isset($_POST["hostname"])){popup_save();exit;} if(isset($_GET["popup-ad-groups"])){popup_groups();exit;} if(isset($_POST["groups"])){popup_groups_save();exit;} table(); function js_popup_ad(){ $tpl=new templates(); $page=CurrentPageName(); header("content-type: application/x-javascript"); $md5=$_GET["md5"]; $title=$tpl->javascript_parse_text("{new_connection}"); if($_GET["md5"]<>null){ $q=new mysql_squid_builder(); $ligne=mysql_fetch_array($q->QUERY_SQL("SELECT hostname FROM hotspot_activedirectory WHERE zmd5='$md5'")); $title=$ligne["hostname"]; }
<?php include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); $user=new usersMenus(); if($user->AsSystemAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["add-form"])){popup_add();exit;} if(isset($_GET["ip_addr"])){popup_save();exit;} if(isset($_GET["refresh"])){echo getlist();exit;} if(isset($_GET["del"])){popup_delete();exit;} if(isset($_GET["add-etc-hosts-p"])){Paragraphe_add();exit;} if(isset($_GET["DisableEtcHosts"])){DisableEtcHosts_save();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{etc_hosts}"); $title2=$tpl->_ENGINE_parse_body("{add_new_entry}"); $html=" function etc_host_show(){ YahooWin3(740,'$page?popup=yes','$title');
if(isset($_GET["dnsrbl_subindex"])){echo SaveDnsrbl();exit;} if(isset($_GET["DeleteDnsbl"])){echo DeleteDnsbl();exit;} if(isset($_GET["BackToDNSBLDefault"])){BackToDNSBLDefault();exit;} if(isset($_GET["ChangeFormType"])){GetNewForm();exit;} if(isset($_GET["status"])){echo main_status();exit;} if(isset($_GET["js"])){js();exit;} if(isset($_GET["dumpfile-js"])){dumpfile_js();exit;} if(isset($_GET["dumpfile-popup"])){dumpfile_popup();exit;} if(isset($_GET["popup-page"])){main_tabs();exit;} if(isset($_GET["popup-settings"])){popup_settings();exit;} if(isset($_GET["popup-acl"])){popup_acl();exit;} if(isset($_GET["popup-save"])){popup_save();exit;} if(isset($_GET["popup-logs"])){popup_logs();exit;} function js(){ $content=file_get_contents("js/sqlgrey.js"); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body('{APP_MILTERGREYLIST}'); $main_settings=$tpl->_ENGINE_parse_body('{main_settings}'); $acl=$tpl->_ENGINE_parse_body('{acl}'); $page=CurrentPageName(); $start="StartMilterGreylistPage();"; if(isset($_GET["in-front-ajax"])){$start="StartMilterGreyListInFront();";} $html=" $content