Project

General

Profile

Download (1.81 KB) Statistics
| Branch: | Tag: | Revision:
1 01da41cf Bill Marquette
<?php
2
/*
3 45b4ffc6 Phil Davis
	getstats.php
4
	Copyright (C) 2009 Bill Marquette
5
	Copyright (C) 2013-2015 Electric Sheep Fencing, LP
6
	All rights reserved.
7
8
	Redistribution and use in source and binary forms, with or without
9
	modification, are permitted provided that the following conditions are met:
10
11
	1. Redistributions of source code must retain the above copyright notice,
12
	   this list of conditions and the following disclaimer.
13
14
	2. Redistributions in binary form must reproduce the above copyright
15
	   notice, this list of conditions and the following disclaimer in the
16
	   documentation and/or other materials provided with the distribution.
17
18
	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
19
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
20
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
21
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
22
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
	POSSIBILITY OF SUCH DAMAGE.
28 01da41cf Bill Marquette
*/
29 7ac5a4cb Scott Ullrich
/*
30
	pfSense_MODULE:	ajax
31
*/
32 01da41cf Bill Marquette
33
##|+PRIV
34 55c63539 Bill Marquette
##|*IDENT=page-getstats
35
##|*NAME=AJAX: Get Stats
36
##|*DESCR=Allow access to the 'AJAX: Get Stats' page.
37
##|*MATCH=getstats.php*
38 01da41cf Bill Marquette
##|-PRIV
39
40 108c6dbc Scott Ullrich
header("Last-Modified: " . gmdate( "D, j M Y H:i:s" ) . " GMT" );
41
header("Expires: " . gmdate( "D, j M Y H:i:s", time() ) . " GMT" );
42 2ebbb0bc Jose Luis Duran
header("Cache-Control: no-cache, no-store, must-revalidate" ); // HTTP/1.1
43 108c6dbc Scott Ullrich
header("Pragma: no-cache"); // HTTP/1.0
44
45 01da41cf Bill Marquette
require_once("guiconfig.inc");
46
include_once("includes/functions.inc.php");
47 7ac5a4cb Scott Ullrich
48 01da41cf Bill Marquette
echo get_stats();
49
50 29aef6c4 Jim Thompson
?>