Project

General

Profile

Download (1.22 KB) Statistics
| Branch: | Tag: | Revision:
1 01da41cf Bill Marquette
<?php
2
/*
3 c5d81585 Renato Botelho
 * getstats.php
4 fd9ebcd5 Stephen Beaver
 *
5 c5d81585 Renato Botelho
 * part of pfSense (https://www.pfsense.org)
6 81299b5c Renato Botelho
 * Copyright (c) 2004-2016 Rubicon Communications, LLC (Netgate)
7 c5d81585 Renato Botelho
 * Copyright (c) 2009 Bill Marquette
8
 * All rights reserved.
9 fd9ebcd5 Stephen Beaver
 *
10 b12ea3fb Renato Botelho
 * Licensed under the Apache License, Version 2.0 (the "License");
11
 * you may not use this file except in compliance with the License.
12
 * You may obtain a copy of the License at
13 fd9ebcd5 Stephen Beaver
 *
14 b12ea3fb Renato Botelho
 * http://www.apache.org/licenses/LICENSE-2.0
15 fd9ebcd5 Stephen Beaver
 *
16 b12ea3fb Renato Botelho
 * Unless required by applicable law or agreed to in writing, software
17
 * distributed under the License is distributed on an "AS IS" BASIS,
18
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
 * See the License for the specific language governing permissions and
20
 * limitations under the License.
21 fd9ebcd5 Stephen Beaver
 */
22 01da41cf Bill Marquette
23
##|+PRIV
24 55c63539 Bill Marquette
##|*IDENT=page-getstats
25
##|*NAME=AJAX: Get Stats
26
##|*DESCR=Allow access to the 'AJAX: Get Stats' page.
27
##|*MATCH=getstats.php*
28 01da41cf Bill Marquette
##|-PRIV
29
30 6c07db48 Phil Davis
header("Last-Modified: " . gmdate("D, j M Y H:i:s") . " GMT");
31
header("Expires: " . gmdate("D, j M Y H:i:s", time()) . " GMT");
32
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP/1.1
33 108c6dbc Scott Ullrich
header("Pragma: no-cache"); // HTTP/1.0
34
35 c07071cb PiBa-NL
require_once("auth_check.inc");
36 01da41cf Bill Marquette
include_once("includes/functions.inc.php");
37 7ac5a4cb Scott Ullrich
38 01da41cf Bill Marquette
echo get_stats();
39
40 29aef6c4 Jim Thompson
?>