Snack's 1967
WapMaster
31-08-26 (00:42)
,sobat...
Information
Admin[Off]
Motto :
""
Result for '.$q.'';} else{echo'
Result for Popular videos
';} $qu=$q; $qu=str_replace(" ","+", $qu); $qu=str_replace("-","+", $qu); $qu=str_replace("_","+", $qu); if(!empty($_GET['page'])){$noPage = $_GET['page']; } else{$noPage = 1;} if($_GET['page'] > 1){$yesPage=1+(($_GET['page']-1)*5);} else{$yesPage='1';} $grab=ngegrab('https://gdata.youtube.com/feeds/api/videos?q='.$qu.'&max-results=5&v=2&alt=jsonc&start-index='.$yesPage.''); $json = json_decode($grab); $responada = $json->data->items; $respon = $json->data->items->totalItems; if (!empty($responada)) {$jumlah = $json->data->totalItems; $jumlah=str_replace(',','',$jumlah); foreach($json->data->items as $hasil) {$name = $hasil->title; $ln=preg_replace("/[^A-Za-z0-9[:space:]]/","$1",$name); $ln=str_replace(' ','-',$ln); $link = $hasil->id; $duration = $hasil->duration; $tgl = $hasil->uploaded; $date = dateyt($tgl); $rating = $hasil->duration; $rate=substr($rating,0,1); $durasi=format_time($duration); echo '';} if(!empty($jumlah)){$dataPerPage = 5; $jumData = $jumlah; $jumPage1 = ceil($jumData/$dataPerPage); if($jumPage1>199){$jumPage='199';}else{$jumPage = ceil($jumData/$dataPerPage);} echo'
'; if(!empty($_GET['q'])){$next='/search/'.$_GET['q'].'/page/'.($noPage+1).''; $prev='/search/'.$_GET['q'].'/page/'.($noPage-1).'';}else{$next='/page/'.($noPage+1).''; $prev='/page/'.($noPage-1).'';} if ($noPage > 1) {echo'« Prev ';} else{echo '« Prev ';} if ($noPage < $jumPage) {echo'- Next »';} else {echo '- Next »';} echo'
';}} if(!empty($_GET['q']) AND empty($_GET['page'])){$user_query = ''.$_GET['q'].' '; write_to_file($user_query);} echo $foot; ?>
Home
Ganti Tema :