]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Feature wish of a user
authorJan Paul Tuecking <earl@ipfire.org>
Wed, 22 Jul 2009 22:59:13 +0000 (00:59 +0200)
committerJan Paul Tuecking <earl@ipfire.org>
Wed, 22 Jul 2009 22:59:13 +0000 (00:59 +0200)
Before the restart should take place, the user has to be ask again whether he wants to restart or not.

html/cgi-bin/index.cgi
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl

index cca4bdf4b90c75432c34f5b397aab0fb11d45b56..680952cf926340a6e79a91bc996b70bc948f34f2 100644 (file)
@@ -167,11 +167,30 @@ 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'}'>
+<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>
@@ -179,6 +198,7 @@ print <<END
 </form>
 END
 ;
+}
 print <<END;
 
 <!-- Table of networks -->
@@ -392,7 +412,9 @@ END
 </div>
 END
 ;
-}
+
+} 
+
 &Header::closebox();
 &Header::closebigbox();
 &Header::closepage();
index 19d35089f8cf2dee3fdd760ff9e2f383572b551a..9e61482a9794055afe60aff1e77995cf0f285015 100644 (file)
 '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',
index c16d989dafdb1ad8fe2b187d79adc3a0442f7277..d204a3c4e963affd721ddc5b476d9472c48fe0a8 100644 (file)
 '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',