mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Merge pull request #71 from 7h3ju57/pistatus
Get an actual status. (Makes the status indicator on the main page actually mean something...)
This commit is contained in:
+8
-1
@@ -104,7 +104,14 @@
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>Status</p>
|
||||
<a href="#"><i class="fa fa-circle text-success"></i> Nominal</a>
|
||||
<?php
|
||||
$pistatus = exec('pgrep dnsmasq | wc -l');
|
||||
if ($pistatus > "0") {
|
||||
echo '<a href="#"><i class="fa fa-circle" style="color:#7FFF00"></i> Active</a>';
|
||||
} else {
|
||||
echo '<a href="#"><i class="fa fa-circle" style="color:#FF0000"></i> Offline</a>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- sidebar menu: : style can be found in sidebar.less -->
|
||||
|
||||
Reference in New Issue
Block a user