Ver o tópico anterior Ver o tópico seguinte Ir em baixo Mensagem [Página 1 de 1]

#1

Bee
Bee

Administrador

Administrador
[Você precisa estar registrado e conectado para ver esta imagem.]

Código:
<html><head><title>Social Park</title></head><body>
<link rel="stylesheet" type="text/css" href="Style.css" />
<b>By:</b> <a href="http://www.elitepvpers.com/link/?http://www.facebook.com/de.losredo">Haqny</a>
<center>
<form method="post">
    <p>
        <label>ID FB:</label>
        <input name="fbid" value="<?PHP echo $_POST['fbid']?>"/>
    </p>   
    <p>
        <label>GEMS</label>
        <input name="gems" value="<?PHP echo $_POST['gems']?>"/>
    </p>
    <p>
        <label>GOLD</label>
        <input name="gold" value="<?PHP echo $_POST['gold']?>"/>
    </p>

    <p>
        <label>XP</label>
        <input name="xp" value="<?PHP echo $_POST['xp']?>"/>
    </p>
    <p>
        <label>LEVEL</label>
        <input name="level" value="<?PHP echo $_POST['level']?>"/>
    </p>
    <input type="submit" name="kirim" value="Kirim" />
</form>

<?php
if(isset($_POST['kirim'])){
    $jumlah_gem=$_POST['gems'];
    $jumlah_gold=$_POST['gold'];
    $jumlah_xp=$_POST['xp'];
    $jumlah_level=$_POST['level'];
    $result=sendPost("http://dynamic.socialpoint.es/appsfb/socialpark/srv/get_player_info.php?USERID=".$_POST['fbid'],null);
    $data = json_decode($result,true);
    $str='';
    //$str=$payload[1].'<br/>';
    $str .= "PENGISIAN SUKSES <br/>";
    $str .= "<br/>==============SEBELUM==============<br/>";
    $str .= "NAMA : ".$data['playerInfo']['name']."<br/>";
    $str .= "GEMS : ".number_format($data['playerInfo']['cash'],0,',','.')."<br/>";
    $str .= "GOLD : ".number_format($data['playerInfo']['coins'],0,',','.')."<br/>";
    $str .= "XP : ".number_format($data['playerInfo']['xp'],0,',','.')."<br/>";
    $str .= "LEVEL : ".number_format($data['playerInfo']['level'],0,',','.')."<br/>";
    $cmd[]=array('cmd'=>'set_variables','args'=>array($data['playerInfo']['coins']+$jumlah_gold,$data['playerInfo']['cash']+$jumlah_gem,$data['playerInfo']['xp']+$jumlah_xp,$jumlah_level));
    $res=sendCommand($_POST['fbid'],$cmd);
    //if($res){
    $result=sendPost("http://dynamic.socialpoint.es/appsfb/socialpark/srv/get_player_info.php?USERID=".$_POST['fbid'],null);
    $data = json_decode($result,true);
    $str .= "<br/>==============SETELAH==============<br/>";
    $str .= "NAMA : ".$data['playerInfo']['name']."<br/>";
    $str .= "GEMS : ".number_format($data['playerInfo']['cash'],0,',','.')."<br/>";
    $str .= "GOLD : ".number_format($data['playerInfo']['coins'],0,',','.')."<br/>";
    $str .= "XP : ".number_format($data['playerInfo']['xp'],0,',','.')."<br/>";
    $str .= "LEVEL : ".number_format($data['playerInfo']['level'],0,',','.')."<br/>";
    $str .= "====================================<br/>";
    $str .= "PENGISIAN BERHASIL, silahkan check Bang.".$data['accountInfo']['publicState']['name']."<br/>";
    //}
    echo $str;
}
function sendPost($url,$data=null){
    if($data!=null){
        $postdata=http_build_query($data);
        $opts = array('http' =>
            array(
                'method'  => 'POST',
                'timeout' => 30,
                'header'  => "Content-type: application/x-www-form-urlencoded\r\n"."Content-Length: ".strlen($postdata)."\r\n",
                'content' => $postdata
            )
        );
    }else $opts = array('http'=>array('timeout'=>30));
    $result=file_get_contents($url,false,stream_context_create($opts));
    return $result;
}
function sendCommand($fbid,$cmd){
        $cmd = json_encode(array('commands'=>$cmd,'tries'=>1,'first_number'=>1));
        $cmd=array('data'=>$cmd);
        $result=sendPost("http://dynamic.socialpoint.es/appsfb/socialpark/srv/command.php?USERID=".$fbid,$cmd);
        $result = json_decode($result,true);
        return $result;



[Você precisa estar registrado e conectado para ver esta imagem.]

Ver o tópico anterior Ver o tópico seguinte Voltar ao Topo Mensagem [Página 1 de 1]