mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 04:05:53 +02:00
captive: Cleanup authentication selection
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -244,6 +244,11 @@ $checked{'UNLIMITED'}{'off'} = '';
|
||||
$checked{'UNLIMITED'}{'on'} = '';
|
||||
$checked{'UNLIMITED'}{$settings{'UNLIMITED'}} = "checked='checked'";
|
||||
|
||||
$selected{'AUTH'} = ();
|
||||
$selected{'AUTH'}{'COUPON'} = "";
|
||||
$selected{'AUTH'}{'TERMS'} = "";
|
||||
$selected{'AUTH'}{$settings{'AUTH'}} = "selected";
|
||||
|
||||
if ($netsettings{'GREEN_DEV'}){
|
||||
print "<td width='30%'>$Lang::tr{'Captive active on'} <font color='$Header::colourgreen'>Green</font></td><td><input type='checkbox' name='ENABLE_GREEN' $checked{'ENABLE_GREEN'}{'on'} /></td></tr>";
|
||||
}
|
||||
@@ -259,18 +264,8 @@ print<<END
|
||||
</td>
|
||||
<td>
|
||||
<select name='AUTH'>
|
||||
END
|
||||
;
|
||||
|
||||
print "<option value='TERMS' ";
|
||||
print " selected='selected'" if ($settings{'AUTH'} eq 'TERMS');
|
||||
print ">$Lang::tr{'Captive terms'}</option>";
|
||||
|
||||
print "<option value='COUPON' ";
|
||||
print " selected='selected'" if ($settings{'AUTH'} eq 'COUPON');
|
||||
print ">$Lang::tr{'Captive coupon'}</option>";
|
||||
|
||||
print<<END
|
||||
<option value="TERMS" $selected{'AUTH'}{'TERMS'} >$Lang::tr{'Captive terms'}</option>
|
||||
<option value="COUPON" $selected{'AUTH'}{'COUPON'}>$Lang::tr{'Captive coupon'}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user