-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
122 lines (89 loc) · 3.39 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
ini_set('display_errors', 0);
ini_set('display_startup_errors', 1);
$templ = 1;
error_reporting(E_ALL);
if (empty($cpath)) {
$cpath = dirname(__FILE__);
}
include($cpath ."/engine/functions/langctrl.php");
$baseurlz = basename(__FILE__);
include_once($cpath ."/engine/functions/main.php");
if (!isLoginUser())
FloodDetection();
$domainNull = '';
$requestUrl = $_SERVER["REQUEST_URI"];
include_once('cache-top.php');
if(strpos($requestUrl, $domainNull.'/index.php') !== false){
include_once($cpath ."/engine/template_combinations/index_page.php");
}
elseif(strpos($requestUrl, $domainNull.'/help.php') !== false){
include_once($cpath ."/engine/template_combinations/help_page.php");
}
elseif(strpos($requestUrl, $domainNull.'/img.php') !== false){
include_once($cpath ."/engine/template_combinations/images.php");
}
elseif(strpos($requestUrl, $domainNull.'/geo.php') !== false){
include_once($cpath ."/engine/template_combinations/geo.php");
}
elseif(strpos($requestUrl, $domainNull.'/chat.php') !== false){
include_once($cpath ."/engine/template_combinations/chat_page.php");
}
elseif(strpos($requestUrl, $domainNull.'/stats_week.php') !== false){
include_once($cpath ."/engine/template_combinations/st_week.php");
}
elseif(strpos($requestUrl, $domainNull.'/stats_medals.php') !== false){
include_once($cpath ."/engine/template_combinations/main_medals.php");
}
elseif(strpos($requestUrl, $domainNull.'/map.php') !== false){
include_once($cpath ."/engine/template_combinations/geo.php");
}
elseif(strpos($requestUrl, $domainNull.'/stats_maps.php') !== false){
include_once($cpath ."/engine/template_combinations/stats_maps.php");
}
elseif(strpos($requestUrl, $domainNull.'/stats_day.php') !== false){
include_once($cpath ."/engine/template_combinations/st_day.php");
}
elseif(strpos($requestUrl, $domainNull.'/stats.php') !== false){
if(!empty($profile))
include_once($cpath ."/engine/template_combinations/profile.php");
else if(!empty($brofile))
include_once($cpath ."/engine/template_combinations/main_top_brofile.php");
else if(!empty($_GET['n']))
{
include_once($cpath ."/engine/template_combinations/main_top_brofile.php");
}
else
include_once($cpath ."/engine/template_combinations/main_top.php");
}
elseif(strpos($requestUrl, $domainNull.'/list.php') !== false){
$templ = 1;
if((empty($_COOKIE["codbx_uexec"]))&&(!empty($_SESSION['codbxuserexec'])))
setcookie("codbx_uexec", $_SESSION['codbxuserexec'], time()+259200);
include_once($cpath ."/admin/inc/data.php");
if(isLoginUser())
{
include_once($cpath ."/engine/template_combinations/index_list.php");
}
else
echo '<script type="text/javascript"> window.open("admin/login.php","_self");</script>';
}
elseif(strpos($requestUrl, $domainNull.'/list_ip_ban.php') !== false){
$templ = 1;
if((empty($_COOKIE["codbx_uexec"]))&&(!empty($_SESSION['codbxuserexec'])))
setcookie("codbx_uexec", $_SESSION['codbxuserexec'], time()+259200);
include_once($cpath ."/admin/inc/data.php");
if(isLoginUser())
{
include_once('cache-top.php');
include_once($cpath ."/engine/template_combinations/index_ip_list.php");
include_once('cache-bottom.php');
}
}
else
{
// saveVisits('MAIN VISIT');
include_once($cpath ."/engine/template_combinations/index_page.php");
}
include_once('cache-bottom.php');
?>