link
This commit is contained in:
parent
62e22b2287
commit
9e95964750
|
|
@ -1,11 +1,20 @@
|
||||||
<?php
|
<?php
|
||||||
if(isset($_POST['xd_check'])){
|
if(isset($_POST['xd_check'])){
|
||||||
|
//un formulaire a été soumis
|
||||||
|
|
||||||
$botName=$_POST['botName'];
|
$botName=$_POST['botName'];
|
||||||
$botGame=$_POST['botGame'];
|
$botGame=$_POST['botGame'];
|
||||||
$botURL=$_POST['botURL'];
|
$botURL=$_POST['botURL'];
|
||||||
$botDescription=$_POST['botDescription'];
|
$botDescription=$_POST['botDescription'];
|
||||||
$email=$_POST['email'];
|
$email=$_POST['email'];
|
||||||
|
|
||||||
|
if(isset($err)) && $err <> ""){
|
||||||
|
$message="<h3>".$err."</h3>";
|
||||||
|
$editDone=false;
|
||||||
|
}elseif($err == ""){
|
||||||
|
$editDone=true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
$botName=$theBot['name'];
|
$botName=$theBot['name'];
|
||||||
|
|
@ -13,8 +22,15 @@ if(isset($_POST['xd_check'])){
|
||||||
$botURL=$theBot['url'];
|
$botURL=$theBot['url'];
|
||||||
$botDescription=$theBot['unclean_description'];
|
$botDescription=$theBot['unclean_description'];
|
||||||
$email="";
|
$email="";
|
||||||
|
$message="";
|
||||||
|
$editDone=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if($editDone){
|
||||||
|
echo ' <h2>EditBot</h2><p>Un e-mail vient de vous être envoyé.
|
||||||
|
Il contient un lien qui vous permettra de confirmer les modifications que vous souhaitez apporter.</p>';
|
||||||
|
}else{
|
||||||
?>
|
?>
|
||||||
<h2>EditBot</h2>
|
<h2>EditBot</h2>
|
||||||
<form method="POST" action="/p/editBot/<?php echo $theBot['id']; ?>">
|
<form method="POST" action="/p/editBot/<?php echo $theBot['id']; ?>">
|
||||||
|
|
@ -38,3 +54,5 @@ if(isset($_POST['xd_check'])){
|
||||||
<p><label for="email"><?php echo $lang['YOUR_EMAIL_FOR_BOT_EDIT']; ?></label><input type="text" name="email" value="<?php echo htmlentities($email);?>" id="email"/></p>
|
<p><label for="email"><?php echo $lang['YOUR_EMAIL_FOR_BOT_EDIT']; ?></label><input type="text" name="email" value="<?php echo htmlentities($email);?>" id="email"/></p>
|
||||||
<p><label for="sub"></label><input id="sub" type="submit" value="<?php echo $lang['SAVE_BOT']; ?>"/></p>
|
<p><label for="sub"></label><input id="sub" type="submit" value="<?php echo $lang['SAVE_BOT']; ?>"/></p>
|
||||||
</form>
|
</form>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user