Before the shutdown, the user will ask if he really wants to shutdown the system

This commit is contained in:
Jan Paul Tuecking
2009-07-23 04:15:10 +02:00
parent 650b320a6a
commit c853dcceec
3 changed files with 23 additions and 5 deletions

View File

@@ -167,8 +167,6 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown'}) {
if ($death == 0 && $rebirth == 0) {
if ($cgiparams{'ACTION'} eq $Lang::tr{'reboot ask'}) {
print <<END
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
@@ -179,6 +177,22 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'reboot ask'}) {
<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 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>
</tr>
</table>
@@ -192,7 +206,7 @@ print <<END
<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 ask'}' /></td>
</tr>
</table>
</form>

View File

@@ -1377,7 +1377,7 @@
'real address' => 'Reale Addresse',
'reboot' => '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',
'rebooting' => 'Starte neu ...',
'rebooting ipfire' => 'Starte IPFire neu',
@@ -1488,6 +1488,8 @@
'show root certificate' => 'Root-Zertifikat anzeigen',
'show share options' => 'Anzeige der Freigabeeinstellungen',
'shutdown' => 'Herunterfahren',
'shutdown ask' => 'Herunterfahren?',
'shutdown sure' => 'Sind Sie sicher, dass Sie herunterfahren wollen?',
'shutdown control' => 'Herunterfahren',
'shutdown2' => 'Herunterfahren:',
'shutting down' => 'Fahre herunter',

View File

@@ -1406,7 +1406,7 @@
'real address' => 'Real Address',
'reboot' => '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',
'rebooting' => 'Rebooting',
'rebooting ipfire' => 'Rebooting IPFire',
@@ -1520,6 +1520,8 @@
'show root certificate' => 'Show Root Certificate',
'show share options' => 'show shares options',
'shutdown' => 'Shutdown',
'shutdown ask' => 'Shutdown?',
'shutdown sure' => 'Are you sure that you want to shutdown?',
'shutdown control' => 'Shutdown control',
'shutdown2' => 'Shutdown:',
'shutting down' => 'Shutting down',