Project

General

Profile

Download (1.22 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/*
3
 * getstats.php
4
 *
5
 * part of pfSense (https://www.pfsense.org)
6
 * Copyright (c) 2004-2016 Rubicon Communications, LLC (Netgate)
7
 * Copyright (c) 2009 Bill Marquette
8
 * All rights reserved.
9
 *
10
 * 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
 *
14
 * http://www.apache.org/licenses/LICENSE-2.0
15
 *
16
 * 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
 */
22

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

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

    
35
require_once("guiconfig.inc");
36
include_once("includes/functions.inc.php");
37

    
38
echo get_stats();
39

    
40
?>
(59-59/225)