-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
299 lines (280 loc) · 13.2 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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<?php
ob_start();
session_start();
require_once 'php/global.php';
require_once 'php/dbconfig.php';
require_once 'php/strings.php';
require_once 'php/langset.php';
require_once 'php/templates.php';
require_once 'php/autologin.php';
global $lang ,$strings, $global_key_theme,
$script_version, $alter_lang_link,
$alter_lang_name;
$templates = new Templates();
$security = new Security();
$links = new Links();
$dbconfig = new DBconfig();
$db = $dbconfig->getDB();
?><!DOCTYPE html>
<html lang="<?php echo $lang;?>">
<head>
<title>
<?php echo $strings["page_title"][$lang];?>
</title>
<?php
echo $templates->headMeta();
if($global_key_theme == "dark"){
?>
<link rel="stylesheet" href="/css/app-dark.css?v='.$script_version.'">
<meta name="theme-color" content="#212121">
<meta name="msapplication-TileColor" content="#212121">
<?php
}
else {
?>
<link rel="stylesheet" href="/css/app-light.css?v='.$script_version.'">
<meta name="theme-color" content="#ffffff">
<meta name="msapplication-TileColor" content="#ffffff">
<?php
}
?>
<link rel="stylesheet" href="/css/icons/fontawesome-6.3.0/css/all.min.css">
<link rel="stylesheet" href="/plugins/izi/css/iziToast.min.css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" href="/css/app.css?v=<?php echo $script_version;?>">
</head>
<body>
<header>
<div class="pad header_divs">
<div>
<a href="/" title="<?php echo $strings["prompt_home"][$lang];?>">
<img id="desk_image" src="/img/logos/ByteLoverBanner.svg">
<img id="mobi_image" src="/img/logos/ByteLoverLogo.svg">
</a>
</div>
<div class="header_links lflex">
<div class="top_links">
<a href="<?php echo $alter_lang_link;?>"><?php echo $alter_lang_name;?></a>
<a href="/courses/?ref=home_header"><?php echo $strings["courses"][$lang];?></a>
<a href="/dashboard/?push=<?php echo uniqid();?>"><?php echo $strings["dashboard"][$lang];?></a>
</div>
<div class="top_menu">
<i class="fa fa-list mb"></i>
</div>
</div>
<div class="header_opts rflex">
<div class="ml12">
<a href="<?php echo $links->themeLink();?>">
<button class="ub cflex nob rob">
<?php
if($global_key_theme == "dark"){
echo '<i class="fa-solid fa-sun"></i>';
}
else {
echo '<i class="fa-solid fa-moon"></i>';
}
?>
</button>
</a>
</div>
<div class="ml12">
<a href="tel:+8801317215403">
<button class="ub cflex" title="<?php echo $strings["prompt_support"][$lang];?>">
<span><?php echo $strings["call_now"][$lang];?></span><i class="fa fa-phone"></i>
</button>
</a>
</div>
<div class="ml12">
<a href="/signup/?ref=header">
<button class="ub cflex" title="<?php echo $strings["prompt_signup"][$lang];?>">
<span><?php echo $strings["joinus"][$lang];?></span><i class="fa fa-user-plus"></i>
</button>
</a>
</div>
<div>
<a href="/login/?ref=header">
<button class="ub cflex" title="<?php echo $strings["prompt_login"][$lang];?>">
<span><?php
if(!isset($_SESSION['user_id'])){
echo $strings["login"][$lang];
echo '</span> <i class="fa fa-sign-in"></i>';
}
else {
$profile = new Profile();
echo $profile->getUsername($dbconfig->getConnection(), $_SESSION['user_id']);
echo '</span>';
?>
<img class="h_ui" src="<?php echo $profile->getImage($dbconfig->getConnection(), $_SESSION['user_id']);?>">
<?php
}
?>
</button>
</a>
</div>
</div>
</div>
</header>
<section id="main_body">
<a class="omob" href="/dashboard/student/?push=<?php echo uniqid();?>">
<div class="tod cflex b">
If you are a student, click here to go to the Student Dashboard.
</div>
</a>
<div id="hero_line">
<?php echo $strings["hero_line"][$lang];?>
<div id="side_kick">
<?php echo $strings["side_kick"][$lang];?>
</div>
</div>
<div id="book_class" class="cflex">
<a href="/courses/?ref=home_button">
<button class="b">
<?php echo $strings["book_course"][$lang];?>
</button>
</a>
<a href="/forum/?ref=home_button">
<button class="b">
<?php echo $strings["code_forum"][$lang];?>
<sup>
<span class="badge badge-success">
<?php echo $strings["free"][$lang];?>
</span>
</sup>
</button>
</a>
<a href="/solo/?ref=home_button">
<button class="b">
<?php echo $strings["learn_solo"][$lang];?>
<sup>
<span class="badge badge-success">
<?php echo $strings["free"][$lang];?>
</span>
</sup>
</button>
</a>
</div>
<div class="w_card_holder">
<div class="card_welcome">
<div class="card_holder">
<div class="title b"><?php echo $strings["free_course"][$lang];?></div>
<div class="title sub">
<?php echo $strings["free_course_info"][$lang];?>
</div>
<div class="yt-body">
<iframe class="yt-pl" src="https://www.youtube.com/embed/videoseries?list=PLNUoztsuEzh70G7bkOz2IhRNYXoxJPtnU" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
</div>
</div>
</div>
<div class="card_welcome">
<div class="card_holder">
<div class="title b"><?php echo $strings["moon_title"][$lang];?></div>
<div class="title sub">
<?php echo $strings["moon_sub"][$lang];?>
</div>
<div class="body">
<div class="au">
<div>
<img src="/img/Moon.jpg" alt="Moon">
</div>
<div class="des">
<ul>
<li>
<?php echo $strings["moon_bsc"][$lang];?>
</li>
<li>
<?php echo $strings["moon_js"][$lang];?>
</li>
<li>
<?php echo $strings["moon_php"][$lang];?>
</li>
<li>
<?php echo $strings["moon_java"][$lang];?>
</li>
</ul>
</div>
</div>
<div class="lset">
<div>
<a href="tel:+8801317215403">
<button class="ub cflex tb cbc">
<i class="fa fa-phone"></i> <span><?php echo $strings["call_now"][$lang];?></span>
</button>
</a>
</div>
<div>
<a target="_blank" href="https://www.facebook.com/immo2n/">
<button class="ub cflex tb cbc">
<i class="fa fa-brands fa-facebook"></i> <span><?php echo $strings["facebook"][$lang];?></span>
</button>
</a>
</div>
<div>
<a target="_blank" href="https://moonmonoar.github.io/portfolio/">
<button class="ub cflex tb cbc">
<i class="fa fa-globe"></i> <span><?php echo $strings["website"][$lang];?></span>
</button>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="w_card_holder" id="feed">
<div class="load-icon">
<i class="fa fa-circle-notch fa-spin"></i> Loading...
</div>
</div>
<div class="horizontalScrollbar forceBlock">
<div class="img_cards">
<div class="card_image">
<img src="/img/illustrations/LiveClass.jpg" alt="Live classes">
<div class="title">
<?php echo $strings["live_with_record"][$lang];?>
</div>
<div class="description">
<?php echo $strings["live_with_record_body"][$lang];?>
</div>
</div>
<div class="card_image c2">
<img src="/img/illustrations/ProblemSolving.jpg" alt="Problem solving">
<div class="title t2">
<?php echo $strings["2hr"][$lang];?>
</div>
<div class="description d2">
<?php echo $strings["2hr_body"][$lang];?>
</div>
</div>
<div class="card_image c3">
<img src="/img/illustrations/ClassQuizes.jpg" alt="Quizzes">
<div class="title t3">
<?php echo $strings["quizes"][$lang];?>
</div>
<div class="description d3">
<?php echo $strings["quizes_body"][$lang];?>
</div>
</div>
<div class="card_image c2">
<img src="/img/illustrations/ProblemSolvingExam.jpg" alt="Exams">
<div class="title t4">
<?php echo $strings["tests"][$lang];?>
</div>
<div class="description d4">
<?php echo $strings["tests_body"][$lang];?>
</div>
</div>
</div>
</div>
</section>
<?php echo $templates->footerHtml();?>
<script src="/js/jquery.min.js?v=1"></script>
<script src="//cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script>
<script src="//cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>
<script src="/plugins/izi/js/iziToast.min.js"></script>
<script src="/js/min/index.js?v=<?php echo $script_version;?>"></script>
<script src="/js/min/app.js?v=<?php echo $script_version;?>"></script>
</body>
</html>
<?php
$html = ob_get_clean();
echo Minify::html($html);