-
Notifications
You must be signed in to change notification settings - Fork 1
/
DBConnection.php
587 lines (567 loc) · 36 KB
/
DBConnection.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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
<?php
if(!defined('INCLUDE_CHECK')) die('You are not allowed to execute this file directly');
if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off") {
header('HTTP/1.1 301 Moved Permanently');
header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
exit();
}
session_name('Client_Session');
session_start();
if(!isset($_SESSION['currency'])) {
$_SESSION['currency'] = 'USD';
$_SESSION['symbol'] = '$';
}
if(isset($_SESSION['start']) and $_SESSION['start']) {
if(isset($_GET['url'])) {
if(isset($_GET['param'])) header("Location: ../{$_GET['url']}/?param=" . $_GET['param']);
else header("Location: ../{$_GET['url']}/");
} elseif($_SESSION['client_type'] == "admin") header("Location: ../supermain.php");
elseif(isset($_GET['error'])) header("Location: ../main/?error=" . $_GET['error']);
else header("Location: ../main/?error=offline");
exit();
}
function common_head_with_title($title = "") {
$ogImage = 'https://www.prounlockphone.com/images/ogpup.png';
$ogURL = 'https://prounlockphone.com/';
$ogDescription = 'Fast, reliable and cheap service. Check your IMEI then get it unlocked. 100% Money-Back Guarantee';
$ogTitle = $title == "" ? ('PROunlockPhone© ' . date('Y') . ' | Official Online IMEI Services | USA') : ("PROunlockPhone - " . $title);
$ogSiteName = 'PROUnlockPhone';
$websiteTitle = $title == "" ? "PROunlockPhone - unlock iPhone iCloud Samsung AT&T USA - check IMEI" : ($title . " - PROunlockPhone");
$websiteDescription = 'Instant Check IMEI. iPhone Factory Unlock, iCloud Unlock, iPad, Samsung, Nokia, BlackBerry, all brands. Worldwide Services.';
$common_head = '
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-115016691-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(\'js\', new Date());
gtag(\'config\', \'UA-115016691-1\');
</script>';
$common_head .= '
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta property="og:title" content="' . $ogTitle . '">
<meta property="og:type" content="website">
<meta property="og:url" content="' . $ogURL . '">
<meta property="og:image:secure_url" itemprop="image" content="' . $ogImage . '">
<meta property="og:description" content="' . $ogDescription . '">
<meta property="og:site_name" content="' . $ogSiteName . '">
<meta property="og:updated_time" content="' . time() . '" />
<link rel="stylesheet" type="text/css" href="https://www.prounlockphone.com/common/css.css">
<link rel="stylesheet" type="text/css" href="https://www.prounlockphone.com/common/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://www.prounlockphone.com/common/jquery.jgrowl.min.css">
<link rel="stylesheet" type="text/css" href="https://www.prounlockphone.com/common/animate.css">
<link rel="stylesheet" type="text/css" href="https://www.prounlockphone.com/common/dark.css">
<link rel="stylesheet" type="text/css" href="https://www.prounlockphone.com/common/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="https://www.prounlockphone.com/common/magnific-popup.css">
<link rel="stylesheet" type="text/css" href="https://www.prounlockphone.com/common/style.css">
<link rel="stylesheet" type="text/css" href="https://www.prounlockphone.com/common/responsive.css">
<link rel="stylesheet" type="text/css" href="https://www.prounlockphone.com/common/bootstrap-select.min.css">
<link rel="stylesheet" type="text/css" href="https://www.prounlockphone.com/common/style(1).css">
<link rel="stylesheet" type="text/css" href="https://www.prounlockphone.com/common/switchery.css">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="description" content="' . $websiteDescription . '" />
<meta name="keywords" content="apple iphone unlock icloud unlock imei check clean clacklisted samsung lg nokia blackberry sony at&t sprint orange vodafone sfr usa worldwide" />
<title>' . $websiteTitle . '</title>
<script src="https://www.prounlockphone.com/common/jquery-1.11.1.min.js"></script>
<link rel="shortcut icon" href="https://www.prounlockphone.com/images/pup-ico-16x16.png" type="image/x-icon" />
<style id="fit-vids-style">
.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}
.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}
</style>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://www.prounlockphone.com",
"name": "PROunlockPhone - iCloud / iPhone / Samsung Unlocking Solutions",
"author": {
"@type": "Person",
"name": "Khoubeib Bouthour"
},
"description": "Worldwide Factory Unlock Codes. iPhone, iCloud, Samsung, etc. Unlock iPhone iCloud, US AT&T, T-Mobile, Canada. Cheapest Prices 100% Money-Back",
"publisher": {
"@type": "Person",
"name": "Khoubeib Bouthour"
},
"potentialAction": {
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://www.prounlockphone.com/track/order-status.php?ref={IMEI}"
},
"query-input": {
"@type": "PropertyValueSpecification",
"valueRequired": "http://schema.org/True",
"valueName": "IMEI"
}
}
}
</script>';
return $common_head;
}
$footer1 = 'All prices are subject to change without notice. If you have any progressing orders, they should not be affected. However, in rare cases, the orders will be rejected and your credits refunded to your account and you should receive a notification explaining the reason.';
$footer2 = 'Feel free to contact us if you have any concern. Our team is here to provide continuous help and support.';
$footer3 = '<div class="col_half">PROUnlockPhone© 2010 - ' . date('Y') . '</div>
<div class="col_half col_last tright">
<div class="social">
<a target="_blank" href="https://fb.me/prounlockphone"><i class="fa fa-facebook"></i></a>
<a target="_blank" href="https://twitter.com/prounlockphone"><i class="fa fa-twitter"></i></a>
<a target="_blank" href="https://plus.google.com/prounlockphone"><i class="fa fa-google-plus"></i></a>
<a target="_blank" href="https://www.linkedin.com/in/prounlockphone"><i class="fa fa-linkedin"></i></a>
</div>
<i class="fa fa-envelope"></i> <a href="mailto:[email protected]">[email protected]</a>
<span class="middot"> </span>
<i class="fa fa-phone"></i> <a href="tel:+12104544850">+1 (210) 454-4850</a>
<span class="middot"> </span>
<a href="skype:[email protected]"><img src="https://www.prounlockphone.com/images/Skype.png" alt="skype" /> Skype message</a>
</div>';
$footer = '<footer id="footer" class="dark" z-index="1">
<div class="margin30 container-fluid">
<p class="p1" style="text-align: center; ">
<span style="font-size: 14px;">
<font color="#9c9c94">' . $footer1 . '</font>
</span>
</p>
<p class="p2" style="text-align: center;">
<font color="#9c9c94"><br></font>
</p>
<p class="p1" style="text-align: center;">
<span style="font-size: 14px;">
<font color="#9c9c94">' . $footer2 . '</font>
</span>
</p>
<p>
<font color="#9c9c94">
<span style="font-size: 14px;"></span>
<span style="font-size: 14px;">
<span style="font-size: 16px;">
<style type="text/css">
p.p1 {
margin: 0.0px 0.0px 0.0px 0.0px;
font: 12.0px Helvetica
}
p.p2 {
margin: 0.0px 0.0px 0.0px 0.0px;
font: 12.0px Helvetica;
min-height: 14.0px
}
</style>
</span>
</span>
<span style="font-size: 14px;"></span>
</font>
</p>
<p class="p2" style="text-align: center; "><br></p>
</div>
<div id="copyrights">
<div class="container clearfix">
' . $footer3 . '
</div>
</div>
</footer>';
function header_render($actual) {
$DB = new DBConnection();
?>
<header id="header" class="transparent-header full-header" data-sticky-class="not-dark">
<div id="header-wrap" class="">
<div class="container clearfix">
<div id="primary-menu-trigger"><i class="fa fa-bars"></i></div>
<div id="logo">
<a href="https://www.prounlockphone.com/"><img src='https://www.prounlockphone.com/images/pup1.png' /></a>
<a href="https://www.prounlockphone.com/profile/" style="font-size:50%"><? echo $_SESSION['username'] ?></a>
</div>
<nav id="primary-menu">
<ul class="sf-menu" style="touch-action: pan-y;">
<li>
<a href="https://www.prounlockphone.com/statement/" style="font-size: 10px">
<?php
switch($_SESSION['currency']) {
case "USD":
$currency = "$";
break;
case "EUR":
$currency = "€";
break;
case "GBP":
$currency = "£";
break;
case "TND":
$currency = "DT";
break;
}
$row = mysqli_fetch_assoc(mysqli_query($DB->Link, "SELECT balance FROM users WHERE users.id = " . $_SESSION['client_id']));
?><div id="balance" style="color:<? echo ($row['balance'] < 0 ? $color = "red" : ($row['balance'] < 10 ? $color = "orange" : $color = "green")) ?>">Balance <? echo number_format($row['balance'], 2, ".", ",") . " " . $currency ?></div>
</a>
</li>
<li<?php echo $actual == "main" ? ' class="current"' : "" ?>>
<a href="https://www.prounlockphone.com/main/" style="font-size: 10px">
<div>Home</div>
</a>
</li>
<li<?php
if($actual == "orders" || $actual == "order" || $actual == "check") {
echo ' class="current"';
}
?>>
<a href="#" class="sf-with-ul" style="font-size: 10px">
<div>Orders Panel <b class="caret"></b></div>
</a>
<ul style="display: none;">
<li<?php echo $actual == "order" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/order/" style="font-size: 10px">
<div>Place Order</div>
</a>
</li>
<li<?php echo $actual == "check" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/check/" style="font-size: 10px">
<div>Instant IMEI Check</div>
</a>
</li>
<hr style="margin: 0px"/>
<li<?php echo $actual == "orders" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/orders/" style="font-size: 10px">
<div>Orders History</div>
</a>
</li>
</ul>
</li>
<li<?php
if($actual == "profile" || $actual == "statement" || $actual == "notifications" || $actual == "payment" || $actual == "refund" || $actual == "change") {
echo ' class="current"';
}
?>>
<a href="#" class="sf-with-ul" style="font-size: 10px">
<div>My account <b class="caret"></b></div>
</a>
<ul style="display: none;">
<li<?php echo $actual == "statement" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/statement/" style="font-size: 10px">
<div>
<img src="https://www.prounlockphone.com/images/payment.png" style="margin-right:10px" alt="statement"><b>My Statement</b>
</div>
</a>
</li>
<li<?php echo $actual == "notifications" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/notifications/" style="font-size: 10px">
<div>
<img src="https://www.prounlockphone.com/images/notification.png" style="margin-right:10px" alt="notification"><b>Notification History</b>
</div>
</a>
</li>
<li<?php echo $actual == "payment" ? ' class="current"' : "" ?> class="sf-options">
<a href="#" class="sf-with-ul" style="font-size: 10px">
<div>
<img src="https://www.prounlockphone.com/images/coins.png" style="margin-right:10px" alt="credits"><b>Add credits</b> <b class="caret"></b>
</div>
</a>
<ul style="display: none;">
<li class="sf-options" style="border-bottom:solid 1px gray">
<a href="https://www.prounlockphone.com/payment/" style="font-size: 10px">
<div align="center">
<img src="https://www.prounlockphone.com/images/paypal-menu.png" height="23px" alt="PayPal">
</div>
</a>
</li>
<!-- <li class="sf-options" style="border-bottom:solid 1px gray">-->
<!-- <a href="https://www.prounlockphone.com/skrill/">-->
<!-- <div align="center">-->
<!-- <img src="https://www.prounlockphone.com/images/skrill-menu.png" height="23px" alt="Skrill">-->
<!-- </div>-->
<!-- </a>-->
<!-- </li>-->
<!-- <li class="sf-options" style="border-bottom:solid 1px gray">-->
<!-- <a href="https://www.prounlockphone.com/neteller/">-->
<!-- <div align="center">-->
<!-- <img src="https://www.prounlockphone.com/images/neteller-menu.png" height="23px" alt="Neteller">-->
<!-- </div>-->
<!-- </a>-->
<!-- </li>-->
<!-- <li class="sf-options" style="border-bottom:solid 1px gray">-->
<!-- <a href="https://www.prounlockphone.com/moneygram/">-->
<!-- <div align="center">-->
<!-- <img src="https://www.prounlockphone.com/images/moneygram-menu.png" height="23px" alt="MoneyGram">-->
<!-- </div>-->
<!-- </a>-->
<!-- </li>-->
<!-- <li class="sf-options">-->
<!-- <a href="https://www.prounlockphone.com/westernunion/">-->
<!-- <div align="center">-->
<!-- <img src="https://www.prounlockphone.com/images/westernunion-menu.png" height="23px" alt="Western Union">-->
<!-- </div>-->
<!-- </a>-->
<!-- </li>-->
</ul>
</li>
<li<?php echo $actual == "refund" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/refund/" style="font-size: 10px">
<div>
<img src="https://www.prounlockphone.com/images/refund.png" style="margin-right:10px" alt="refund"><b>Request Money Back</b>
</div>
</a>
</li>
<li<?php echo $actual == "profile" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/profile/" style="font-size: 10px">
<div>
<img src="https://www.prounlockphone.com/images/profile.png" style="margin-right:10px" alt="profile"><b>Edit My Profile</b>
</div>
</a>
</li>
<li<?php echo $actual == "change" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/change/" style="font-size: 10px">
<div>
<img src="https://www.prounlockphone.com/images/key.png" style="margin-right:10px" alt="profile"><b>Change Password</b>
</div>
</a>
</li>
</ul>
</li>
<li<?php
if($actual == "contactus" || $actual == "forum") {
echo ' class="current"';
}
?>>
<a href="#" class="sf-with-ul" style="font-size: 10px">
<div>Support <b class="caret"></b></div>
</a>
<ul style="display: none;">
<li<?php echo $actual == "contactus" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/contactus/" style="font-size: 10px">
<div>Contact us</div>
</a>
</li>
<hr style="margin: 0px"/>
<li<?php echo $actual == "forum" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/forum/" style="font-size: 10px">
<div>Forum</div>
</a>
</li>
</ul>
</li>
<li>
<a href="https://www.prounlockphone.com/logout/" style="font-size: 10px">
<div>Logout</div>
</a>
</li>
</ul>
</nav>
</div>
</div>
</header>
<div class="clear"></div>
<?php
if((!isset($_SESSION['showAds']) || $_SESSION['showAds'] == '1') && $_SERVER['REQUEST_URI'] <> '/login/') echo '
<div align="center">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-5111821234953725"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-5111821234953725"
});
</script>
</div>';
}
class DBConnection {
public $Link;
public function __construct() {
$this->Link = mysqli_connect("", "touwereg", "Kh0ube1b$");
$this->Link->set_charset('utf8mb4');
mysqli_select_db($this->Link, "prounlockphone");
// mysqli_query($this->Link, "SET names UTF8");
}
}
$contact_information = '<hr class="hr-description">
<p class="info-row"><b>Admin:</b> Khoubeib</p><br />
<p class="info-row"><i class="fa fa-envelope"></i> <b>eMail:</b> <a href="mailto:[email protected]" style="color:white">[email protected]</a></p>
<p class="info-row"><b>Whatsapp:</b> <a href="whatsapp:+12104544850" style="color:white">+1 (210) 454-4850</p>
<p class="info-row"><b>Viber:</b> <a href="viber:+12104544850" style="color:white">+1 (210) 454-4850</p>
<p class="info-row"><b>Skype:</b> <a href="skype:[email protected]?chat" style="color:white">[email protected]</a></p>
<p class="info-row"><i class="fa fa-phone"></i> <b>Phone:</b> <a href="tel:+12104544850" style="color:white">+1 (210) 454-4850</a></p>
<p class="info-row"><b>Supported languages:</b>
<br /><img src="https://www.prounlockphone.com/images/flags/US.png" height="16px" style="margin-left:50px" /> English
<br /><img src="https://www.prounlockphone.com/images/flags/FR.png" height="16px" style="margin-left:50px" /> French
<br /><img src="https://www.prounlockphone.com/images/flags/TN.png" height="16px" style="margin-left:50px" /> Arabic
<br /><img src="https://www.prounlockphone.com/images/flags/ES.png" height="16px" style="margin-left:50px" /> Spanish
<br /><img src="https://www.prounlockphone.com/images/flags/IT.png" height="16px" style="margin-left:50px" /> Italian
</p>';
function renderOutOfSessionHeader($currentTab) {
?>
<header id="header" class="transparent-header full-header" data-sticky-class="not-dark">
<div id="header-wrap" class="">
<div class="container clearfix">
<div id="primary-menu-trigger"><i class="fa fa-bars"></i></div>
<div id="logo">
<a href="https://www.prounlockphone.com/"><img src='https://www.prounlockphone.com/images/pup1.png' /></a>
</div>
<nav id="primary-menu">
<ul class="sf-menu" style="touch-action: pan-y;">
<li>
<a href="https://www.prounlockphone.com/">
<div>Home</div>
</a>
</li>
<li<?php echo $currentTab == "login" ? ' class="current"' : "" ?>>
<a href="https://www.prounlockphone.com/login/">
<div>Login</div>
</a>
</li>
<li<?php echo $currentTab == "register" ? ' class="current"' : "" ?>>
<a href="https://www.prounlockphone.com/register/">
<div>Register</div>
</a>
</li>
<li<?php echo $currentTab == "services" ? ' class="current"' : "" ?>>
<a href="https://www.prounlockphone.com/services/" class="sf-with-ul">
<div>List of services</div>
</a>
</li>
<li<?php echo $currentTab == "check" ? ' class="current"' : "" ?>>
<a href="https://www.prounlockphone.com/quick-order/Apple Check Services/?quick=no">
<div>Check IMEI</div>
</a>
</li>
<li<?php
if($currentTab == "quick" || $currentTab == "factory" || $currentTab == "icloud" || $currentTab == "gsx" || $currentTab == "generic") {
echo ' class="current"';
}
?>>
<a href="https://www.prounlockphone.com/quick-order/" class="sf-with-ul">
<div>Quick Order <b class="caret"></b></div>
</a>
<ul style="display: none;">
<li<?php echo $currentTab == "factory" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/quick-order/iPhone Factory Unlock/" style="font-size: 10px">
<div>iPhone Factory Unlock</div>
</a>
</li>
<hr style="margin: 0px"/>
<li<?php echo $currentTab == "icloud" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/quick-order/iCloud Services/" style="font-size: 10px">
<div>iCloud Services</div>
</a>
</li>
<hr style="margin: 0px"/>
<li<?php echo $currentTab == "gsx" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/quick-order/Apple Check Services/" style="font-size: 10px">
<div>Apple Check Services</div>
</a>
</li>
<hr style="margin: 0px"/>
<li<?php echo $currentTab == "generic" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/services/" style="font-size: 10px">
<div>Remove Network Simlock</div>
</a>
</li>
</ul>
</li>
<li<?php echo ($currentTab == "track" ? ' class="current"' : "") ?>>
<a href="https://www.prounlockphone.com/track/">
<div>Track Order</div>
</a>
</li>
<li<?php
if($currentTab == "contact" || $currentTab == "forum") {
echo ' class="current"';
}
?>>
<a href="#" class="sf-with-ul">
<div>Support <b class="caret"></b></div>
</a>
<ul style="display: none;">
<li<?php echo $currentTab == "contact" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/contact/" style="font-size: 10px">
<div>Contact us</div>
</a>
</li>
<hr style="margin: 0px"/>
<li<?php echo $currentTab == "forum" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/forum/" style="font-size: 10px">
<div>Forum</div>
</a>
</li>
</ul>
</li>
<li>
<?php
$currencies = array('USD', 'EUR', 'GBP', 'TND');
$currencies = array_diff($currencies, [$_SESSION['currency']]);
?>
<a href="#" class="sf-with-ul">
<div><?php echo $_SESSION['currency'] ?> <img style="margin-top:-3px" src="https://www.prounlockphone.com/images/currencies/<?php echo $_SESSION['currency'] ?>.png" alt="<?php echo $_SESSION['currency'] ?>" /><b class="caret"></b></div>
</a>
<ul style="display: none;">
<?php
foreach ($currencies as $cur) {
?>
<hr style="margin: 0px"/>
<li class="sf-options">
<a href="https://www.prounlockphone.com/currency.php?url=<?php echo $_SERVER['REQUEST_URI'] ?>¤cy=<?php echo $cur ?>">
<div><?php echo $cur ?> <img style="margin-top:-3px" src="https://www.prounlockphone.com/images/currencies/<?php echo $cur ?>.png" alt="<?php echo $cur ?>" /></div>
</a>
</li>
<?php
}
?>
</ul>
</li>
</ul>
</nav>
</div>
</div>
</header>
<div class="clear"></div>
<?php
if($_SERVER['REQUEST_URI'] <> '/login/') echo '
<div align="center">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-5111821234953725"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-5111821234953725"
});
</script>
</div>';
}
$common_foot = '<div id="gotoTop" class="fa fa-caret-up" style="display: none;"></div>
<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-hidden="false" style="display:none; z-index: 1041;">
<div class="modal-dialog">
<div class="modal-content"></div>
</div>
</div>
<div class="modal fade" id="largeModal" tabindex="-1" role="dialog" aria-hidden="false" style="display:none; z-index: 1041;">
<div class="modal-dialog" style="width: 96%;">
<div class="modal-content"></div>
</div>
</div>
<div class="modal fade" id="errorModal" tabindex="-1" role="dialog" aria-hidden="false" style="display:none; z-index: 1100;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button aria-hidden="true" class="close" data-dismiss="modal" type="button">x</button>
<h4 class="modal-title" style="color: red;">
Error!
</h4>
</div>
<div class="modal-body container-fluid">
<p>Communication token expired, please refresh the page and try again!</p>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal" type="button">Close</button>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="https://www.prounlockphone.com/common/bootstrap.min.js"></script>
<script type="text/javascript" src="https://www.prounlockphone.com/common/plugins.js"></script>
<script type="text/javascript" src="https://www.prounlockphone.com/common/functions.js"></script>
<script type="text/javascript" src="https://www.prounlockphone.com/common/jquery.jgrowl.min.js"></script>
<script type="text/javascript" src="https://www.prounlockphone.com/common/jquery.form.min.js"></script>
<script type="text/javascript" src="https://www.prounlockphone.com/common/bootstrap-select.min.js"></script>
<script type="text/javascript" src="https://www.prounlockphone.com/common/script.js"></script>
<script type="text/javascript" src="https://www.prounlockphone.com/common/switchery.js"></script>
<div id="jGrowl" class="top-right jGrowl">
<div class="jGrowl-notification"></div>
</div>';
?>