Need Help With This Script..

Discussion in 'Programming' started by xtian, Feb 28, 2009.

  1. #1
    can someone help me how can i install this script?? i got this from a website.

    
    <title>NGINTIP FOTO PRIVATE PROFILE FRIENDSTER</title>
    <link rel="icon" href="fs.ico" type="image/x-icon"> 
    <center><b>NGINTIP FOTO PRIVATE PROFILE FRIENDSTER</B></CENTER><BR>
    <b>NOT ALWAYS WORK</b><br>
    Masukkan UID dari user FS yg mau di lihat fotonya<br>
    <form method=post action="?">
    <input name=url size=20 value="<?=$url;?>">
    <input type=submit value=GO-GO-GO>
    </form>
    <pre>
    <?
    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<count($a);$i++)
     {
     if((eregi('viewphotos.php',$a[$i])) && (eregi('img src=',$a[$i])))
      {
      $gambr=explode('><img src=',$a[$i]);
      $gambr1=explode('><',$gambr[1]);
      $gambar=$gambr1[0];
      }
    
    
     if((eregi('abAlbumPrivacy',$a[$i])) && (eregi('Public',$a[$i])))
      {
      $jumlahfoto=explode('<li>',$a[$i]);
      $jumlahfoto1=explode(' ',$jumlahfoto[1]);
      $jumlhfoto=$jumlahfoto1[0];
      $album= explode('abAlbumPrivacy-',$a[$i]);
      $idalbum=explode('">',$album[1]);
      $albm= $idalbum[0];
      //echo $gambar;
      echo "<a href=?uid=".$url."&alm=".$albm."&j=".$jumlhfoto."><img width=100 height=70 src=".$gambar." title=Public-Album-".$albm."--".$jumlhfoto."-foto></a>";
      //echo $albm.'<br>';
      }
      if((eregi('abAlbumPrivacy',$a[$i])) && (eregi('Private',$a[$i])))
      {
      $jumlh=explode('<li>',$a[$i]);
      $jumlh1=explode(' ',$jumlh[1]);
      $jumlah = $jumlh1[0];
      $albumx= explode('abAlbumPrivacy-',$a[$i]);
      $idalbumx=explode('"',$albumx[1]);
      $albmx= $idalbumx[0];
      echo "<a href=?uid=".$url."&almx=".$albmx."&j=".$jumlah."><img width=100 height=70 src=http://images.friendster.com/images/albums/requestAccessIcon.png title=Private-Album-".$albmx."--".$jumlah."-foto></a>";
      }
     }
    echo "<br>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 "<img src=".$rawurl.".jpg>\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 '<img src=http://photos.friendster.com/photos/11/11/'.$userid.'/1_'.$akhir.'.jpg><br>';
     $pidex=explode('"',$jancoklagi[0]);
     $pid=$pidex[0];
     $rid=$pidex[4];
     if($pid=='1'){echo '<img src=http://photos.friendster.com/photos/'.$angka11.'/'.$angka12.'/'.$uidgbr.'/1_'.$rid.".jpg>\n";}
     if($pid=='0'){echo '<img src=http://photos.friendster.com/photos/'.$angka11.'/'.$angka12.'/'.$uidgbr.'/0_'.$rid.".jpg>\n";}
     if(($pid !=='1') && ($pid !=='0')){echo '<img src=http://photos.friendster.com/photos/'.$angka11.'/'.$angka12.'/'.$uidgbr.'/'.$pid.$rid.".jpg>\n";}
     }
    flush();
     }
     }
    ?>
    
    
    
    PHP:

     
    xtian, Feb 28, 2009 IP
  2. Shoro

    Shoro Peon

    Messages:
    143
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Unless you're looking to hire someone to do this for you, you're looking for the PHP forum.
     
    Shoro, Feb 28, 2009 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    I Think just upload the php page with this code and go to it and it should work..
     
    Bohra, Feb 28, 2009 IP
  4. xtian

    xtian Peon

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    no im getting errors dont know why..
     
    xtian, Feb 28, 2009 IP
  5. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Since its not english cant understand a word and how exactly it should work
     
    Bohra, Feb 28, 2009 IP
  6. xtian

    xtian Peon

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    yeah bro. i cant understand it too..
     
    xtian, Feb 28, 2009 IP
  7. chmdznr

    chmdznr Active Member

    Messages:
    417
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    The language is in Indonesian (FYI: I'm Indonesian).
    Where did you get that script because it's my friend script?
    Basically, the script is used to show Friendster private profile album.
    The above script is not working anymore coz friendster has updated it's algorithm. But, we also has updated our script, so, we still has the working version which is not published.
    You can see the working version here: http://fs.Dibatam.Com

    Regards,
     
    chmdznr, Feb 28, 2009 IP
  8. xtian

    xtian Peon

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    hey bro chmdznr how can i get that script??

    thanks
     
    xtian, Feb 28, 2009 IP
  9. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #9
    Cool script. Thanks.
     
    Dondon2d, Mar 1, 2009 IP