include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.artica.graphs.inc'); if(posix_getuid()==0){die();} $user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if($_GET["tabs"]){tabs();exit;} if(isset($_GET["title-caches-perf"])){title_caches_perf();exit;} if($_GET["period"]=="howto"){howto();exit;} if($_GET["period"]=="today"){today();exit;} if($_GET["period"]=="week"){week();exit;} if($_GET["period"]=="month"){month();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); if(isset($_GET["inline"])){echo "$('#BodyContent').load('$page?tabs=yes');";return;} $title=$tpl->_ENGINE_parse_body("{cache_performance}::{statistics}"); $html="YahooWin4('750','$page?tabs=yes','$title')"; echo $html; }
if (!PostFixMultiVerifyRights()) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["form-database"])) { database_form(); exit; } if (isset($_GET["howto"])) { howto(); exit; } if (isset($_GET["dbindex"])) { database_save(); exit; } if (isset($_GET["dbindexDelete"])) { database_delete(); exit; } if (isset($_GET["postfix-ldap-databases"])) { database_list(); exit; } js();
include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.maincf.multi.inc'); include_once('ressources/class.status.inc'); if(isset($_GET["org"])){$_GET["ou"]=$_GET["org"];} if(!PostFixMultiVerifyRights()){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["form-database"])){database_form();exit;} if(isset($_GET["howto"])){howto();exit;} if(isset($_GET["dbindex"])){database_save();exit;} if(isset($_GET["dbindexDelete"])){database_delete();exit;} if(isset($_GET["postfix-ldap-databases"])){database_list();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{remote_users_databases}"); if(is_base64_encoded($_GET["ou"])){$ou=base64_decode($_GET["ou"]);}else{$ou=$_GET["ou"];} $hostname=$_GET["hostname"]; $add=$tpl->_ENGINE_parse_body("{add}"); $howto=$tpl->_ENGINE_parse_body("{howto}");