From d124e68275757c30194f5811e1de672c332b73a8 Mon Sep 17 00:00:00 2001 From: Bill Zimmerman Date: Mon, 12 Aug 2019 11:22:06 +0200 Subject: [PATCH] Processed with phpcs for PSR-2 --- includes/system.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/includes/system.php b/includes/system.php index 8cdefbf8..0de2fe29 100755 --- a/includes/system.php +++ b/includes/system.php @@ -41,7 +41,7 @@ function RPiVersion() 'a220a0' => 'Compute Module 3', 'a020a0' => 'Compute Module 3', 'a02100' => 'Compute Module 3+', - 'c03111' => 'Model 4B v1.1' + 'c03111' => 'Model 4B v1.1' ); $cpuinfo_array = ''; @@ -135,23 +135,23 @@ function DisplaySystem() $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(); ?>

@@ -224,6 +224,6 @@ if (isset($_POST['system_shutdown'])) {
-