From 0970f6b7401ee55b017d1714ce27b11c07242f4d Mon Sep 17 00:00:00 2001 From: Gnieark Date: Thu, 9 Jun 2016 19:22:29 +0200 Subject: [PATCH] . --- src/act.php | 8 ++------ src/editBot.php | 3 ++- 2 files changed, 4 insertions(+), 7 deletions(-) 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

+