include_once('ressources/class.mail.inc'); $page=CurrentPageName(); $tpl=new templates(); $users=new usersMenus(); if(!$users->AsPostfixAdministrator){ $error=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}"); echo "alert('$error')"; die(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["ev"])){updev();exit;} if(isset($_POST["RunSaUpd"])){RunSaUpd();exit;} js(); function js(){ $tpl=new templates(); $page=CurrentPageName(); $title=$tpl->_ENGINE_parse_body('{UPDATE_SA_UPDATE}'); $rcpt=$_GET["rcpt"]; $html=" function saupdatestart(){ RTMMail(850,'$page?popup=yes','$title'); }
include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.mail.inc'; $page = CurrentPageName(); $tpl = new templates(); $users = new usersMenus(); if (!$users->AsPostfixAdministrator) { $error = $tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}"); echo "alert('{$error}')"; die; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["ev"])) { updev(); exit; } if (isset($_POST["RunSaUpd"])) { RunSaUpd(); exit; } js(); function js() { $tpl = new templates(); $page = CurrentPageName(); $title = $tpl->_ENGINE_parse_body('{UPDATE_SA_UPDATE}'); $rcpt = $_GET["rcpt"]; $html = "\n\tfunction saupdatestart(){\n\t\t\tRTMMail(850,'{$page}?popup=yes','{$title}');\n\t\t}\n\t\t\n\t\tvar x_RunSaUpd= function (obj) {\n\t\t\tvar tempvalue=obj.responseText;\n\t\t\tRefreshSaupdEv();\n\t\t}\t\t\n\t\t\n\t\t\n\tfunction RunSaUpd(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('RunSaUpd','yes');\n\t\tAnimateDiv('saupddiv');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_RunSaUpd);\n\t}\n\n\t\n\tsaupdatestart()"; echo $html;