Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <b>Criminal Case</b>
- <form method="POST" action="">
- <p>UserId :<input type="text" name="fbid"></p>
- <p>Signature :<input type="text" name="signature"></p>
- <input type="submit" name="sub" value="submit">
- <?php
- function procesData($fbid,$sn){
- $getHash = json_encode(array('case_id'=>2,'revision'=>44,'stage_id'=>1011,'user'=>$fbid,'ho_items_found'=>6,'hints_used'=>0,'time_spent'=>228,'score'=>370100));
- $doneHash = md5($getHash);
- $inParams = json_encode(array('case_id'=>2,'revision'=>44,'stage_id'=>1011,'user'=>$fbid,'ho_items_found'=>6,'hints_used'=>0,'time_spent'=>228,'score'=>370100,'sig'=>$doneHash,'apply_special_event'=>false,'six_items_time'=>228));
- $params = json_encode(array('id'=>1,'params'=>$inParams,'action'=>"endStage",'signature'=>$sn));
- $sendParams = array('query'=>$params);
- sendData('https://imabigfanof.criminalcasegame.com/bridge.php',$sendParams);
- }
- function sendData($url,$data){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- if($data!=null){
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($data));
- }
- $result = curl_exec ($ch);
- echo $result;
- curl_close ($ch);
- return $result;
- }
- if(isset($_POST['sub'])){
- procesData($_POST['fbid'],$_POST['signature']);
- }
- ?>
Add Comment
Please, Sign In to add comment