function js() { if (GET_CACHED(__FILE__, __FUNCTION__)) { return false; } $prefix = "postfix_index_page_php_"; $page = CurrentPageName(); $users = new usersMenus(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body('{postfix_messaging}'); if ($users->KASPERSKY_SMTP_APPLIANCE) { $title = $tpl->_ENGINE_parse_body('Artica For Kaspersky Appliance'); } $addons = js_addons(); if (isset($_GET["font-size"])) { $fontsize = "&font-size={$_GET["font-size"]}"; } $html = "\n\nfunction PostfixIndexLoadpage(){\n\t\tAnimateDiv('BodyContent');\n\t\t\$('#BodyContent').load('{$page}?popup-index=yes{$fontsize}');\n\t}\n\t\n function RefreshIndexPostfixAjax(){\n\t\tPostfixStatusBar();\n\t\tsetTimeout('RefreshPostfixGlobalStatus()',1000);\n\t\t\n\t}\n\t\n\t\nfunction RefreshPostfixGlobalStatus(){\n\tLoadAjax('Postfixservinfos','{$page}?postfix-status=yes');\n}\n\n\nvar X_PostfixDeleteCache= function (obj) {\n\tvar results=trim(obj.responseText);\n\tif(results.length>0){alert(results);}\n\tYahooWin2(750,'{$page}?popup-antispam=yes','Anti-spam',''); \n\t}\n\t\t\n\n\nfunction PostfixDeleteCache(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('DeleteCache','DeleteCache');\n\t\tdocument.getElementById('dialog2').innerHTML='<center><img src=img/wait_verybig.gif></center>';\n\t\tXHR.sendAndLoad('{$page}', 'GET',X_PostfixDeleteCache);\t\t\n\t\n}\n{$addons}\n\t\nPostfixIndexLoadpage();\n"; SET_CACHED(__FILE__, __FUNCTION__, null, $html); echo $html; }
function js() { if (GET_CACHED(__FILE__, __FUNCTION__)) { return false; } $prefix = "postfix_index_page_php_"; $page = CurrentPageName(); $users = new usersMenus(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body('{postfix_messaging}'); if ($users->KASPERSKY_SMTP_APPLIANCE) { $title = $tpl->_ENGINE_parse_body('Artica For Kaspersky Appliance'); } $addons = js_addons(); $html = "{$addons}\n\nfunction {$prefix}Loadpage(){\n\t\$('#BodyContent').load('{$page}?popup-index=yes');\n\t}\n\t\n\n\t\nfunction {$prefix}DisplayDivs(){\n\t\ttimeout=timeout+1;\n\t\tif(timeout>10){return;}\n\t\tif(!document.getElementById('main_config_postfix')){\n\t\t\tsetTimeout('{$prefix}DisplayDivs()',900);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t{$prefix}demarre();\n\t\tsetTimeout('{$prefix}ChargeLogs()',1000);\n\t\tsetTimeout('{$prefix}StatusBar()',1500);\n\t}\n\n\t\n\t\n\t\n\t\n\tfunction RefreshIndexPostfixAjax(){\n\t\t{$prefix}StatusBar();\n\t}\n\n\nvar X_PostfixDeleteCache= function (obj) {\n\tvar results=obj.responseText;\n\talert(results);\n\tYahooWin2(750,'{$page}?popup-antispam=yes','Anti-spam',''); \n\t}\n\t\t\n\n\nfunction PostfixDeleteCache(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('DeleteCache','DeleteCache');\n\t\tdocument.getElementById('dialog2').innerHTML='<center><img src=img/wait_verybig.gif></center>';\n\t\tXHR.sendAndLoad('{$page}', 'GET',X_PostfixDeleteCache);\t\t\n\t\n}\n\t\n {$prefix}Loadpage();\n"; SET_CACHED(__FILE__, __FUNCTION__, null, $html); echo $html; }