1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Processed with phpcs for PSR-2

This commit is contained in:
Bill Zimmerman 2019-08-12 11:22:06 +02:00
parent 6d347f9a52
commit d124e68275

View File

@ -135,23 +135,23 @@ function DisplaySystem()
$cpuload_status = "success"; $cpuload_status = "success";
} }
?> ?>
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<div class="panel panel-primary"> <div class="panel panel-primary">
<div class="panel-heading"><i class="fa fa-cube fa-fw"></i> <?php echo _("System"); ?></div> <div class="panel-heading"><i class="fa fa-cube fa-fw"></i> <?php echo _("System"); ?></div>
<div class="panel-body"> <div class="panel-body">
<?php <?php
if (isset($_POST['system_reboot'])) { if (isset($_POST['system_reboot'])) {
echo '<div class="alert alert-warning">' . _("System Rebooting Now!") . '</div>'; echo '<div class="alert alert-warning">' . _("System Rebooting Now!") . '</div>';
$result = shell_exec("sudo /sbin/reboot"); $result = shell_exec("sudo /sbin/reboot");
} }
if (isset($_POST['system_shutdown'])) { if (isset($_POST['system_shutdown'])) {
echo '<div class="alert alert-warning">' . _("System Shutting Down Now!") . '</div>'; echo '<div class="alert alert-warning">' . _("System Shutting Down Now!") . '</div>';
$result = shell_exec("sudo /sbin/shutdown -h now"); $result = shell_exec("sudo /sbin/shutdown -h now");
} }
?> ?>
<p><?php $status->showMessages(); ?></p> <p><?php $status->showMessages(); ?></p>
<form role="form" action="?page=system_info" method="POST"> <form role="form" action="?page=system_info" method="POST">
@ -224,6 +224,6 @@ if (isset($_POST['system_shutdown'])) {
</div><!-- /.panel-primary --> </div><!-- /.panel-primary -->
</div><!-- /.col-lg-12 --> </div><!-- /.col-lg-12 -->
</div><!-- /.row --> </div><!-- /.row -->
<?php <?php
} }