-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetlink.php
30 lines (25 loc) · 1.05 KB
/
getlink.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
<?php
include("connect.php");
$no = $_POST['no'];
//$no="9";
$query = mysqli_query($con,"select * from sharelink order by id DESC");
while($result=mysqli_fetch_assoc($query))
{
$link=$result['link'];
$tag=$result['tag'];
$password=$result['password'];
$id=$result['id'];
if($id<=$no)
{
break;
}
else if($password==NULL)
{
echo "<div id=\"".$id."\" class=\"card displaylink\"><span class=\"card-title\">".$tag."</span><div class=\"card-action \"><u><a class=\"displaylink2\" href=\"".$link."\" target=\"_blank\">".$link."</a></u></div></div>";
}
else
{
echo "<div id=\"".$id."\" class=\"card displaylink\"><span class=\"card-title\">".$tag."</span><div class=\"card-action \"><div class=\"row\"><div class=\"input-field col s12 \" id=\"passwordlink\"><input id=\"pass".$id."\" type=\"password\" class=\"validate\" onkeypress=\"if(event.keyCode == 13)getlink(".$id.");\"><label for=\"password\">ENTER THE PASSWORD TO UNLOCK THE LINK</label><button onclick=\"getlink(".$id.");\">unlock</button></div></div></div></div>";
}
}
?>