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() { $page = CurrentPageName(); $users = new usersMenus(); $tpl = new templates(); $start = "APP_ZARAFA_WEB()"; if (isset($_GET["in-line"])) { $start = "APP_ZARAFA_WEB_INLINE()"; } $title = $tpl->_ENGINE_parse_body('{APP_ZARAFA_WEB}'); $html = "\n\nfunction APP_ZARAFA_WEB(){\n\tYahooWin3('550','{$page}?tabs=yes','{$title}');\n\t\n\t}\n\t\nfunction APP_ZARAFA_WEB_INLINE(){\n\t\$('#zarafa-inline-config').load('{$page}?tabs=yes&font-size=16');\n}\n\t\nvar X_APP_ZARAFA_WEB_SAVE= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>0){alert(results);}\n\tdocument.getElementById('zrfa-logo').src='img/zarafa-web-128.png';\n\t}\t\n\t\n\n\t\nfunction APP_ZARAFA_WEB_SAVE(){\n\tvar XHR = new XHRConnection();\n\t\n\t\n\t\n\t\n\tXHR.appendData('ZarafaStoreOutsidePath',document.getElementById('ZarafaStoreOutsidePath').value);\n\tXHR.appendData('ZarafaStoreCompressionLevel',document.getElementById('ZarafaStoreCompressionLevel').value);\n\tXHR.appendData('ZarafaServerSMTPIP',document.getElementById('ZarafaServerSMTPIP').value);\n\tXHR.appendData('ZarafaServerSMTPPORT',document.getElementById('ZarafaServerSMTPPORT').value);\n\t\n\n\tif(document.getElementById('ZarafaAllowToReinstall').checked){XHR.appendData('ZarafaAllowToReinstall',1);}else{XHR.appendData('ZarafaAllowToReinstall',0);}\n\tif(document.getElementById('ZarafaUserSafeMode').checked){XHR.appendData('ZarafaUserSafeMode',1);}else{XHR.appendData('ZarafaUserSafeMode',0);}\t\n\tif(document.getElementById('ZarafaStoreOutside').checked){XHR.appendData('ZarafaStoreOutside',1);}else{XHR.appendData('ZarafaStoreOutside',0);}\n\t\n\t\t\t\n\t\n\t\n\t\n\t\n\n\t\n\t\n\t\n\tXHR.appendData('ou','{$ou_decrypted}');\n\tdocument.getElementById('zrfa-logo').src='img/wait_verybig.gif';\n\tXHR.sendAndLoad('{$page}', 'GET',X_APP_ZARAFA_WEB_SAVE);\t\n}\n\t\n{$start}\nQuickLinkShow('quicklinks-APP_ZARAFA');\n"; echo $html;
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(){ $page=CurrentPageName(); $users=new usersMenus(); $tpl=new templates(); $start="APP_ZARAFA_WEB()"; if(isset($_GET["in-line"])){$start="APP_ZARAFA_WEB_INLINE()";} $title=$tpl->_ENGINE_parse_body('{APP_ZARAFA_WEB}'); $html="