From dcaf384c3206e463507be9a3cea0babc7f721e8c Mon Sep 17 00:00:00 2001 From: Gnieark Date: Sat, 5 Dec 2015 20:20:52 +0100 Subject: [PATCH] debug sql --- src/act.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/act.php b/src/act.php index 83ad7dc..678da20 100644 --- a/src/act.php +++ b/src/act.php @@ -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','$1://$2' + ,nl2br(htmlentities($_POST['botDescription']))) + )."', + 'NOW(), + '".$secret."'"; + include __DIR__."/config.php"; require __DIR__.'/PHPMailer/PHPMailerAutoload.php';