Advertisement
Guest User

Untitled

a guest
Aug 4th, 2014
8,307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php header('Content-type: text/html; charset=utf-8');
  2. mysql_connect("host", "username", "password");
  3. mysql_select_db("databasename");
  4. $search = 'cdn/';
  5. $pos = $_POST[psn];
  6. $re = strpos($pos, $search);
  7. $mysqltime = date("Y-m-d H:i:s");
  8. if ($re === false) {echo 'Troll somewhere else!';}
  9. else{$sql = "INSERT INTO `loozers`.`submit` (`datetime`, `titleid`, `name`, `typ`, `region`, `psnlink`, `pnglink`, `rapname`, `rapdata`, `info` , `postedby`)
  10. VALUES
  11. ('$mysqltime','$_POST[titleid]','$_POST[name]','$_POST[typ]','$_POST[reg]','$_POST[psn]','$_POST[png]','$_POST[rap]','$_POST[rapd]','$_POST[info]','$_POST[postedby]')";
  12.  
  13. mysql_query($sql);
  14. echo 'Thx for your help!';
  15. }
  16. mysql_close();
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement