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