<?php include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.user.inc'); include_once('ressources/class.langages.inc'); include_once('ressources/class.sockets.inc'); include_once('ressources/class.mysql.inc'); include_once('ressources/class.privileges.inc'); include_once('ressources/class.ChecksPassword.inc'); include_once(dirname(__FILE__)."/ressources/class.logfile_daemon.inc"); session_start(); if($_SESSION["uid"]==null){ AskPasswordAuth("{realtime_requests}"); } $users=new usersMenus(); if(!$users->AsDansGuardianAdministrator){ $tpl=new templates(); echo "<script> alert('". $tpl->javascript_parse_text("`{$_SERVER['PHP_AUTH_USER']}/{$_SERVER['PHP_AUTH_PW']}` {ERROR_NO_PRIVS}")."'); </script>"; die(); } //ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null); if(isset($_GET["js"])){js();exit;} if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["events-list"])){events_list();exit;} page(); function js(){
<?php include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.user.inc'; include_once 'ressources/class.langages.inc'; include_once 'ressources/class.sockets.inc'; include_once 'ressources/class.mysql.inc'; include_once 'ressources/class.privileges.inc'; include_once 'ressources/class.ChecksPassword.inc'; include_once dirname(__FILE__) . "/ressources/class.logfile_daemon.inc"; session_start(); if ($_SESSION["uid"] == null) { AskPasswordAuth("{realtime_requests}"); } $users = new usersMenus(); if (!$users->AsDansGuardianAdministrator) { $tpl = new templates(); echo "<script> alert('" . $tpl->javascript_parse_text("`{$_SERVER['PHP_AUTH_USER']}/{$_SERVER['PHP_AUTH_PW']}` {ERROR_NO_PRIVS}") . "'); </script>"; die; } //ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null); if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["events-list"])) { events_list(); exit; } page();