diff --git a/includes/system.php b/includes/system.php index 171c196d..38d1a993 100755 --- a/includes/system.php +++ b/includes/system.php @@ -1,10 +1,13 @@ addMessage('Language setting saved', 'success'); + } + } else { + error_log('CSRF violation'); + } + } + + // define locales + $arrLocales = array( + 'en_GB.UTF-8' => 'English', + 'fr_FR.UTF-8' => 'français', + 'it_IT.UTF-8' => 'italiano', + 'pt_BR.UTF-8' => 'Português' + ); + // hostname exec("hostname -f", $hostarray); $hostname = $hostarray[0]; @@ -80,90 +104,103 @@ function DisplaySystem(){ elseif ($cpuload > 75) { $cpuload_status = "warning"; } elseif ($cpuload > 0) { $cpuload_status = "success"; } - ?> +?>
- ' . _("System Rebooting Now!") . '
'; - $result = shell_exec("sudo /sbin/reboot"); - } - if (isset($_POST['system_shutdown'])) { - echo '
' . _("System Shutting Down Now!") . '
'; - $result = shell_exec("sudo /sbin/shutdown -h now"); - } - ?> +' . _("System Rebooting Now!") . '
'; + $result = shell_exec("sudo /sbin/reboot"); + } + if (isset($_POST['system_shutdown'])) { + echo '
' . _("System Shutting Down Now!") . '
'; + $result = shell_exec("sudo /sbin/shutdown -h now"); + } +?> -
-
-
-
- +
+
+
+
+

showMessages(); ?>

+
+ -
-
-
-
-

-

-

-


-
-
-
% -
-
-
-
-
% -
-
+
+
+
+
+

+

+

+


+
+
+
% +
+
+
+
+
% +
+
- - " /> - " /> - " onclick="document.location.reload(true)" /> - -
-
+
+ " /> + " /> + " onclick="document.location.reload(true)" /> +
-
-
-
- -
-
-
+
+
+
+

+ +
+
+ + +
+
+ " /> + " onclick="document.location.reload(true)" /> +
+
+
+
+ +
+
+
+ +
-
+
+
- - - - -
-
- +