From c853dcceece609d6cfed2cec1acd31af5fc4ab34 Mon Sep 17 00:00:00 2001 From: Jan Paul Tuecking Date: Thu, 23 Jul 2009 04:15:10 +0200 Subject: [PATCH] Before the shutdown, the user will ask if he really wants to shutdown the system --- html/cgi-bin/index.cgi | 20 +++++++++++++++++--- langs/de/cgi-bin/de.pl | 4 +++- langs/en/cgi-bin/en.pl | 4 +++- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index 680952cf92..b0a90181d1 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -167,8 +167,6 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown'}) { if ($death == 0 && $rebirth == 0) { - - if ($cgiparams{'ACTION'} eq $Lang::tr{'reboot ask'}) { print < @@ -179,6 +177,22 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'reboot ask'}) { + + + + +END +; +} elsif ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown ask'}) { + print < + + + + + + +
$Lang::tr{'shutdown sure'}
@@ -192,7 +206,7 @@ print < - + diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index 9e61482a97..014262d4a3 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -1377,7 +1377,7 @@ 'real address' => 'Reale Addresse', 'reboot' => 'Neustart', 'reboot ask' => 'Neustart?', -'reboot sure' => 'Sind Sie sicher das Sie neustarten wollen?', +'reboot sure' => 'Sind Sie sicher, dass Sie neustarten wollen?', 'reboot schedule' => 'Zeitsteuerung für IPFire Neustarts', 'rebooting' => 'Starte neu ...', 'rebooting ipfire' => 'Starte IPFire neu', @@ -1488,6 +1488,8 @@ 'show root certificate' => 'Root-Zertifikat anzeigen', 'show share options' => 'Anzeige der Freigabeeinstellungen', 'shutdown' => 'Herunterfahren', +'shutdown ask' => 'Herunterfahren?', +'shutdown sure' => 'Sind Sie sicher, dass Sie herunterfahren wollen?', 'shutdown control' => 'Herunterfahren', 'shutdown2' => 'Herunterfahren:', 'shutting down' => 'Fahre herunter', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index d204a3c4e9..76aaae9f04 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -1406,7 +1406,7 @@ 'real address' => 'Real Address', 'reboot' => 'Reboot', 'reboot ask' => 'Reboot?', -'reboot sure' => 'Are you sure that you want to restart?', +'reboot sure' => 'Are you sure that you want to reboot?', 'reboot schedule' => 'Schedule IPFire reboots', 'rebooting' => 'Rebooting', 'rebooting ipfire' => 'Rebooting IPFire', @@ -1520,6 +1520,8 @@ 'show root certificate' => 'Show Root Certificate', 'show share options' => 'show shares options', 'shutdown' => 'Shutdown', +'shutdown ask' => 'Shutdown?', +'shutdown sure' => 'Are you sure that you want to shutdown?', 'shutdown control' => 'Shutdown control', 'shutdown2' => 'Shutdown:', 'shutting down' => 'Shutting down', -- 2.39.2