mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
Fix coding style part 2
This commit is contained in:
+16
-17
@@ -1,16 +1,15 @@
|
||||
<?php
|
||||
|
||||
$no_refresh = TRUE;
|
||||
$no_refresh = true;
|
||||
|
||||
$param = array();
|
||||
|
||||
if ($vars['action'] == "expunge" && $_SESSION['userlevel'] >= '10')
|
||||
{
|
||||
dbQuery("TRUNCATE TABLE `eventlog`");
|
||||
print_message("Event log truncated");
|
||||
if ($vars['action'] == 'expunge' && $_SESSION['userlevel'] >= '10') {
|
||||
dbQuery('TRUNCATE TABLE `eventlog`');
|
||||
print_message('Event log truncated');
|
||||
}
|
||||
|
||||
$pagetitle[] = "Eventlog";
|
||||
$pagetitle[] = 'Eventlog';
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
@@ -24,15 +23,17 @@ print_optionbar_start();
|
||||
<select name="device" id="device" class="form-control input-sm">
|
||||
<option value="">All Devices</option>
|
||||
<?php
|
||||
foreach (get_all_devices() as $hostname)
|
||||
{
|
||||
$device_id = getidbyname($hostname);
|
||||
if (device_permitted($device_id)) {
|
||||
echo("<option value='".$device_id."'");
|
||||
if ($device_id == $_POST['device']) { echo("selected"); }
|
||||
echo(">".$hostname."</option>");
|
||||
}
|
||||
}
|
||||
foreach (get_all_devices() as $hostname) {
|
||||
$device_id = getidbyname($hostname);
|
||||
if (device_permitted($device_id)) {
|
||||
echo "<option value='".$device_id."'";
|
||||
if ($device_id == $_POST['device']) {
|
||||
echo 'selected';
|
||||
}
|
||||
|
||||
echo '>'.$hostname.'</option>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
@@ -40,9 +41,7 @@ print_optionbar_start();
|
||||
</form>
|
||||
|
||||
<?php
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
?>
|
||||
|
||||
<table id="eventlog" class="table table-hover table-condensed table-striped">
|
||||
|
||||
Reference in New Issue
Block a user