mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-20 07:53:01 +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();
|
||||
|
||||
@@ -1376,6 +1376,8 @@
|
||||
'read list' => 'Liste der Leseberechtigten',
|
||||
'real address' => 'Reale Addresse',
|
||||
'reboot' => 'Neustart',
|
||||
'reboot ask' => 'Neustart?',
|
||||
'reboot sure' => 'Sind Sie sicher das Sie neustarten wollen?',
|
||||
'reboot schedule' => 'Zeitsteuerung für IPFire Neustarts',
|
||||
'rebooting' => 'Starte neu ...',
|
||||
'rebooting ipfire' => 'Starte IPFire neu',
|
||||
|
||||
@@ -1405,6 +1405,8 @@
|
||||
'read list' => 'list with readonly hosts',
|
||||
'real address' => 'Real Address',
|
||||
'reboot' => 'Reboot',
|
||||
'reboot ask' => 'Reboot?',
|
||||
'reboot sure' => 'Are you sure that you want to restart?',
|
||||
'reboot schedule' => 'Schedule IPFire reboots',
|
||||
'rebooting' => 'Rebooting',
|
||||
'rebooting ipfire' => 'Rebooting IPFire',
|
||||
|
||||
Reference in New Issue
Block a user