diff --git a/src/act.php b/src/act.php index aa90e47..1f075ed 100644 --- a/src/act.php +++ b/src/act.php @@ -97,7 +97,7 @@ switch($_POST['act']){ error(404,"wrong post parameter"); die; } - echo "plop"; + $err=""; //check author e-mail @@ -122,7 +122,7 @@ switch($_POST['act']){ } //BotUrl if(($_POST['botURL'] <> "") && (!preg_match("/^(http|https):\/\//", $_POST['botURL']))){ - $alerts.="L'URL n'est pas valide.\n"; + $err.="L'URL n'est pas valide.\n"; } if($err == ""){ @@ -186,11 +186,7 @@ switch($_POST['act']){ - }else{ - //echo "plop".$err."plop"; die; } - - break; default: diff --git a/src/editBot.php b/src/editBot.php index 0f586e7..d35fd89 100644 --- a/src/editBot.php +++ b/src/editBot.php @@ -11,7 +11,7 @@ if(isset($_POST['xd_check'])){ if((isset($err)) && ($err <> "")){ $message="

".$err."

"; $editDone=false; - }elseif($err == ""){ + }else{ $editDone=true; } @@ -33,6 +33,7 @@ if($editDone){ }else{ ?>

EditBot

+