-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
71 lines (61 loc) · 1.97 KB
/
index.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
<?php
error_reporting(0);
include_once('InstagramDownload.php');
use Ayesh\InstagramDownload\InstagramDownload;
if (isset($_GET['btngetimage'])) {
$url = $_GET['txturl'];
if ($url!=null)
{
//echo $url;
$client=new InstagramDownload($url);
$type = $client->getType();
$url1 = $client->getDownloadUrl();
}
else
{
header("index.php");
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>InstaZx - Instagram Image Downloader</title>
</head>
<body>
<form method="get">
<table border="5px" cellpadding="5" cellspacing="5" align="center" width="500px">
<tr>
<th colspan="2"><a href="index.php" style="text-decoration:none; ">InstaZx - Instagram Image Downloader</a></th>
</tr>
<tr>
<td colspan="2">
<h3 align="center">Instagram account must be public</h3>
Step 1 : Copy post link from Instagram and paste it in Textbot.<br>
Step 2 : Click "Get Image" Button.<br>
Step 3 : Then Download Image Link will appear Click on it and download photo.<br>
Made by - Manish       Instagram - @vminkook_manish
</td>
</tr>
<tr>
<td>Enter Link<input type="text" name="txturl" placeholder="Enter Instagram Image(Post) URL"></td>
<td><button name="btngetimage">Get Image</button></td>
</tr>
<tr>
<?php
if (isset($_GET['btngetimage'])) {
if ($type=="image")
{
echo '<td colspan="2"><a href="'.$url1.'">Download Image</a></td>';
}
else
{
echo '<td colspan="2">Paste Link in Textbot</td>';
}
}
?>
</tr>
</table>
</form>
</body>
</html>