include_once('ressources/class.mysql.dump.inc'); include_once('ressources/class.squid.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsDansGuardianAdministrator){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert')"; die(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["importYES"])){importYES();exit;} if(isset($_POST["importSquidYES"])){importSquidYES();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); header("content-type: application/javascript"); $title=$tpl->javascript_parse_text("{import_rules}"); $t=time(); $html="YahooWin3('750','$page?popup=yes&t={$_GET["t"]}','$title');"; echo $html; } function popup(){ $page=CurrentPageName();
if (!$usersmenus->AsDansGuardianAdministrator) { $tpl = new templates(); $alert = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('{$alert}')"; die; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_POST["importYES"])) { importYES(); exit; } if (isset($_POST["importSquidYES"])) { importSquidYES(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates(); header("content-type: application/javascript"); $title = $tpl->javascript_parse_text("{import_rules}"); $t = time(); $html = "YahooWin3('750','{$page}?popup=yes&t={$_GET["t"]}','{$title}');"; echo $html; } function popup() {