mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
Feature wish of a user
Before the restart should take place, the user has to be ask again whether he wants to restart or not.
This commit is contained in:
@@ -167,10 +167,16 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown'}) {
|
||||
|
||||
if ($death == 0 && $rebirth == 0) {
|
||||
|
||||
print <<END
|
||||
|
||||
|
||||
if ($cgiparams{'ACTION'} eq $Lang::tr{'reboot ask'}) {
|
||||
print <<END
|
||||
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
|
||||
<table width='100%'>
|
||||
<tr>
|
||||
<tr>
|
||||
<td colspan="3" align='left'><font color="red">$Lang::tr{'reboot sure'}</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='33%' align='center'><input type='submit' name='ACTION' value='$Lang::tr{'reboot'}' /></td>
|
||||
<td width='33%' align='center'><input type='submit' name='ACTION' value='$Lang::tr{'refresh'}' /></td>
|
||||
<td width='33%' align='center'><input type='submit' name='ACTION' value='$Lang::tr{'shutdown'}' /></td>
|
||||
@@ -179,6 +185,20 @@ print <<END
|
||||
</form>
|
||||
END
|
||||
;
|
||||
} else {
|
||||
print <<END
|
||||
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
|
||||
<table width='100%'>
|
||||
<tr>
|
||||
<td width='33%' align='center'><input type='submit' name='ACTION' value='$Lang::tr{'reboot ask'}' /></td>
|
||||
<td width='33%' align='center'><input type='submit' name='ACTION' value='$Lang::tr{'refresh'}' /></td>
|
||||
<td width='33%' align='center'><input type='submit' name='ACTION' value='$Lang::tr{'shutdown'}' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
END
|
||||
;
|
||||
}
|
||||
print <<END;
|
||||
|
||||
<!-- Table of networks -->
|
||||
@@ -392,7 +412,9 @@ END
|
||||
</div>
|
||||
END
|
||||
;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&Header::closebox();
|
||||
&Header::closebigbox();
|
||||
&Header::closepage();
|
||||
|
||||
Reference in New Issue
Block a user