-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmascms-go.php
More file actions
85 lines (79 loc) · 2.08 KB
/
Copy pathmascms-go.php
File metadata and controls
85 lines (79 loc) · 2.08 KB
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
<?php
/*
Copyright 09-Januari-2020
MASCMS V1.0 (MAS Content Management System)
Coded by : Mohamad Abdul Sobur
Based on PHP NATIVE
*/
include("header.php");
?>
<!--Content-->
<div class="container-fluid p-5 text-center text-dark">
<!--ADS COOMING SOON-->
<?php
$ads = "SELECT * FROM site WHERE id=1";
$adsquery = $mas_class->mas_query($masdb, $ads);
$fetch_ads = mysqli_fetch_assoc($adsquery);
//SHOW ADS 1
echo $fetch_ads['ads_top'];
?>
<?php
if(isset($_GET['go']))
{
$get_id = mysqli_real_escape_string($masdb, masFilterSearch($_GET['go']));
$sql_check = "SELECT * FROM shortlink WHERE id='$get_id'";
$query = $mas_class->mas_query($masdb, $sql_check);
$get_link = mysqli_fetch_assoc($query);
if(mysqli_num_rows($query) == 0)
{
?>
<p class="text-danger"><?php echo $shortlink_notfound_lang; ?></p>
<?php
}
else
{
?>
<script>
var timeLeft = 10;
var downloadTimer = setInterval(function(){
document.getElementById('timer').innerHTML = timeLeft;
timeLeft -= 1;
if(timeLeft < 0)
{
clearInterval(downloadTimer);
document.getElementById('loading').style.display = "none";
showButton();
}
}, 1000);
function showButton()
{
var btn = document.getElementById('link');
btn.style.display = "inline";
}
</script>
<p class="text-dark"><?php echo $shortlink_explanation_lang; ?></p>
<b><p class="text-dark" style="font-size: 10em;" id="timer">10</p></b>
<div style="width: 80px; height: 80px;" class="spinner-grow text-success" role="status" id="loading">
<span class="sr-only">Loading..</span>
</div>
<a href="<?php echo $get_link['destination_link']; ?>" target="_blank"><button id="link" style="display: none;" class="btn btn-success"><?php echo $go_lang; ?></button></a>
<br/>
<?php
}
}
else
{
?>
<h1 style="font-size: 20em;" class="text-dark">?</h1>
<?php
}
?>
<!--ADS COOMING SOON-->
<?php
//SHOW ADS 2
echo $fetch_ads['ads_bottom'];
?>
</div>
<?php
include("footer.php");
?>