Before the restart should take place, the user has to be ask again whether he wants to restart or not.
if ($death == 0 && $rebirth == 0) {
+
+
+if ($cgiparams{'ACTION'} eq $Lang::tr{'reboot ask'}) {
+ print <<END
+<form method='post' action='$ENV{'SCRIPT_NAME'}'>
+<table width='100%'>
+ <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>
+</tr>
+</table>
+</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'}' /></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{'shutdown'}' /></td>
</tr>
</form>
END
;
+}
print <<END;
<!-- Table of networks -->
</div>
END
;
-}
+
+}
+
&Header::closebox();
&Header::closebigbox();
&Header::closepage();
'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',
'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',