Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php header('Content-type: text/html; charset=utf-8');
- mysql_connect("host", "username", "password");
- mysql_select_db("databasename");
- $search = 'cdn/';
- $pos = $_POST[psn];
- $re = strpos($pos, $search);
- $mysqltime = date("Y-m-d H:i:s");
- if ($re === false) {echo 'Troll somewhere else!';}
- else{$sql = "INSERT INTO `loozers`.`submit` (`datetime`, `titleid`, `name`, `typ`, `region`, `psnlink`, `pnglink`, `rapname`, `rapdata`, `info` , `postedby`)
- VALUES
- ('$mysqltime','$_POST[titleid]','$_POST[name]','$_POST[typ]','$_POST[reg]','$_POST[psn]','$_POST[png]','$_POST[rap]','$_POST[rapd]','$_POST[info]','$_POST[postedby]')";
- mysql_query($sql);
- echo 'Thx for your help!';
- }
- mysql_close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement