mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Bulk cosmetic fixes
This commit is contained in:
@@ -68,14 +68,14 @@ if ($device['sysContact']) {
|
||||
<td>Contact</td>';
|
||||
if (get_dev_attrib($device, 'override_sysContact_bool')) {
|
||||
echo '
|
||||
<td>'.htmlspecialchars(get_dev_attrib($device, 'override_sysContact_string')).'</td>
|
||||
<td>'.get_dev_attrib($device, 'override_sysContact_string').'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SNMP Contact</td>';
|
||||
}
|
||||
|
||||
echo '
|
||||
<td>'.htmlspecialchars($device['sysContact']).'</td>
|
||||
<td>'.$device['sysContact'].'</td>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ if (!isset($alert_entry['device'])) {
|
||||
</td>';
|
||||
}
|
||||
|
||||
echo '<td>'.htmlspecialchars($alert_entry['name']).'</td>';
|
||||
echo '<td>'.$alert_entry['name'].'</td>';
|
||||
|
||||
if ($alert_state != '') {
|
||||
if ($alert_state == '0') {
|
||||
|
||||
@@ -8,10 +8,10 @@ if (device_permitted($entry['device_id'])) {
|
||||
if ($vars['page'] != 'device') {
|
||||
$syslog_output .= '<td>'.$entry['date'].'</td>
|
||||
<td><strong>'.generate_device_link($entry).'</strong></td>
|
||||
<td><strong>'.$entry['program'].' : </strong> '.htmlspecialchars($entry['msg']).'</td>';
|
||||
<td><strong>'.$entry['program'].' : </strong> '.$entry['msg'].'</td>';
|
||||
}
|
||||
else {
|
||||
$syslog_output .= '<td><i>'.$entry['date'].'</i> <strong>'.$entry['program'].'</strong> '.htmlspecialchars($entry['msg']).'</td>';
|
||||
$syslog_output .= '<td><i>'.$entry['date'].'</i> <strong>'.$entry['program'].'</strong> '.$entry['msg'].'</td>';
|
||||
}
|
||||
|
||||
$syslog_output .= '</tr>';
|
||||
|
||||
@@ -66,7 +66,7 @@ foreach (dbFetchRows($full_query, $param) as $alert_entry) {
|
||||
$data[] = array(
|
||||
$alert_entry['time_logged'],
|
||||
$hostname,
|
||||
htmlspecialchars($alert_entry['name']),
|
||||
$alert_entry['name'],
|
||||
$text,
|
||||
);
|
||||
}//end if
|
||||
|
||||
@@ -77,7 +77,7 @@ foreach (dbFetchRows($sql, $param) as $alertlog) {
|
||||
'time_logged' => $alertlog['humandate'],
|
||||
'details' => '<a class="glyphicon glyphicon-plus incident-toggle" style="display:none" data-toggle="collapse" data-target="#incident'.($rulei).'" data-parent="#alerts"></a>',
|
||||
'hostname' => '<div class="incident">'.generate_device_link($dev, shorthost($dev['hostname'])).'<div id="incident'.($rulei).'" class="collapse">'.$fault_detail.'</div></div>',
|
||||
'alert' => htmlspecialchars($alertlog['alert']),
|
||||
'alert' => $alertlog['alert'],
|
||||
'status' => "<b><span class='glyphicon glyphicon-".$glyph_icon."' style='color:".$glyph_color."'></span> $text</b>",
|
||||
);
|
||||
}//end foreach
|
||||
|
||||
@@ -66,7 +66,7 @@ foreach (dbFetchRows($sql, $param) as $eventlog) {
|
||||
'datetime' => $eventlog['humandate'],
|
||||
'hostname' => generate_device_link($dev, shorthost($dev['hostname'])),
|
||||
'type' => $type,
|
||||
'message' => htmlspecialchars($eventlog['message']),
|
||||
'message' => $eventlog['message'],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ foreach (dbFetchRows($sql, $param) as $syslog) {
|
||||
'timestamp' => $syslog['date'],
|
||||
'device_id' => generate_device_link($dev, shorthost($dev['hostname'])),
|
||||
'program' => $syslog['program'],
|
||||
'msg' => htmlspecialchars($syslog['msg']),
|
||||
'msg' => $syslog['msg'],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user