include_once 'ressources/class.ini.inc'; include_once 'ressources/class.cyrus.inc'; include_once 'ressources/class.cron.inc'; $users = new usersMenus(); if (!$users->AsMailBoxAdministrator) { $tpl = new templates(); $error = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('{$error}')"; die; } if (isset($_GET["update"])) { update(); exit; } if (isset($_POST["ZarafaApacheEnable"])) { zarafa_settings_webmail_save(); exit; } if (isset($_POST["apacheMasterconfig"])) { zarafa_settings_performances_save(); exit; } if (isset($_GET["status"])) { status(); exit; } if (isset($_POST["restore-logs"])) { restorelogs(); exit; } if (isset($_GET["ShowProgress-js"])) {
include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.system.network.inc'); $user=new usersMenus(); if($user->AsMailBoxAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["ZarafaApacheEnable"])){zarafa_settings_webmail_save();exit;} if(isset($_POST["ZarafaEnableServer"])){zarafa_settings_server_save();exit;} if(isset($_POST["ZarafaIMAPsEnable"])){zarafa_settings_imap_save();exit;} if(isset($_GET["ZarafaApachePort"])){SAVE();exit;} if(isset($_GET["DbAttachConverter-popup"])){DbAttachConverter_popup();exit;} if(isset($_GET["DbAttachConverterPerform"])){DbAttachConverter_Perform();exit;} if(isset($_GET["popup-server"])){zarafa_settings_server();exit;} if(isset($_GET["popup-imap"])){zarafa_settings_imap();exit;} js(); function js(){