SHARE
TWEET

Untitled

a guest Feb 16th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     $servername = "localhost";
  3.     $username = "elhittedmi?xd";
  4.     $password = "elhittedmi?xd";
  5.     $dbname = "elhittedmi?xd";
  6.  
  7.     // Create connection
  8.     $conn = new mysqli($servername, $username, $password, $dbname);
  9.     // Check connection
  10.     if ($conn->connect_error) {
  11.         die("Connection failed: " . $conn->connect_error);
  12.     }
  13.  
  14.     $addresses = array('Nemn├ęzedmeg');
  15.  
  16.     if(!in_array($_SERVER['REMOTE_ADDR'], $addresses))
  17.         die('Nem csalunk kicsi mano...');
  18.  
  19.     $phone   = $_GET["tel"];
  20.     $prefix  = $_GET["prefix"];
  21.     $message = urldecode( $_GET["message"] );
  22.     $value   = $_GET["value"];
  23.     $smsid   = $_GET["id"];
  24.  
  25.     $sql = mysqli_query($conn, "SELECT * FROM accounts WHERE accid='".intval($message)."'");
  26.     $row = mysqli_fetch_array($sql);
  27.  
  28.     echo "PP: " . $row["premium"] . "";
  29.     //echo "PP: " . intval($message) . "";
  30.     $conn->close();
  31. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top