-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats.php
33 lines (27 loc) · 829 Bytes
/
stats.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
<?php
// ------------------
// Stempunk & Fallbacken Account Database
// file: stats.php
// purpose: stats page
// author: j0rpi
// ------------------
include('config.php');
include('classes/Login.php');
if (version_compare(PHP_VERSION, '5.3.7', '<')) {
exit("Sorry, Simple PHP Login does not run on a PHP version smaller than 5.3.7 !");
} else if (version_compare(PHP_VERSION, '5.5.0', '<')) {
// if you are using PHP 5.3 or PHP 5.4 you have to include the password_api_compatibility_library.php
// (this library adds the PHP 5.5 password hashing functions to older versions of PHP)
require_once("platform/classes/password_compatibility_library.php");
}
// Define Classes
$login = new Login();
if ($login->isUserLoggedIn() == true)
{
include("pages/stats.php");
}
else
{
include("pages/login.php");
}
?>