Advertisement
Guest User

Untitled

a guest
Apr 21st, 2012
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. <?php
  2. // check that the request comes from PayGol server
  3. if(!in_array($_SERVER["HTTP_CF_CONNECTING_IP"],
  4. array('109.70.3.48', '109.70.3.146', '109.70.3.58'))) {
  5. header("HTTP/1.0 403 Forbidden");
  6. die("Error: Unknown IP");
  7. }
  8.  
  9.  
  10. //Get parameters from PayGol
  11. $message_id = $_GET['message_id'];
  12. $service_id = $_GET['service_id'];
  13. $shortcode = $_GET['shortcode'];
  14. $keyword = $_GET['keyword'];
  15. $message = $_GET['message'];
  16. $sender = $_GET['sender'];
  17. $operator = $_GET['operator'];
  18. $country = $_GET['country'];
  19. $custom = $_GET['custom'];
  20. $points = $_GET['points'];
  21. $price = $_GET['price'];
  22. $currency = $_GET['currency'];
  23.  
  24. require('./x_habbo_servercore/CORE-QatIbJqiE3d8fayOMfWBmYxYP.php');
  25. require('./x_habbo_servercore/SESSION-34AN5Tzx9z8s6SSOe4u6LvZbK.php');
  26.  
  27. /*
  28. * MySQL info
  29. */
  30. $MySQL_host = 'localhost';
  31. $MySQL_user = '';
  32. $MySQL_pw = '';
  33. $MySQL_db = '';
  34. /* Dont edit under here */
  35.  
  36. $MySQLLink = @mysql_connect($MySQL_host, $MySQL_user, $MySQL_pw);
  37. unset($MySQL_pw);
  38. if (!$MySQLLink) throw new Exception('ERR 01');
  39. if (!@mysql_select_db($MySQL_db, $MySQLLink)) throw new Exception('ERR 02');
  40.  
  41. mysql_query("UPDATE `users` SET `rank` = 2, `vip` = 1 WHERE `id` = '" . $myrow['id'] . "'", $MySQLLink);
  42. mysql_close($MySQLLink);
  43.  
  44.  
  45. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement