-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
44 lines (38 loc) · 1.06 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
43
44
<?php
/*
* _____ _ _ ______ _____ _____
* | __ (_) | | | ____| /\ | __ \_ _|
* | |__) | ___| | _| |__ _ __ ___ / \ | |__) || |
* | ___/ |/ __| |/ / __| | '_ ` _ \ / /\ \ | ___/ | |
* | | | | (__| <| |____| | | | | | / ____ \| | _| |_
* |_| |_|\___|_|\_\______|_| |_| |_| /_/ \_\_| |_____|
*
* Pick'Em API Test
*
* @author pkfln <https://github.com/pkfln>
*
*/
if(file_exists(realpath(__DIR__ . '/engine/global.php')))
require_once realpath(__DIR__ . '/engine/global.php');
else
die('<font style="color: #FF0000;">ERROR:</font> Globalfile not found.');
if(isset($_GET['page']))
{
switch($_GET['page'])
{
case '':
header('LOCATION: index.php?page=login');
break;
default:
if($PEA->site->tpl_exists($_GET['page']))
$PEA->site->tpl($_GET['page']);
else
header('LOCATION: index.php?page=404');
break;
}
}
else
{
header('LOCATION: index.php?page');
}
?>