İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

Bunu Çözene Facebook sayfamdan 1 Baglantı Hediye

bycoders

0
İyinet Üyesi
Katılım
11 Ocak 2011
Mesajlar
152
Reaction score
1
arkadaşlar bu adresdeki gibi http://www.totallyfarmville.com/LostCow.php bunun aynısından yapmak istiyorum fakat kodları bi türlü birleştiremedim


çözebilene 100k yabancı facebook sayfamdan istedigi bir baglantı paylaşıyorum

kodlar
kod1 bu
Kod:
<?php 

$url = "lonelycow.php?owner_id=100001228211500&lonely_cow_id=642a63e29e761f7a6f66dc11ee417129&animalType=calf_wreath&lonely_cow_sig=7537761665e2ff6f26b5ffc3cf0329c7";
$FBID = ""; 
$CID = ""; 
$CSID = ""; 

$arr = parse_url($url); 
$parameters = @$arr["query"]; 
parse_str($parameters, $arr); 
print_r(parseValues($url)); 

function parseValues ($text) { 
    $values = array(); 
    if (preg_match_all('/([^=\s]+)=("(?P<value1>[^"]+)"|' . '\'(?P<value2>[^\']+)\'|(?P<value3>.+?)\b)/', $text, $matches, PREG_SET_ORDER)) 
        foreach ($matches as $match) 
            $values[trim($match[1])] = trim(@$match['value1'] . @$match['value2'] . @$match['value3']); 
    return $values; 
} 

function hashSig($Sig, $aType) 
{ 
  $SECRET_KEY = "farmville1is4the3best4game4ever"; 
  $salt = "8415"; 
  $hash = md5 ($Sig . $SECRET_KEY . $aType . $salt); 
  return md5($hash); 
} 
?> 

<?php 

$Animals = "pony_swiss cat_himalayan duck_belted uglyduck calf_disco calf_wreath calf_candycane calf_autumn calf_purple calf_mmblue calf_robot calf_gelbvieh calf_longhorn_brown calf_simmental calf_tuscan calf_neapolitan calf_fanpage calf_longhorn calf_pinkpatch calf_shamrock calf_belted calf_redbrown calf_red calf_brownchocolate calf_green calf_groovy calf_holstein calf_pink calf_brown calf bull"; 


$arrAnimals = explode(" ", $Animals); 
for ($i = 0; $i < count($arrAnimals); $i++) { 
    echo "$arrAnimals[$i]=" . 
    hashSig($arrAnimals[$i], "fark") . "\n"; 
    
} 

function hashSig($Sig, $aType) 
{ 
  $SECRET_KEY = "farmville1is4the3best4game4ever"; 
  $salt = "8415"; 
  $hash = md5 ($Sig . $SECRET_KEY . $aType . $salt); 
  
  return md5($hash); 
} 
?>


kod2 buymus
Kod:
<?PHP



    if ( isset ( $_POST['convert'] ) )                

    //if the form was submitted

    {

          $link =  $_POST['link'];                        

    //get the input from the post variable



       if (empty($link))                                

    //is there a link to convert

       {

                    echo('You did not provide a link to convert.');

    //if there is no string, display this error



            } else {



        list($FBID, $CID, $Temp, $CSIG) = explode("&", $link,6);

    // split link for conversion



          $tmp = explode("=",$FBID);

    // split users facebook id from link

          $FBID =($tmp[1]);

          $tmp = '';

          $tmp = explode("=",$CID);

    // split lonely cow id from link

          $CID = ($tmp[1]);

          $tmp = '';  



          $Animals = "calf_heart pony_swiss cat_himalayan duck_belted uglyduck calf_disco calf_wreath calf_candycane calf_autumn calf_purple calf_mmblue calf_robot calf_gelbvieh calf_longhorn_brown calf_simmental calf_tuscan calf_neapolitan calf_fanpage calf_longhorn calf_pinkpatch calf_shamrock calf_belted calf_redbrown calf_red calf_brownchocolate calf_green calf_groovy calf_holstein calf_pink calf_brown calf bull";



             $arrAnimals = explode(" ", $Animals);

    // loop through $Animals array and echo links to form

               for ($i = 0; $i < count($arrAnimals); $i++) {

                echo "http://apps.facebook.com/onthefarm/lonelycow.php?owner_id=$FBID&lonely_cow_id=$CID&animalType=$arrAnimals[$i]&lonely_cow_sig=" . hashSig($arrAnimals[$i], $CID) . "<br />\n";

    //echo the converted links



       }

    }

    }



    function converterform()

    //form for the converter

    {

      echo '

           <form name="convert" method="post" action="LostCowConverter.php">

        <input name="link" type="text" id="link" value="" ><br>

        <input name="convert" type="submit" id="convert" value="Convert">

           </form>

          ';

    }



    function hashSig($Sig, $aType)

    //hash signature generation

    {

      $SECRET_KEY = "farmville1is4the3best4game4ever";

      $salt = "8415";

      $hash = md5 ($Sig . $SECRET_KEY . $aType . $salt);

      return md5($hash);

    }



    function parseValues ($text) {

    // parse url query parameter values

        $values = array();

        if (preg_match_all('/([^=\s]+)=("(?P<value1>[^"]+)"|' . '\'(?P<value2>[^\']+)\'|(?P<value3>.+?)\b)/', $text, $matches, PREG_SET_ORDER))

            foreach ($matches as $match)

                $values[trim($match[1])] = trim(@$match['value1'] . @$match['value2'] . @$match['value3']);

        return $values;

    }



    converterform()

    //executes the converter function and prints the html form

    ?>
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Üst