diff --git a/src/act.php b/src/act.php
index 92d7fc7..ea6aefa 100644
--- a/src/act.php
+++ b/src/act.php
@@ -47,18 +47,18 @@ switch($_POST['act']){
$rs=mysqli_query($lnMysql,
"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,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'
+ preg_replace('#^(http|https|mailto|ftp)://(([a-z0-9\/\.\?-_=#\@:~])*)#i','$1://$2'
,nl2br(htmlentities($_POST['botDescription'])))
)."',
'NOW(),
'".$secret."'"
);
- require_once (__DIR__."/config.php");
+ include (__DIR__."/config.php");
require_once (__DIR__."/class.phpmailer.php");