include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); if(posix_getuid()==0){die();} $user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["DisableGoogleSSL"])){Save();exit;} if(isset($_GET["google-dns"])){google_dns();exit;} js(); function js() { $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("{disable_google_ssl}"); $page=CurrentPageName(); $html="YahooWin3('850','$page?popup=yes','$title')"; echo $html; } function popup(){ $tpl=new templates();
if ($user->AsSquidAdministrator == false) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_POST["DisableGoogleSSL"])) { Save(); exit; } if (isset($_GET["google-dns"])) { google_dns(); exit; } js(); function js() { $tpl = new templates(); $title = $tpl->_ENGINE_parse_body("{disable_google_ssl}"); $page = CurrentPageName(); $html = "YahooWin3('850','{$page}?popup=yes','{$title}')"; echo $html; } function popup() { $tpl = new templates(); $page = CurrentPageName();