document.write('(.+?)#siu','',$file);
// Mulai ambil dari tag
$mulai = strstr($file, '');
$ambil = explode('',$mulai);
$sedot = explode('',$mulai);
$judul = explode('', $file);
// Menampilkan Judul
echo ''.potong($judul[1],'','').'
';
// Menampilkan lirik lagu
echo ''.potong($ambil[1],'
','
').'
';
// Menampilkan link donlod
echo 'SEDOT DI SINI
';
echo 'Back';
exit();
}
// AND
$grab = "http://m.gudanglagu.com";
$file = file_get_contents($grab);
$link = explode('class="tllink"',$file);
for($i = 1; $i < 100 ; $i++){
// Mengambil link lagu
$array[] = potong($link[$i],'href="http://m.gudanglagu.com/download.php?id=','"');
// Mengambil Judul lagu
$array1[] = potong($link[$i],'">','');
// Binggung juga q ini buat apa ya ??? :D
$array2[] = potong($link[$i],'','');
}
if ($_GET['hal'])
$hal = $_GET['hal'];
else $hal = 0;
$jumperhal = 10;
$total = count($array);
$end = $hal + $jumperhal;
if ($end > $total)
$end = $total;
// Menaplikan konten
for($i = $hal; $i < $end ; $i++){
echo ''.$array1[$i].' '.$array2[$i].'
';
}
// PAGING
if ($hal > 1){
echo 'back ';
}
if ($end < $total){
echo 'Next';
}
//END
// FUNCTION POTONG INTI
function potong($content,$start,$end){
if($content && $start && $end) {
$r = explode($start, $content);
if (isset($r[1])){
$r = explode($end, $r[1]);
return $r[0];
}
return '';
}
}
';
?>')