mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Before the shutdown, the user will ask if he really wants to shutdown the system
This commit is contained in:
@@ -167,8 +167,6 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown'}) {
|
|||||||
|
|
||||||
if ($death == 0 && $rebirth == 0) {
|
if ($death == 0 && $rebirth == 0) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($cgiparams{'ACTION'} eq $Lang::tr{'reboot ask'}) {
|
if ($cgiparams{'ACTION'} eq $Lang::tr{'reboot ask'}) {
|
||||||
print <<END
|
print <<END
|
||||||
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
|
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
|
||||||
@@ -179,6 +177,22 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'reboot ask'}) {
|
|||||||
<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{'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{'refresh'}' /></td>
|
||||||
|
<td width='33%' align='center'><input type='submit' name='ACTION' value='$Lang::tr{'shutdown ask'}' /></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
END
|
||||||
|
;
|
||||||
|
} elsif ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown ask'}) {
|
||||||
|
print <<END
|
||||||
|
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
|
||||||
|
<table width='100%'>
|
||||||
|
<tr>
|
||||||
|
<td colspan="3" align='right'><font color="red">$Lang::tr{'shutdown sure'}</font></td>
|
||||||
|
</tr>
|
||||||
|
<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>
|
<td width='33%' align='center'><input type='submit' name='ACTION' value='$Lang::tr{'shutdown'}' /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -192,7 +206,7 @@ print <<END
|
|||||||
<tr>
|
<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{'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{'refresh'}' /></td>
|
||||||
<td width='33%' align='center'><input type='submit' name='ACTION' value='$Lang::tr{'shutdown'}' /></td>
|
<td width='33%' align='center'><input type='submit' name='ACTION' value='$Lang::tr{'shutdown ask'}' /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -1377,7 +1377,7 @@
|
|||||||
'real address' => 'Reale Addresse',
|
'real address' => 'Reale Addresse',
|
||||||
'reboot' => 'Neustart',
|
'reboot' => 'Neustart',
|
||||||
'reboot ask' => 'Neustart?',
|
'reboot ask' => 'Neustart?',
|
||||||
'reboot sure' => 'Sind Sie sicher das Sie neustarten wollen?',
|
'reboot sure' => 'Sind Sie sicher, dass Sie neustarten wollen?',
|
||||||
'reboot schedule' => 'Zeitsteuerung für IPFire Neustarts',
|
'reboot schedule' => 'Zeitsteuerung für IPFire Neustarts',
|
||||||
'rebooting' => 'Starte neu ...',
|
'rebooting' => 'Starte neu ...',
|
||||||
'rebooting ipfire' => 'Starte IPFire neu',
|
'rebooting ipfire' => 'Starte IPFire neu',
|
||||||
@@ -1488,6 +1488,8 @@
|
|||||||
'show root certificate' => 'Root-Zertifikat anzeigen',
|
'show root certificate' => 'Root-Zertifikat anzeigen',
|
||||||
'show share options' => 'Anzeige der Freigabeeinstellungen',
|
'show share options' => 'Anzeige der Freigabeeinstellungen',
|
||||||
'shutdown' => 'Herunterfahren',
|
'shutdown' => 'Herunterfahren',
|
||||||
|
'shutdown ask' => 'Herunterfahren?',
|
||||||
|
'shutdown sure' => 'Sind Sie sicher, dass Sie herunterfahren wollen?',
|
||||||
'shutdown control' => 'Herunterfahren',
|
'shutdown control' => 'Herunterfahren',
|
||||||
'shutdown2' => 'Herunterfahren:',
|
'shutdown2' => 'Herunterfahren:',
|
||||||
'shutting down' => 'Fahre herunter',
|
'shutting down' => 'Fahre herunter',
|
||||||
|
|||||||
@@ -1406,7 +1406,7 @@
|
|||||||
'real address' => 'Real Address',
|
'real address' => 'Real Address',
|
||||||
'reboot' => 'Reboot',
|
'reboot' => 'Reboot',
|
||||||
'reboot ask' => 'Reboot?',
|
'reboot ask' => 'Reboot?',
|
||||||
'reboot sure' => 'Are you sure that you want to restart?',
|
'reboot sure' => 'Are you sure that you want to reboot?',
|
||||||
'reboot schedule' => 'Schedule IPFire reboots',
|
'reboot schedule' => 'Schedule IPFire reboots',
|
||||||
'rebooting' => 'Rebooting',
|
'rebooting' => 'Rebooting',
|
||||||
'rebooting ipfire' => 'Rebooting IPFire',
|
'rebooting ipfire' => 'Rebooting IPFire',
|
||||||
@@ -1520,6 +1520,8 @@
|
|||||||
'show root certificate' => 'Show Root Certificate',
|
'show root certificate' => 'Show Root Certificate',
|
||||||
'show share options' => 'show shares options',
|
'show share options' => 'show shares options',
|
||||||
'shutdown' => 'Shutdown',
|
'shutdown' => 'Shutdown',
|
||||||
|
'shutdown ask' => 'Shutdown?',
|
||||||
|
'shutdown sure' => 'Are you sure that you want to shutdown?',
|
||||||
'shutdown control' => 'Shutdown control',
|
'shutdown control' => 'Shutdown control',
|
||||||
'shutdown2' => 'Shutdown:',
|
'shutdown2' => 'Shutdown:',
|
||||||
'shutting down' => 'Shutting down',
|
'shutting down' => 'Shutting down',
|
||||||
|
|||||||
Reference in New Issue
Block a user