MENU TAMBAHAN
';
if(!empty($_GET['genre'])){
$genrer=str_replace(' ',',',strtolower($_GET['genre']));
$genrer=str_replace('_',',',$genrer);
$genrer=str_replace('-',',',$genrer);
}else{
$q=queryencode($_GET['q']);
$artist = array('iwan fals','Sherina','Raisa','Ost Lagu','Lady gaga','Rihanna','Maudy Ayunda','merpati band','Gombloh','ahmad Dani','ecko show','Judika','armada','Adista','Dadali','Slanks','Ungu','Utopia','Kotak','Afgan','Nidji','Avril Lavigne','Geisha','Simple Plan','Cristina Perry','Katty Perri','Last Child','linkin park','ungu band','wali band','Dangdut terbaru','Lagu Aceh','lagu batak','lagu jawa','lagu pakpak','lagu karo');
$no = rand(0,count($artist));
$keyword = $artist[$no];
$q = $q ? $q : $keyword;
}
if(!empty($_GET['page'])){
$noPage=$_GET['page'];
$page=($noPage-1)*10;
}else{
$noPage='1';
$page='0';
}
if(!empty($_GET['genre'])){
$json=json_decode(ngegrab('http://api.soundcloud.com/tracks.json?genres='.$genres.'&limit=10&offset='.$page.'&offset=0&client_id=77ec4a0e70ef835e57efaf56677ea159'));
}else{
$json=json_decode(ngegrab('http://api.soundcloud.com/tracks.json?q='.str_replace(' ','-',$q).'&limit=10&offset='.$page.'&client_id=77ec4a0e70ef835e57efaf56677ea159'));
}
echo'';
if (!empty($json[0]->title)){
foreach($json as $list){
$id=$list->id;
if($song = $list->artwork_url)
{
$thumb = $song;
}
else
{
$thumb = '/data/icon/nothumb.png';
}
$permalink=$list->permalink;
$name=$list->title;
$time=gmdate($list->favoritings_count);
$genre=$list->genre;
$size=format_size(getfilesize(getlinkdl($id)));
$duration=format_time($list->duration/1000);
$site = 'http://'.$_SERVER['HTTP_HOST'].'';
echo' | '.$name.'.mp3
|
| Details | Downloads Mp3
Size: '.$size.' Duration: '.$duration.' Vote : '.$time.' Likes '; include'data/inc/iklan2.php'; echo' |
';}
echo '';
if(!empty($_GET['genre'])){
if ($noPage > 1) {echo' - ';}
if (!empty($json[9])) {echo' ';}
}else{
if ($noPage > 1) {echo' - ';}
if (!empty($json[9])) {echo'
';}
}
echo '';
}else{echo'Result Not Found, please use another keyword.
';}
include'data/inc/foot.php';
?>