include_once('ressources/class.mysql.inc'); include_once('ressources/class.groups.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.ActiveDirectory.inc'); include_once('ressources/class.external.ldap.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["enable-js"])){enable_js();exit;} if(isset($_GET["enable-popup"])){enable_popup();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["UtDNSEnable"])){UtDNSEnable();exit;} if(isset($_GET["30-days"])){trial_js();exit;} if(isset($_POST["30-days"])){trial_exec();exit;} tabs(); function enable_js(){ $page=CurrentPageName(); header("content-type: application/x-javascript"); $tpl=new templates(); $title=$tpl->javascript_parse_text("{enable_disable_cloud_protection}"); echo "YahooWin2(650,'$page?enable-popup=yes','$title')"; }
include_once 'ressources/class.squid.inc'; include_once 'ressources/class.ActiveDirectory.inc'; include_once 'ressources/class.external.ldap.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["enable-js"])) { enable_js(); exit; } if (isset($_GET["enable-popup"])) { enable_popup(); exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_POST["UtDNSEnable"])) { UtDNSEnable(); exit; } if (isset($_GET["30-days"])) { trial_js(); exit; } if (isset($_POST["30-days"])) {