EmmaA
JigglyPuff
fucking shit scripts!
Last edited:
mysql_connect("localhost", "YourNickToDatebase", "PASS");
mysql_select_db("DATEBASE");
You do not have time to add something to the database?Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'stary.messages' doesn't exist' in /var/www/message.php:26 Stack trace: #0 /var/www/message.php(26): PDO->query('SELECT * FROM `...') #1 /var/www/index.php(94): include('/var/www/messag...') #2 {main} thrown in /var/www/message.php on line 26
) Good idea man. ; )
Lol you said you can hack the site due to this, hahahah what the..? XD
And he is right with what he said, this doesnt have even SINGLE function that would protect your database. You can write everything as a param. (Just an example: <script>alert("l0al")</script>)
Check now: LoriaOT - Message players
Just to prove that I dont lie, you can input everything. x)
Why bother to post it then, I don't want to get hacked..
Lol. If I wouldnt post it then you could get hacked, now that you are aware of the security leaks, dont use it.![]()
db.executeQuery("INSERT INTO `messages` (`id`, `name`, `text`) VALUES (NULL, '".. playerName .."', '".. message .."')")
db.executeQuery("INSERT INTO `messages` (`id`, `name`, `text`) VALUES (NULL, '".. db.escapeString(playerName) .."', '".. db.escapeString(message) .."')")
<td align=\"center\">".$msg['name']."</td>
<td align=\"center\">".$msg['text']."</td>
<td align=\"center\">".$msg['id']."</td>
<td align=\"center\">".htmlspecialchars($msg['name'])."</td>
<td align=\"center\">".htmlspecialchars($msg['text'])."</td>
<td align=\"center\">".htmlspecialchars($msg['id'])."</td>