| $Lang::tr{'display hostname in window title'} |
+
+ |
+ $Lang::tr{'reboot question'} |
+
|
$Lang::tr{'refresh index page while connected'} |
diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi
old mode 100644
new mode 100755
index b0a90181d..df7831515
--- a/html/cgi-bin/index.cgi
+++ b/html/cgi-bin/index.cgi
@@ -166,55 +166,71 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown'}) {
}
if ($death == 0 && $rebirth == 0) {
-
-if ($cgiparams{'ACTION'} eq $Lang::tr{'reboot ask'}) {
- print <
-
-
-END
-;
-} elsif ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown ask'}) {
- print <
-
-
-END
-;
-} else {
+
+if ($mainsettings{'REBOOTQUESTION'} eq "off") {
print <
-
-
+
END
;
+} else {
+ if ($cgiparams{'ACTION'} eq $Lang::tr{'reboot ask'}) {
+print <
+
+
+END
+;
+ } elsif ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown ask'}) {
+print <
+
+
+END
+;
+ } else {
+print <
+
+
+END
+;
+ }
}
print <
| $Lang::tr{'network'}
diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl
index 014262d4a..6ffd0d4c9 100644
--- a/langs/de/cgi-bin/de.pl
+++ b/langs/de/cgi-bin/de.pl
@@ -1379,6 +1379,7 @@
'reboot ask' => 'Neustart?',
'reboot sure' => 'Sind Sie sicher, dass Sie neustarten wollen?',
'reboot schedule' => 'Zeitsteuerung für IPFire Neustarts',
+'reboot question' => 'Extra Abfrage bei neustart und herunterfahren einschalten',
'rebooting' => 'Starte neu ...',
'rebooting ipfire' => 'Starte IPFire neu',
'reconnect' => 'Neu Verbinden',
diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl
index 76aaae9f0..a2839388b 100644
--- a/langs/en/cgi-bin/en.pl
+++ b/langs/en/cgi-bin/en.pl
@@ -1407,6 +1407,7 @@
'reboot' => 'Reboot',
'reboot ask' => 'Reboot?',
'reboot sure' => 'Are you sure that you want to reboot?',
+'reboot question' => 'Extra query for restart and shutdown',
'reboot schedule' => 'Schedule IPFire reboots',
'rebooting' => 'Rebooting',
'rebooting ipfire' => 'Rebooting IPFire',
|