Project

General

Profile

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