if (isset($_GET["verbose"])) { $GLOBALS["VERBOSE"] = true; ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); ini_set('error_prepend_string', null); ini_set('error_append_string', null); } include_once 'ressources/class.templates.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.squid.inc'; $users = new usersMenus(); if (!$users->AsWebStatisticsAdministrator) { die; } if (isset($_GET["search"])) { tableau(); exit; } if (isset($_GET["member-list"])) { liste(); exit; } if (isset($_GET["graph"])) { graph(); exit; } js(); function js() { header("content-type: application/x-javascript"); $page = CurrentPageName();
$tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["log-js"])){storage_view_js();exit;} if(isset($_GET["storage-view-search"])){storage_view_search();exit;} if(isset($_GET["storage-popup"])){storage_view_popup();exit;} if(isset($_POST["extract-file"])){storage_view_extract();exit;} if(isset($_POST["storage-delete"])){storage_delete();exit;} if(isset($_POST["delete-extracted"])){storage_view_delete();exit;} if(isset($_GET["status"])){status();exit;} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["popup"])){tableau();exit;} if(isset($_GET["search-store"])){search_store();exit;} if(isset($_GET["nas-settings-js"])){nas_settings_js();exit;} if(isset($_GET["nas-settings"])){nas_settings();exit;} if(isset($_POST["BackupSquidLogsUseNas"])){nas_settings_save();exit;} js(); function storage_view_js(){ header("content-type: application/x-javascript"); $tpl=new templates(); $page=CurrentPageName(); $filename=$_GET["filename"];