mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 18:03:06 +02:00
BUG11505: Captive Portal: no way to remove an uploaded logo
added a delete button Signed-off-by: Alexander Marx <alexander.marx@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
f809b8d5c7
commit
c96146d01e
@@ -142,6 +142,10 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save'}) {
|
||||
}
|
||||
}
|
||||
|
||||
if ($cgiparams{'ACTION'} eq "$Lang::tr{'Captive delete logo'}") {
|
||||
unlink $logo;
|
||||
}
|
||||
|
||||
if ($cgiparams{'ACTION'} eq "$Lang::tr{'Captive generate coupons'}") {
|
||||
#check valid remark
|
||||
if ($cgiparams{'REMARK'} ne '' && !&validremark($cgiparams{'REMARK'})){
|
||||
@@ -381,7 +385,10 @@ if (-e $logo) {
|
||||
print <<END;
|
||||
<tr>
|
||||
<td>$Lang::tr{'Captive logo uploaded'}</td>
|
||||
<td>$Lang::tr{'yes'}</td>
|
||||
<td>
|
||||
$Lang::tr{'yes'}
|
||||
<input type='submit' name='ACTION' value="$Lang::tr{'Captive delete logo'}"/>
|
||||
</td>
|
||||
</tr>
|
||||
END
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user