-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.php
201 lines (170 loc) · 7.62 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<?php
require_once ('./includes/config.php');
require_once ('./includes/session.php');
require_once ('./includes/functions.php');
require_once ('./includes/connect.php');
require_once ('./includes/language/'.LANG_FILE);
require_once ('./includes/csscolorgenerator.php');
require_once ('./includes/afterincludes.php');
?>
<!DOCTYPE html>
<html lang="<?php echo InterfaceLanguage ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo PageTitle ?></title>
<meta name="description" content="<?php echo description ?>">
<meta name="keywords" content="<?php echo keywords ?>">
<meta name="author" id="author" content="onexite">
<meta name="twitter:title" content="<?php echo PageTitle ?>"/>
<meta name="twitter:description" content="<?php echo description ?>"/>
<meta name="twitter:image" content="/assets/css/images/screenshot.png"/>
<meta property="og:title" content="<?php echo PageTitle ?>"/>
<meta property="og:image" content="/assets/css/images/screenshot.png"/>
<meta property="og:description" content="<?php echo description ?>"/>
<link rel="icon" type="image/png" href="./assets/css/images/favicon.png" />
<link href="./assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="./assets/css/styles.css" rel="stylesheet" type="text/css">
<link href="./assets/css/fontello.min.css" rel="stylesheet" type="text/css">
<link href="./assets/css/sticky.min.css" rel="stylesheet" type="text/css" />
<link href="./includes/styles.php" rel="stylesheet" type="text/css">
<?php if(animated){ ?>
<link href="./assets/css/animate.min.css" rel="stylesheet" type="text/css">
<?php } ?>
<?php if(isGet('download') || isGet('files')){ ?>
<link href="./assets/css/famfamfam-flags.min.css" rel="stylesheet" type="text/css">
<link href="./assets/css/platforms.min.css" rel="stylesheet" type="text/css">
<link href="./assets/css/bootstrap-checkbox.min.css" rel="stylesheet" type="text/css">
<?php } ?>
<?php if(GetIsEmpty){ ?>
<link href="./assets/css/bootstrap-toggle.min.css" rel="stylesheet" type="text/css">
<?php } ?>
<?php if(IsRtL()){ ?>
<link href="./assets/css/bootstrap-rtl.min.css" rel="stylesheet" type="text/css">
<?php } ?>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="./assets/js/html5shiv.min.js" type="text/javascript"></script>
<script src="./assets/js/respond.min.js" type="text/javascript"></script>
<![endif]-->
<!--[if IE]>
<link rel="shortcut icon" href="./assets/css/images/favicon.ico">
<![endif]-->
<!--<script src="./assets/js/excanvas.min.js" type="text/javascript"></script>-->
</head>
<body>
<?php
isGet('404') ? exit(require_once ('./modals/404.php')) : '';
isGet('403') ? exit(require_once ('./modals/403.php')) : '';
?>
<div class="se-pre-con loading-spin"></div>
<div class="container">
<?php require_once ('./modals/logo.php');?>
<div class="row">
<?php require_once ('./modals/navbar.php');?>
<?php require_once ('./modals/sidemenu.php');?>
<div class="col-sm-9 col-md-9" id="container">
<?php
GetIsEmpty ? Get_Ads ('ads_index') : '';
isGet('download') ? Get_Ads ('ads_download') : '';
?>
<div id="main" class="<?php echo ClassAnimated ?> bounceInDown">
<div class="ribbon orange" >
<span id="MainTitle">
<?php
echo ContainerTitle;
?>
</span>
</div>
<div class="top70" id="htmlcontainer">
<?php
/*
echo '<pre>';
var_dump($_SESSION);
echo '</pre>';
print '<pre style="text-align: left;direction: ltr; ">' . print_r(get_defined_vars(), true) . '</pre>';
*/
if(isGet('download'))
require_once ('./modals/download.php');
elseif(isGet('files'))
( IsLogin ) ? require_once ('./modals/files.php') : Need_Login() ;
elseif(isGet('about'))
require_once ('./modals/about.php');
elseif(isGet('profile'))
( IsLogin ) ? require_once ('./modals/profile.php') : Need_Login() ;
elseif(isGet('authorized') )
( !IsLogin && authorized ) ? require_once ('./modals/authorization.php') : Need_Logout() ;
elseif(isGet('login'))
( !IsLogin ) ? require_once ('./modals/login.php') : Need_Logout() ;
elseif(isGet('register') && IsLogin)
( register) ? require_once ('./modals/register.php') : Need_Logout() ;
elseif(isGet('register') && !IsLogin)
( register ) ? require_once ('./modals/register.php') : Registration_Disabled() ;
elseif(isGet('forgot'))
( !IsLogin ) ? require_once ('./modals/forgot.php') : Need_Logout() ;
elseif(isGet('contact') )
require_once ('./modals/contact.php');
elseif(isGet('plans') )
require_once ('./modals/plans.php');
else
require_once ('./modals/dropzone.php');
?>
</div> <!-- htmlcontainer-->
</div> <!--div main -->
<?php
/* GetIsEmpty ? require_once ('./modals/totalstats.php') : '';*/
GetIsEmpty ? require_once ('./modals/uploadresult.php') : '';
isGet('download') && EnableComments ? require_once ('./modals/comments.php') : '';
?>
</div><!-- id container -->
</div> <!--div row -->
</div> <!--div container -->
<!-- Modals -->
<?php
((IsAdmin || statistics) && (isGet('download') || isGet('files'))) ? require_once ('./modals/stats.php') : '';
(isGet('files')) ? require_once ('./modals/fileinfo.php') : '';
echo defined('SuccessfullyDeleted') ? '<div id="topalert" style="display:none;">'.SuccessfullyDeleted.'</div>' : '';
(siteclose && ! isGet('login')) ? require_once ('./modals/siteclose.php') : '';
(IsLogin) ? require_once ('./modals/logout.php') : '';
(GetIsEmpty) ? require_once ('./modals/links.php') : '';
/*(GetIsEmpty) ? require_once ('./modals/upload.php') : '';*/
?>
<!-- footer -->
<?php
require_once ('./modals/footer.php');
?>
<!-- JavaScript -->
<script src="./modals/jsvariables.php<?php echo (defined('QUERY') && strlen(QUERY) > 0 )? '?'.QUERY:'' ?>" type="text/javascript"></script>
<!--<script src="./assets/js/modernizr-2.6.2-respond-1.1.0.min.js" type="text/javascript"></script>-->
<!--<script src="./assets/js/jquery-ui.min.js" type="text/javascript"></script>-->
<script src="./assets/js/jquery.min.js" type="text/javascript"></script>
<script src="./assets/js/bootstrap.min.js" type="text/javascript"></script>
<script src="./assets/js/sticky.min.js" type="text/javascript"></script>
<?php if(GetIsEmpty){ ?>
<script src="./assets/js/simpleajaxuploader.min.js" type="text/javascript"></script>
<script src="./assets/js/bootstrap-toggle.min.js" type="text/javascript"></script>
<script src="./assets/js/countup.min.js" type="text/javascript"></script>
<?php } ?>
<?php if(isGet('download') || isGet('files')){ ?>
<script src="./assets/js/jquery.bootpag.min.js" type="text/javascript"></script>
<script src="./assets/js/bootstrap-checkbox.min.js" type="text/javascript"></script>
<?php if(!IsIeBrowser()){ ?>
<script src="./assets/js/chart.min.js" type="text/javascript"></script>
<!--<script src="./assets/js/highcharts.js" type="text/javascript"></script> -->
<?php } ?>
<?php } ?>
<script src="./assets/js/bootbox.min.js" type="text/javascript"></script>
<script src="./assets/js/bootstrap-show-password.min.js" type="text/javascript"></script>
<script src="./assets/js/bootstrap-maxlength.min.js" type="text/javascript"></script>
<script src="./assets/js/global.min.js" type="text/javascript"></script>
<script src="./assets/js/functions.min.js" type="text/javascript"></script>
</body>
</html>
<?php
mysqliClose_freeVars() ;
foreach (array_keys(get_defined_vars()) as $var)
unset($$var);
unset($var);
?>