mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Processed with phpcs for PSR-2
This commit is contained in:
parent
6d347f9a52
commit
d124e68275
1 changed files with 13 additions and 13 deletions
|
@ -41,7 +41,7 @@ function RPiVersion()
|
||||||
'a220a0' => 'Compute Module 3',
|
'a220a0' => 'Compute Module 3',
|
||||||
'a020a0' => 'Compute Module 3',
|
'a020a0' => 'Compute Module 3',
|
||||||
'a02100' => 'Compute Module 3+',
|
'a02100' => 'Compute Module 3+',
|
||||||
'c03111' => 'Model 4B v1.1'
|
'c03111' => 'Model 4B v1.1'
|
||||||
);
|
);
|
||||||
|
|
||||||
$cpuinfo_array = '';
|
$cpuinfo_array = '';
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue