include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.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["popup"])) { popup(); exit; } if (isset($_GET["zarafaEnabled"])) { zarafaEnabled(); exit; } js(); function js() { $page = CurrentPageName(); $users = new usersMenus(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body('{APP_ZARAFA}'); $ou_decrypted = base64_decode($_GET["ou"]); $html = "\n\nfunction ZARAFA_OU_LOAD(){\n\tYahooWin3('730','{$page}?popup=yes&ou={$ou_decrypted}','{$title}');\n\t\n\t}\n\t\nvar X_ENABLE_ZARAFA_COMPANY= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>0){alert(results);}\n\tZARAFA_OU_LOAD();\n\t}\t\n\t\nfunction ENABLE_ZARAFA_COMPANY(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('zarafaEnabled',document.getElementById('zarafaEnabled').value);\n\tXHR.appendData('ou','{$ou_decrypted}');\n\tdocument.getElementById('img_zarafaEnabled').src='img/wait_verybig.gif';\n\tXHR.sendAndLoad('{$page}', 'GET',X_ENABLE_ZARAFA_COMPANY);\t\n}\n\t\nZARAFA_OU_LOAD();\n"; echo $html; } function popup() {
<?php include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.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["popup"])){popup();exit;} if(isset($_GET["zarafaEnabled"])){zarafaEnabled();exit;} js(); function js(){ $page=CurrentPageName(); $users=new usersMenus(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body('{APP_ZARAFA}'); $ou_decrypted=base64_decode($_GET["ou"]); $html=" function ZARAFA_OU_LOAD(){ YahooWin3('530','$page?popup=yes&ou=$ou_decrypted','$title');