$user = new usersMenus(); if (!$user->AsSquidAdministrator) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . ");"; exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["DBH"])) { save(); exit; } if (isset($_GET["RunDBM"])) { RunDBM(); exit; } js(); function js() { $tpl = new templates(); $title = $tpl->_ENGINE_parse_body("{databases_maintenance}"); $page = CurrentPageName(); $html = "YahooWin2('600','{$page}?popup=yes','{$title}')"; echo $html; } function popup() { $page = CurrentPageName(); $sock = new sockets();
header("Pragma: no-cache"); header("Expires: 0"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); $user=new usersMenus(); if(!$user->AsSquidAdministrator){ $tpl=new templates(); echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}").");"; exit; } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["DBH"])){save();exit;} if(isset($_GET["RunDBM"])){RunDBM();exit;} js(); function js(){ $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{databases_maintenance}"); $page=CurrentPageName(); $html="YahooWin2('600','$page?popup=yes','$title')"; echo $html; } function popup(){ $page=CurrentPageName(); $sock=new sockets();