del useless code

This commit is contained in:
Gnieark 2016-05-11 11:16:40 +02:00
parent 1388352355
commit bc4a44894b

View File

@ -2,15 +2,6 @@
require_once(__DIR__."/functions.php");
$bots=get_Bots_Array('connectFou');
$postParams=get_Post_Params(count($bots));
if(!$postParams){
$bot1="";
$bot2="";
}else{
$bot1=$postParams['bot1'];
$bot2=$postParams['bot2'];
}
?>
<article>
@ -19,12 +10,7 @@ if(!$postParams){
<select name="bot1" id="bot1">
<?php
for($i=0;$i<count($bots);$i++){
if($i==$bot1)
$selected='selected="selected"';
else
$selected='';
echo '<option value="'.$i.'" '.$selected.'>'.$bots[$i]['name'].'</option>';
echo '<option value="'.$i.'">'.$bots[$i]['name'].'</option>';
}
?>
</select>
@ -32,11 +18,7 @@ if(!$postParams){
<select name="bot2" id="bot2">
<?php
for($i=0;$i<count($bots);$i++){
if($i==$bot2)
$selected='selected="selected"';
else
$selected='';
echo '<option value="'.$i.'" '.$selected.'>'.$bots[$i]['name'].'</option>';
echo '<option value="'.$i.'">'.$bots[$i]['name'].'</option>';
}
?>
</select>