Location: PHPKode > scripts > Mobile Mp3 Script > freescript/lagu.4shared2.server.php
<?php
include_once('function.php');

if (!function_exists("openurl")) {
include "Snoopy.class.php";
function openurl($url, $referer = "http://www.google.com/firefox?client=firefox-a&rls=org.mozilla:fr:official"){
  $snoopy = new Snoopy;
  $snoopy->agent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18";
  $snoopy->referer = $referer;
  if ($snoopy->fetch($url)){
    return $snoopy->results;
    } else {
      return false;
    }                                                                          
  }
}

$site = openurl('http://www.google.com/cse?as_q=site:4shared.com/mp3/+"KB"+"File%20name:"+'.$ser.'&start='.$p.'');  
$res = strstr($site,'<div align="center">');
$i = 1;
while ( $i <= 10 ){
		
$res = strstr($res,'<a class="l"');
$urlll = extstr3($res,"return curwt(this, '","'");
$id = extstr3($urlll,'mp3/','/');
$url = "http://4shared.com/img/".$id."/dlink__2Fdownload_2F".str_replace('_','_5F',$id)."/preview.mp3";
$name = extstr3($res,')">','<table cellpadding="0" cellspacing="0" border="0">');
$name = str_replace('<b>','',$name);
$name = str_replace('</b>','',$name);
$name = explode('-',$name);
$name = $name[0].$name[1];
$dotmp3 = preg_match('/.mp3/i',$name);
$name = explode('.mp3',$name);
$name = $name[0];
$size = extstr3($res,'<span class="s">','<b>KB</b>'); 
$size = str_replace('<br>  ','',$size); 
$size = substr($size, -5);  
$res = strstr($res,'<td class="j">');
$link = "dl.php?name=$name&url=$url";

if($name){

$rss .= "1";

if ($i&1) {

$idc = "";

}else{

$idc = "odd";

}

?>

	<table id="products">

<tr class="<?=$idc?>">

	    		<td><p><a href="<? echo $link;?>">Download : <?=$name;?></a> (<?=$size;?> KB)</p></td>

</tr>

<?}
$i++;
}
?></table>
Return current item: Mobile Mp3 Script