debug sql
This commit is contained in:
parent
f8524060c4
commit
dcaf384c32
11
src/act.php
11
src/act.php
|
@ -58,6 +58,17 @@ switch($_POST['act']){
|
||||||
'".$secret."'"
|
'".$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";
|
include __DIR__."/config.php";
|
||||||
require __DIR__.'/PHPMailer/PHPMailerAutoload.php';
|
require __DIR__.'/PHPMailer/PHPMailerAutoload.php';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user