NOT ALWAYS WORK
Masukkan UID dari user FS yg mau di lihat fotonya
set_time_limit(0);
$url=str_replace('http://profiles.friendster.com/','',$_POST[url]);
if((isset($url)) && ($url !== '')){
//$ab=explode('/',$url);
//if(eregi('e1',$url)){$userid=$ab[7];}
//if(!eregi('e1',$url)){$userid=$ab[6];}
$link='http://www.friendster.com/viewalbums.php?uid='.$url;
$data=implode('',file($link));
$a=explode("\n",$data);
//print_r($a);
for($i=0;$i{
if((eregi('viewphotos.php',$a[$i])) && (eregi('img src=',$a[$i])))
{
$gambr=explode('><',$gambr[1]);
$gambar=$gambr1[0];
}
if((eregi('abAlbumPrivacy',$a[$i])) && (eregi('Public',$a[$i])))
{
$jumlahfoto=explode('
$jumlahfoto1=explode(' ',$jumlahfoto[1]);
$jumlhfoto=$jumlahfoto1[0];
$album= explode('abAlbumPrivacy-',$a[$i]);
$idalbum=explode('">',$album[1]);
$albm= $idalbum[0];
//echo $gambar;
echo "";
//echo $albm.'
';
}
if((eregi('abAlbumPrivacy',$a[$i])) && (eregi('Private',$a[$i])))
{
$jumlh=explode('
$jumlh1=explode(' ',$jumlh[1]);
$jumlah = $jumlh1[0];
$albumx= explode('abAlbumPrivacy-',$a[$i]);
$idalbumx=explode('"',$albumx[1]);
$albmx= $idalbumx[0];
echo "";
}
}
echo "
Klik pada gambar diatas untuk melihat isi album";
}
$uid=$_GET[uid];
$alm=$_GET[alm];
$almx=$_GET[almx];
$j=$_GET[j];
if((isset($uid)) && (isset($alm)))
{
$jb=floor($j/20);
for($l=0;$l<=$jb;$l++)
{
flush();
$ajax="http://www.friendster.com/photolist_ajax.php?uid=".$uid."&a=".$alm."&page=".$l;
$ajaxpage=implode('',file($ajax));
$belahajax=explode('}',$ajaxpage);
for($i=0;$i<(count($belahajax)-2);$i++)
{
$raw=explode('raw_url":"',$belahajax[$i]);
$raw2=explode('"',$raw[1]);
$rawurl=str_replace('\\','',$raw2[0]);
echo "\n";
}
flush();
}
}
if((isset($uid)) && (isset($almx)))
{
$jb=floor($j/20);
for($l=0;$l<=$jb;$l++)
{
flush();
$ajax='http://www.friendster.com/photolist_ajax.php?uid='.$uid.'&a='.$almx.'&page='.$l;
$ajaxpage=implode('',file($ajax));
$abc=explode('}',$ajaxpage);
for($k=0;$k<(count($abc)-2);$k++)
{
$angka=explode('image-server.php',$abc[$k]);
$angka1=explode('/',$angka[1]);
$angka11=str_replace('\\','',$angka1[1]);
$angka12=str_replace('\\','',$angka1[2]);
$uidgbr=str_replace('\\','',$angka1[3]);
$jancok=explode('pid":"',$abc[$k]);
$jancoklagi=explode('","album_id',$jancok[1]);
//$akhir=str_replace('","rid":"','',$jancoklagi[0]);
//echo '
';
$pidex=explode('"',$jancoklagi[0]);
$pid=$pidex[0];
$rid=$pidex[4];
if($pid=='1'){echo '\n";}
if($pid=='0'){echo '\n";}
if(($pid !=='1') && ($pid !=='0')){echo '\n";}
}
flush();
}
}
?>