debug sql

This commit is contained in:
Gnieark 2015-12-05 20:20:52 +01:00
parent f8524060c4
commit dcaf384c32

View File

@ -58,6 +58,17 @@ switch($_POST['act']){
'".$secret."'"
);
echo "INSERT INTO bots (name,game,url,description,active,date_inscription,validate_secret) VALUES
( '".mysqli_real_escape_string($lnMysql,htmlentities($_POST['botName']))."',
'".mysqli_real_escape_string($lnMysql,$_POST['botGame'])."',
'".mysqli_real_escape_string($lnMysql,htmlentities($_POST['botURL']))."',
'".mysqli_real_escape_string($lnMysql,
preg_replace('#^(http|https|mailto|ftp)://(([a-z0-9\/\.\?-_=\#@:~])*)#i','<a href="$1://$2">$1://$2</a>'
,nl2br(htmlentities($_POST['botDescription'])))
)."',
'NOW(),
'".$secret."'";
include __DIR__."/config.php";
require __DIR__.'/PHPMailer/PHPMailerAutoload.php';