if (!$users->AsPostfixAdministrator) { $tpl = new templates(); $error = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('{$error}')"; die; } if (isset($_GET["js"])) { js(); exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_POST["ZarafaSoftDelete"])) { ZarafaSoftDeleteSave(); exit; } if (isset($_POST["ZarafaSoftPerformNow"])) { ZarafaSoftPerformNow(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates(); $title = $tpl->javascript_parse_text("{softdelete_option}"); $html = "YahooWin5('650','{$page}?popup=yes','{$title}');"; echo $html; }
include_once('ressources/class.mysql.inc'); include_once('ressources/class.ini.inc'); include_once('ressources/class.user.inc'); include_once('ressources/class.cron.inc'); $users=new usersMenus(); if(!$users->AsPostfixAdministrator){ $tpl=new templates(); $error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}"); echo "alert('$error')"; die(); } if(isset($_GET["js"])){js();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["ZarafaSoftDelete"])){ZarafaSoftDeleteSave();exit;} if(isset($_POST["ZarafaSoftPerformNow"])){ZarafaSoftPerformNow();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->javascript_parse_text("{softdelete_option}"); $html="YahooWin5('650','$page?popup=yes','$title');"; echo $html; }