forked from enwikipedia-acc/waca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatistics.php
40 lines (33 loc) · 1.52 KB
/
statistics.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**************************************************************************
********** English Wikipedia Account Request Interface **********
***************************************************************************
** Wikipedia Account Request Graphic Design by Charles Melbye, **
** which is licensed under a Creative Commons **
** Attribution-Noncommercial-Share Alike 3.0 United States License. **
** **
** All other code are released under the Public Domain **
** by the ACC Development Team. **
** **
** See CREDITS for the list of developers. **
***************************************************************************/
// load the configuration
require_once 'config.inc.php';
// Get all the classes.
require_once 'functions.php';
initialiseSession();
require_once 'includes/PdoDatabase.php';
require_once 'includes/SmartyInit.php';
require_once 'includes/StatisticsPage.php';
// Check to see if the database is unavailable.
// Uses the false variable as its the internal interface.
if (Offline::isOffline()) {
echo Offline::getOfflineMessage(false);
die();
}
$page = isset($_GET['page']) ? $_GET['page'] : 'Main';
if (isset($_SERVER['PATH_INFO'])) {
$page = substr($_SERVER['PATH_INFO'], 1);
}
$sp = StatisticsPage::Create($page);
$sp->Show();