include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; $user = new usersMenus(); if ($user->AllowViewStatistics == false) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["main"])) { popup_switch(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body("{statistics}"); $html = "\n\tfunction main_statistics_start(){\n\t\t\t\$('#BodyContent').load('{$page}?popup=yes');\n\t\t\t//YahooWin(750,'{$page}?popup=yes','{$title}');\n\t\t}\n\t\n\tmain_statistics_start();"; echo $html; } function popup_switch() { switch ($_GET["main"]) { case "index":
session_start(); $ldap=new clladp(); if(isset($_GET["loadhelp"])){loadhelp();exit;} $user=new usersMenus(); if($user->AsPostfixAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["whitelist"])){SaveWhiteList();exit;} if(isset($_GET["del_whitelist"])){del_whitelist();exit;} if(isset($_GET["js"])){js_popup();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["SelectedDomain"])){popup_switch();exit;} if(isset($_GET["wblopt"])){wblopt_js();exit;} if(isset($_GET["wblopt-popup"])){wblopt_popup();exit;} if(isset($_GET["WBLReplicEnable"])){wblopt_save();exit;} if(isset($_GET["WBLReplicNow"])){wblopt_replic();exit;} if(isset($_GET["EnableWhiteListAndBlackListPostfix"])){ArticaRobotsSave();exit;} if(isset($_GET["popup-domain-white"])){popup_domains();exit;} if(isset($_GET["popup-domain-black"])){popup_domains();exit;} if(isset($_GET["popup-hosts"])){popup_hosts();exit;} if(isset($_GET["white-hosts"])){hosts_WhiteList();exit;} if(isset($_GET["white-hosts-find"])){hosts_WhiteList_list();exit;} if(isset($_GET["white-list-host"])){hosts_WhiteList_add();exit;} if(isset($_GET["white-list-host-del"])){hosts_WhiteList_del();exit;} if(isset($_GET["popup-global-black"])){blacklist_global_popup();exit;} if(isset($_GET["popup-global-black-add"])){blacklist_global_add();exit;}