-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
42 lines (36 loc) · 1.45 KB
/
index.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
41
42
<!-- Developed by Sirajuddin Asjad | admin@siratech.no -->
<?php
session_start(); ob_start();
ini_set('display_errors', 1);
error_reporting(E_ALL);
require($_SERVER['DOCUMENT_ROOT'].'/inc/config.php');
require($_SERVER['DOCUMENT_ROOT'].'/inc/db.php');
require($_SERVER['DOCUMENT_ROOT'].'/inc/functions.php');
// Global sessions
if(isset($_SESSION['UID'])) { $UID = $_SESSION['UID']; }
// Global functions
betaAccess();
IssetPage();
CheckIfBanned();
GetTimezone();
// All pages
switch($_GET['page'])
{
case 'ajax': include("assets/ajax/ajax.php"); break;
case 'login': include("pages/login.php"); break;
case 'logout': include("pages/logout.php"); break;
case 'dashboard': include("pages/dashboard.php"); break;
case 'register': include("pages/register.php"); break;
case 'score': include("pages/score.php"); break;
case 'general-management': include("pages/general-management.php"); break;
case 'user-management': include("pages/user-management.php"); break;
case 'log-center': include("pages/log-center.php"); break;
case 'manage-predictions': include("pages/manage-predictions.php"); break;
case 'football': include("pages/football.php"); break;
case 'subscriptions': include("pages/subscriptions.php"); break;
case 'manage-subscriptions': include("pages/manage-subscriptions.php"); break;
case 'edit-profile': include("pages/edit-profile.php"); break;
case 'settings': include("pages/settings.php"); break;
default: include("pages/login.php"); break;
}
?>