From: Jan Paul Tuecking Date: Wed, 22 Jul 2009 22:59:13 +0000 (+0200) Subject: Feature wish of a user X-Git-Tag: v2.5-core30~61 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=b4ad0027364e39218df390ec3349f761aad13dbf;hp=2ac9693e7bbdb29cd8f7d831973468888fc9496e 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. --- diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index cca4bdf4b9..680952cf92 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -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 < + + + + + + + + + +
$Lang::tr{'reboot sure'}
+ +END +; +} else { print < - + @@ -179,6 +198,7 @@ print < END ; +} print < @@ -392,7 +412,9 @@ END END ; -} + +} + &Header::closebox(); &Header::closebigbox(); &Header::closepage(); diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index 19d35089f8..9e61482a97 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -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', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index c16d989daf..d204a3c4e9 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -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',