-
Notifications
You must be signed in to change notification settings - Fork 0
/
process.php
63 lines (44 loc) · 1.58 KB
/
process.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
<?php
include('header.php');
if( !empty($_POST['my-link']) ){
$link = $_POST['my-link'];
$username = "Example"; // Enter Your Name
$uri = base64_decode("aHR0cHM6Ly9hcGkuZmlsZWtpdC54eXovc2VydmVyL2NyZWF0ZS5waHA=");
$link = $uri.'?user='.$username.'&go='.$link;
$con = file_get_contents($link);
$data = json_decode($con);
$error = $data->error;
if ($error == 'false') {
$website = 'https://'.$_SERVER['HTTP_HOST'].'/';
$id = $data->file_id;
$view = $website.'view/'.$id;
echo '<br><br>
<div class="row">
<div class="col-xl-10 pa-0">
<div class="tab-content mt-50">
<div class="tab-pane fade show active" role="tabpanel">
<div class="container">
<div class="card p-4">
<h5><i style="color:green;" class="fa fa-link"></i> YOUR LINK GENERATED</h5>
<hr>
<div style="display:black;">
<div class="well p-2">
<h3 style="font-size:16px;" class="badge badge-success">File Link</h3>
<a style="font-size:18px;" href="'.$view.'">'.$view.'</a>
<br>
<h3 style="font-size:16px;" class="badge badge-success">Embed Link</h3>
<a style="font-size:18px;" href="'.$website.'embed/'.$id.'">'.$website.'embed/'.$id.'</a>
<br>
</div>
<br>
</div></div></div></div></div></div><br>';
} else {
header("location: /?wrong");
}
}
else {
header("location: /?empty");
}
echo "</div><br><br>";
include('footer.php');
?>