-
Notifications
You must be signed in to change notification settings - Fork 17
/
processing_request.php
326 lines (324 loc) · 16.1 KB
/
processing_request.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
<?php $cpalink= "https://landingpageskull.com/" ?>
<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- =============== By MCh CPA 2021 : Re-skinning GRP =============== -->
<!-- ================================================================= -->
<!-- ================================================================= -->
<?php include("php/header.php"); ?>
<div class="content-wrapper generator-content-wrapper">
<div class="row">
<div class="profile-form-wrapper col-sm-12">
<?php
$tik_user = $user = isset($_GET['username']) ? $_GET['username'] : "null";
$ytbdata = 'https://countik.com/tiktok-analytics/user/'.$tik_user;
$url = file_get_contents($ytbdata);
$dom = new DOMDocument();
libxml_use_internal_errors(true);
$dom->loadHTML($url);
libxml_clear_errors();
$xpath = new DOMXpath($dom);
$values = array();
$full_name = $xpath->query("//p[@class='nickname']");
foreach($full_name as $value) {
$full_name = $values[] = trim($value->textContent);
}
$user_name = $xpath->query("//div[@class='username']/h2");
foreach($user_name as $value) {
$user_name = $values[] = trim($value->textContent);
}
$followers = $xpath->query("//*[@id='__layout']/section/section/section[2]/div/div[1]/div/div[1]/p");
if (!empty($followers)) {
foreach($followers as $value) {
$followers = $values[] = trim($value->textContent);
if(strpos($followers, 'M') !== false){
$followers = str_replace('M', '', $followers);
$followers *= 1000000;
}elseif(strpos($followers, 'k') !== false){
$followers = str_replace('k', '', $followers);
$followers *= 1000;
}else{
$followers = str_replace(',', '', $followers);
$followers = $followers;
}
}
}else{
$followers = '0';
}
$following = $xpath->query("//*[@id='__layout']/section/section/section[2]/div/div[1]/div/div[4]/p");
if (!empty($following)) {
foreach($following as $value) {
$following = $values[] = trim($value->textContent);
$following = str_replace(",","",$following);
}
}else{
$following = '0';
}
$videos = $xpath->query("//*[@id='__layout']/section/section/section[2]/div/div[1]/div/div[3]/p");
foreach($videos as $value) {
$video = $values[] = $value->textContent;
$video = str_replace(',', '', $video);
}
$likes = $xpath->query("//*[@id='__layout']/section/section/section[2]/div/div[1]/div/div[2]/p");
foreach($likes as $value) {
$likes = $values[] = $value->textContent;
$likes = str_replace(',', '', $likes);
}
$images = $xpath->query("//*[@id='__layout']/section/section/section[1]/div/div/div[1]/div[1]/img");
foreach ($images as $image) {
$image = $image->getAttribute('src');
}
// ================================================================= //
// ================================================================= //
// =============== By MCh CPA 2021 : Re-skinning GRP =============== //
// ================================================================= //
// ================================================================= //
if (strlen($full_name != 0)) { ?>
<div class="processing-wrapper-not-connected">
<div class="processing-inner-wrapper">
<div class="cssload-dots">
<div class="cssload-dot"></div>
<div class="cssload-dot"></div>
<div class="cssload-dot"></div>
<div class="cssload-dot"></div>
<div class="cssload-dot"></div>
</div>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<filter id="goo">
<feGaussianBlur in="SourceGraphic" result="blur" stdDeviation="12" ></feGaussianBlur>
<feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7" result="goo" ></feColorMatrix>
<!--<feBlend in2="goo" in="SourceGraphic" result="mix" ></feBlend>-->
</filter>
</defs>
</svg>
<p class="animated infinite jello">Retrieving Profile Info...</p>
</div>
</div>
<div class="error-message">
<i class="fa fa-times-circle-o" aria-hidden="true"></i>
<h1>Oops, error</h1>
<div class="error-message-notice">It seems you entered an invalid TikTok Channel Link!</div>
<div class="error-button-wrapper"><a id="error-go-back-button" class="error-button-back ig-button small">Go Back</a></div>
</div>
<?php }else{ ?>
<div class="processing-wrapper">
<div class="processing-inner-wrapper">
<div class="cssload-dots">
<div class="cssload-dot"></div>
<div class="cssload-dot"></div>
<div class="cssload-dot"></div>
<div class="cssload-dot"></div>
<div class="cssload-dot"></div>
</div>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<filter id="goo">
<feGaussianBlur in="SourceGraphic" result="blur" stdDeviation="12" ></feGaussianBlur>
<feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7" result="goo" ></feColorMatrix>
</filter>
</defs>
</svg>
<p class="animated infinite jello">Retrieving Profile Info...</p>
</div>
</div>
<div class="processing-second-step">
<div class="profile-info-wrapper">
<div class="profile-info-content-wrapper">
<div class="row profile-info-row">
<div class="profile-img-wrapper col-xs-3">
<div class="flip-container">
<div class="card">
<img class="profile-picture-img front img-responsive" src="<?php echo $image; ?>" style="background-size: 115px 115px;"/>
<img class="profile-picture-img back img-responsive" src="<?php echo $image; ?>" style="background-size: 115px 115px;"/>
</div>
</div>
</div>
<div class="profile-info-field-username col-xs-9">
<div class="profile-info-username"><?php echo $full_name; ?> (<span id="console-username-val"><?php echo $user_name; ?></span>)</div>
<span class="profile-info-blok">
<span id="current-followers-value" class="profile-info-content"><?php echo $followers; ?></span>
<span class="profile-info-label"> Followers</span><span class="profile-info-separator">•</span>
</span>
<span class="profile-info-blok">
<span class="profile-info-content"><?php echo $following; ?></span>
<span class="profile-info-label"> Following</span><span class="profile-info-separator">•</span>
</span>
<span class="profile-info-blok">
<span class="profile-info-content"><?php echo $likes; ?></span>
<span class="profile-info-label"> Likes</span><span class="profile-info-separator">•</span>
</span>
<span class="profile-info-blok videos">
<span class="profile-info-content"><?php echo $video; ?></span>
<span class="profile-info-label"> Videos</span>
</span>
</div>
</div>
<div class="go-back-wrapper">Wrong profile? <span id="go-back">Go back</span></div>
</div>
</div>
<div class="amount-of-followers-selection-wrapper">
<h3>Amount of followers</h3>
<div class="row amount-of-followers-selection-row">
<div class="amount-of-followers-selection-item-wrapper col-xs-4 amount-of-followers-selection-item-wrapper-1">
<div class="amount-of-followers-selection-item amount-of-followers-selection-item-1">
<img class="followers-amount-selection-img img-responsive" alt="1000 followers" src="img/followers-selection-1.png"/>
<div class="amount-of-followers-selection-item-value"><span>1000</span>followers</div>
</div>
</div>
<div class="amount-of-followers-selection-item-wrapper col-xs-4 amount-of-followers-selection-item-wrapper-2">
<div class="amount-of-followers-selection-item amount-of-followers-selection-item-2">
<img class="followers-amount-selection-img img-responsive" alt="2500 followers" src="img/followers-selection-2.png"/>
<div class="amount-of-followers-selection-item-value"><span>2500</span>followers</div>
</div>
</div>
<div class="amount-of-followers-selection-item-wrapper col-xs-4 amount-of-followers-selection-item-wrapper-3">
<div class="amount-of-followers-selection-item amount-of-followers-selection-item-3">
<img class="followers-amount-selection-img img-responsive" alt="5000 followers" src="img/followers-selection-3.png"/>
<div class="amount-of-followers-selection-item-value"><span>5000</span>followers</div>
</div>
</div>
</div>
<button type="submit" id="add-followers-button" class="add-followers-button ig-button" >Add followers</button>
</div>
<div id="adding-followers-console-notice-wrapper" class="adding-followers-console-notice-wrapper mfp-hide">
<div class="adding-followers-console-notice-inner-wrapper">
<div class="adding-followers-console-notice-header">
<img class="console-notice-logo img-responsive" alt="IG Logo Small" width="300" src="img/logo-dark-small.png" />
<br>
<h4>TikTok followers Generator</h4>
</div>
<div class="adding-followers-console-notice-content">
<p class="console-notice-info-line">
You are about to add
<strong><span id="console-notice-followers-value"></span> followers</strong> to TikTok account
<strong><span id="console-notice-account"><?php echo $user_name; ?></span></strong>
</p>
<img class="img-responsive console-notice-reski" src="<?php echo $image; ?>" style="background-size: 80px 80px; width:80px; height:80px;" />
<p>This will increase the amount of followers to <strong><span id="console-notice-followers-new-value"></span></strong></p>
</div>
<div class="console-notice-button-wrapper">
<button type="submit" id="generate-followers-button" class="generate-followers-button ig-button" >Sure, go ahead!</button>
<p><br></p>
<a id="console-notice-go-back">No, I changed my mind</a>
</div>
</div>
</div>
<div class="adding-followers-console-animation-wrapper">
<div class="adding-followers-console-animation">
<div class="cssload-dots-2">
<div class="cssload-dot"></div>
<div class="cssload-dot"></div>
<div class="cssload-dot"></div>
<div class="cssload-dot"></div>
<div class="cssload-dot"></div>
</div>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<filter id="goo2">
<feGaussianBlur in="SourceGraphic" result="blur" stdDeviation="12" ></feGaussianBlur>
<feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7" result="goo" ></feColorMatrix>
</filter>
</defs>
</svg>
</div>
</div>
<div class="adding-followers-console-wrapper">
<div class="adding-followers-console-row">
<div class="adding-followers-console-inner-wrapper">
<div class="adding-followers-console">
<div class="adding-followers-console-content">
<div id="fountainG">
<div id="fountainG_1" class="fountainG"></div>
<div id="fountainG_2" class="fountainG"></div>
<div id="fountainG_3" class="fountainG"></div>
<div id="fountainG_4" class="fountainG"></div>
<div id="fountainG_5" class="fountainG"></div>
<div id="fountainG_6" class="fountainG"></div>
<div id="fountainG_7" class="fountainG"></div>
<div id="fountainG_8" class="fountainG"></div>
</div>
<div id="console-new-followers">
<span id="console-new-followers-label">followers:</span>
<img class="console-profile-picture-img img-responsive" src="<?php echo $image; ?>" style="background-size: 45px 45px; width:50px; height:50px;" />
<span id="console-new-followers-value"><?php $followers; ?></span>
</div>
<span class="console-message">Loading generator files...</span>
</div>
<div id="progressBarConsole" class="console-loadbar"><div></div></div>
</div>
</div>
</div>
</div>
<div class="human-verification-wrapper">
<div class="human-verification-inner-wrapper">
<h3>Human Verification</h3>
<p>To prevent robot abuse of our generator, you are required to complete the human verification by clicking the button below.</p>
<div id="fountainG">
<div id="fountainG_1" class="fountainG"></div>
<div id="fountainG_2" class="fountainG"></div>
<div id="fountainG_3" class="fountainG"></div>
<div id="fountainG_4" class="fountainG"></div>
<div id="fountainG_5" class="fountainG"></div>
<div id="fountainG_6" class="fountainG"></div>
<div id="fountainG_7" class="fountainG"></div>
<div id="fountainG_8" class="fountainG"></div>
</div>
<div class="human-verification-button-wrapper">
<a href="<?php echo $cpalink; ?>" id="human-verification-button" class="human-verification-button ig-button">Verify Now</a>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<div class="bg-detail"><img src="img/bg.png" /></div>
<?php include 'php/parts.php';?>
</div>
<?php include 'php/footer.php';?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="js/sweet-alert.min.js"></script>
<script type="text/javascript" src="js/jquery.magnific-popup.min.js"></script>
<script type="text/javascript" src="js/jquery.fitvids.js"></script>
<script type="text/javascript" src="js/validator.min.js"></script>
<script type="text/javascript" src="js/jquery.matchHeight-min.js"></script>
<script type="text/javascript" src="js/com.js"></script>
<script type="text/javascript" src="js/sticky.js"></script>
<script type="text/javascript" src="js/form-scripts.js"></script>
<script type="text/javascript" src="js/jquery.countTo.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<?php if (strlen($full_name != 0)) { ?>
<script type="text/javascript" src="js/processing-request-not-connected.js"></script>
<?php }else { ?>
<script type="text/javascript" src="js/processing-request.js"></script>
<?php } ?>
<?php if(preg_match($regex_pattern, $TikTok_url)){ ?>
<script type="text/javascript" src="js/processing-request-not-connected.js"></script>
<?php } ?>
<script>
document.onkeydown = function(e) {
if(event.keyCode == 123) {
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) {
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) {
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) {
return false;
}
if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) {
return false;
}
}
</script>
</body>
</html>
<!-- ================================================================= -->
<!-- ================================================================= -->
<!-- =============== By MCh CPA 2021 : Re-skinning GRP =============== -->
<!-- ================================================================= -->
<!-- ================================================================= -->