-
Notifications
You must be signed in to change notification settings - Fork 1
/
offline.php
187 lines (185 loc) · 11 KB
/
offline.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
<?php
function check_loaded_session() {
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(isset($_GET['urlx'])) header("Location: ..{$_GET['urlx']}");
elseif(isset($_SESSION['client_type']) && $_SESSION['client_type'] == "admin") header("Location: ../admin/supermain.php");
elseif(isset($_GET['error'])) header("Location: ../main/?error=" . $_GET['error']);
else header("Location: ../main/?error=offline");
exit();
}
}
function renderOutOfSessionHeader($currentTab) {
if(isset($_SESSION['start']) and $_SESSION['start']) {
require "online.php";
header_render("");
return;
}
?>
<header id="header" class="transparent-header full-header" data-sticky-class="not-dark">
<div id="header-wrap">
<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 style="font-size:10px">Home</div>
</a>
</li>
<li<?php echo $currentTab == "login" ? ' class="current"' : "" ?>>
<a href="https://www.prounlockphone.com/login/">
<div style="font-size:10px">Login</div>
</a>
</li>
<li<?php echo $currentTab == "register" ? ' class="current"' : "" ?>>
<a href="https://www.prounlockphone.com/register/">
<div style="font-size:10px">Register</div>
</a>
</li>
<li<?php echo $currentTab == "services" ? ' class="current"' : "" ?>>
<a href="https://www.prounlockphone.com/services/" class="sf-with-ul">
<div style="font-size:10px">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 style="font-size:10px">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 style="font-size:10px">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 style="font-size:10px">Track Order</div>
</a>
</li>
<li<?php
if($currentTab == "contact" || $currentTab == "forum") {
echo ' class="current"';
}
?>>
<a href="#" class="sf-with-ul">
<div style="font-size:10px">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
if($currentTab == "terms" || $currentTab == "refund" || $currentTab == "rules" || $currentTab == "gdpr") {
echo ' class="current"';
}
?>>
<a href="https://www.prounlockphone.com/terms/" class="sf-with-ul">
<div style="font-size:10px">Terms <b class="caret"></b></div>
</a>
<ul style="display: none;">
<li<?php echo $currentTab == "refund" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/terms/refund-policy/" style="font-size: 10px">
<div>Refund / Reimbursement Policy</div>
</a>
</li>
<hr style="margin:0px"/>
<li<?php echo $currentTab == "rules" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/terms/rules-of-service/" style="font-size: 10px">
<div>Service Rules and Conditions</div>
</a>
</li>
<hr style="margin:0px"/>
<li<?php echo $currentTab == "gdpr" ? ' class="current"' : "" ?> class="sf-options">
<a href="https://www.prounlockphone.com/terms/privacy/" style="font-size: 10px">
<div>Privacy and GDPR</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 urlencode($_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(!stripos($_SERVER['REQUEST_URI'], 'login') && $_SERVER['REQUEST_URI'] <> '/' && $_SERVER['REQUEST_URI'] <> '') 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>';
}
?>