daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jun 5th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $time = time()
  3. $ip = $_SERVER['REMOTE_ADDR']
  4. $os = $_GET['os']
  5. $ua = $_SERVER['HTTP_USER_AGENT']:]
  6.  
  7. $host = "ursite/ip";
  8. $database = "dbname";
  9. $username = "user";
  10. $password = "password";
  11.  
  12. mysql_connect($host, $username, $password);
  13. mysql_select_db($database);
  14.  
  15. mysql_fetch_query("INSERT INTO table" . $ip . " ips");
  16. mysql_fetch_query("INSERT INTO table" . $os . " os");
  17. mysql_fetch_query("INSERT INTO table" . $ip . " ips");
  18. mysql_fetch_query("INSERT INTO table" . $ua . " ua");
  19.  
  20. ?>
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