Project

General

Profile

Download (1.31 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/*
3
 * getstats.php
4
 *
5
 * part of pfSense (https://www.pfsense.org)
6
 * Copyright (c) 2004-2013 BSD Perimeter
7
 * Copyright (c) 2013-2016 Electric Sheep Fencing
8
 * Copyright (c) 2014-2020 Rubicon Communications, LLC (Netgate)
9
 * Copyright (c) 2009 Bill Marquette
10
 * All rights reserved.
11
 *
12
 * 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
 *
16
 * http://www.apache.org/licenses/LICENSE-2.0
17
 *
18
 * 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
 */
24

    
25
##|+PRIV
26
##|*IDENT=page-getstats
27
##|*NAME=AJAX: Get Stats
28
##|*DESCR=Allow access to the 'AJAX: Get Stats' page.
29
##|*MATCH=getstats.php*
30
##|-PRIV
31

    
32
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
header("Pragma: no-cache"); // HTTP/1.0
36

    
37
require_once("auth_check.inc");
38
include_once("includes/functions.inc.php");
39

    
40
echo get_stats();
41

    
42
?>
(64-64/230)