File size: 3.67Kb
<?php
include 'includes/func.php';
include 'includes/info.php';
$yf=ngegrab('https://www.googleapis.com/youtube/v3/videos?key=AIzaSyBnlKXr67V4r8FhChDj-jJU6M4snYNEYSE&part=snippet,contentDetails,statistics,topicDetails&id='.$_GET['id'].'');
$yf=json_decode($yf);
if($yf){
foreach ($yf->items as $item)
{
$name=$item->snippet->title;
$dest = $item->snippet->description;
$date = dateyt($item->snippet->publishedAt);
$channelId = $item->snippet->channelId;
$chtitle = $item->snippet->channelTitle;
$ctd=$item->contentDetails;
$duration=format_time($ctd->duration);
$hd = $ctd->definition;
$st= $item->statistics;
$views = $st->viewCount;
$likes = $st->likeCount;
$dislike = $st->dislikeCount;
$favoriteCount = $st->favoriteCount;
$commentCount = $st->commentCount;
{$title='Download '.$name.' | YoutubeLK.TK Video And Mp3';
echo'<meta property="og:image" content="http://ytimg.googleusercontent.com/vi/'.$_GET['id'].'/hqdefault.jpg"/>';
$dll = file_get_contents('http://ip.youtubelk.tk/sl/in.php?v='.$_GET['id'].'&type=Download');
$dll2 = file_get_contents('http://ip.youtubelk.tk/01_download1.php?v='.$_GET['id'].'&type=Download');
}
$tag=$name;
$tag=str_replace(" ",",", $tag);
$dtag=$des;
include 'includes/config.php';
echo '<div class="body_contents"><div class="left-content">
<h2 class="main-menu"><div id="tab">'.$name.'</div></h2><div class="list" align="center">';
echo '<iframe src="https://www.youtube.com/embed/'.$_GET['id'].'"frameborder="0" height="270" width="400" allowfullscreen></iframe><br/>';
echo '<img src="http://ytimg.googleusercontent.com/vi/'.$_GET['id'].'/1.jpg"/><img src="http://ytimg.googleusercontent.com/vi/'.$_GET['id'].'/2.jpg"/><img src="http://ytimg.googleusercontent.com/vi/'.$_GET['id'].'/3.jpg"/>';
echo '</div>';
echo '<div class="lines">';
echo '<table>';
echo '<tr valign="top">';
echo '<td width="30%">Title</td>';
echo '<td>:</td>';
echo '<td>'.$name.'</td>';
echo '</tr>';
echo '<tr valign="top">';
echo '<td width="30%">Duration</td>';
echo '<td>:</td>';
echo '<td>'.$duration.'</td>';
echo '</tr>';
echo '<tr valign="top">';
echo '<td width="30%">Extensions</td>';
echo '<td>:</td>';
echo '<td>Mp3 / Mp4 /3gp / WebM / Flv VideoType: '.$hd.'</td>';
echo '</tr>';
echo '<tr valign="top">';
echo '<td width="30%">Channel</td>';
echo '<td>:</td>';
echo '<td><a href="/channel.php?id='.$channelId.'" target="_blank">'.$chtitle.'</a></td>';
echo '</tr>';
echo '<tr valign="top">';
echo '<td width="30%">Uploaded</td>';
echo '<td>:</td>';
echo '<td>'.$date.'</td>';
echo '</tr>';
echo '<tr valign="top">';
echo '<td width="30%">Views</td>';
echo '<td>:</td>';
echo '<td>'.$views.'</td>';
echo '</tr>';
echo '<tr valign="top">';
echo '<td width="30%">Likes</td>';
echo '<td>:</td>';
echo '<td>'.$likes.'</td>';
echo '</tr>';
echo '<tr valign="top">';
echo '<td width="30%">Description</td>';
echo '<td>:</td>';
echo '<td>'.$des.'</td>';
echo '<tr valign="top">';
echo '<td width="30%">Source</td>';
echo '<td>:</td>';
echo '<td><a href="http://youtube.com/watch?v='.$_GET['id'].'" target="_blank" title="View This Video On Youtube">YouTube.com</a></td>';
echo '</table>';
echo '</div>';
echo '<div class="download" align="center">Download Video 1</div><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- header_auto -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7658582298800163"
data-ad-slot="4112880305"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>';
echo '<div class="lines">'.$dll2.'</div>';
echo '<div class="download" align="center">Download Video 2</div>';
echo '<div class="lines">'.$dll.'</div>';
}
}
include 'includes/foot.php';
?>