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';