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:
Jan Paul Tuecking
2009-07-23 00:59:13 +02:00
parent 2ac9693e7b
commit b4ad002736
3 changed files with 29 additions and 3 deletions

View File

@@ -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();

View File

@@ -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',

View File

@@ -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',