Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // check that the request comes from PayGol server
- if(!in_array($_SERVER["HTTP_CF_CONNECTING_IP"],
- array('109.70.3.48', '109.70.3.146', '109.70.3.58'))) {
- header("HTTP/1.0 403 Forbidden");
- die("Error: Unknown IP");
- }
- //Get parameters from PayGol
- $message_id = $_GET['message_id'];
- $service_id = $_GET['service_id'];
- $shortcode = $_GET['shortcode'];
- $keyword = $_GET['keyword'];
- $message = $_GET['message'];
- $sender = $_GET['sender'];
- $operator = $_GET['operator'];
- $country = $_GET['country'];
- $custom = $_GET['custom'];
- $points = $_GET['points'];
- $price = $_GET['price'];
- $currency = $_GET['currency'];
- require('./x_habbo_servercore/CORE-QatIbJqiE3d8fayOMfWBmYxYP.php');
- require('./x_habbo_servercore/SESSION-34AN5Tzx9z8s6SSOe4u6LvZbK.php');
- /*
- * MySQL info
- */
- $MySQL_host = 'localhost';
- $MySQL_user = '';
- $MySQL_pw = '';
- $MySQL_db = '';
- /* Dont edit under here */
- $MySQLLink = @mysql_connect($MySQL_host, $MySQL_user, $MySQL_pw);
- unset($MySQL_pw);
- if (!$MySQLLink) throw new Exception('ERR 01');
- if (!@mysql_select_db($MySQL_db, $MySQLLink)) throw new Exception('ERR 02');
- mysql_query("UPDATE `users` SET `rank` = 2, `vip` = 1 WHERE `id` = '" . $myrow['id'] . "'", $MySQLLink);
- mysql_close($MySQLLink);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement