include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.mysql.inc'; include_once 'ressources/class.ini.inc'; include_once 'ressources/class.cron.inc'; include_once 'ressources/class.system.network.inc'; $users = new usersMenus(); if (!$users->AsPostfixAdministrator) { $tpl = new templates(); $error = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('{$error}')"; die; } if (isset($_POST["ZarafaiCalPort"])) { ZarafaiCalPortSave(); exit; } if (isset($_GET["popup"])) { popup(); exit; } js(); function js() { $usersmenus = new usersMenus(); $tpl = new templates(); $page = CurrentPageName(); $title = $tpl->_ENGINE_parse_body("{APP_ZARAFA_ICAL}"); echo "YahooWin3('482','{$page}?popup=yes','{$title}')"; }
include_once('ressources/class.ini.inc'); include_once('ressources/class.cron.inc'); include_once('ressources/class.system.network.inc'); $users=new usersMenus(); if(!$users->AsPostfixAdministrator){ $tpl=new templates(); $error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('$error')"; die(); } if(isset($_POST["ZarafaiCalPort"])){ZarafaiCalPortSave();exit;} if(isset($_GET["popup"])){popup();exit;} js(); function js(){ $usersmenus=new usersMenus(); $tpl=new templates(); $page=CurrentPageName(); $title=$tpl->_ENGINE_parse_body("{APP_ZARAFA_ICAL}"); echo "YahooWin3('482','$page?popup=yes','$title')"; }