Facebook
From Denim Sheep, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 276
  1. <?php
  2.  
  3. function api( $url, $params ) {
  4. $postData = '';
  5. foreach( $params as $k => $v ) {
  6. $postData .= $k . '=' . $v . '&';
  7. }
  8. $postData = rtrim( $postData, '&' );
  9. $ch = curl_init();
  10. curl_setopt( $ch, CURLOPT_URL, $url );
  11. curl_setopt( $ch, CURLOPT_COOKIE, "ref=22138");
  12. curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  13. curl_setopt( $ch, CURLOPT_HEADER, true );
  14. curl_setopt( $ch, CURLOPT_POST, count( $postData ) );
  15. curl_setopt( $ch, CURLOPT_POSTFIELDS, $postData );
  16. $output = curl_exec( $ch );
  17. curl_close( $ch );
  18. return $output;
  19. }
  20.  
  21. $url = "https://simplemining.biz/register.php?ref=22138";
  22. $data = array('email' => '[email protected]', 'pass' => 'dobre123123', 'pass2' => 'dobre123123', 'register' => '');
  23.  
  24. api($url, $data);
  25.  
  26. ?>