|
363 | 363 | $alertm .= __('Count:', 'syslog') . ' ' . sizeof($at) . "\n"; |
364 | 364 | $alertm .= __('Message String:', 'syslog') . ' ' . html_escape($alert['message']) . "\n"; |
365 | 365 |
|
366 | | - $htmlm .= '<body><h1>' . __('Cacti Syslog Plugin Threshold Alert \'%s\'', $alert['name'], 'syslog') . '</h1>'; |
| 366 | + $htmlm .= '<body><h1>' . __esc('Cacti Syslog Plugin Threshold Alert \'%s\'', $alert['name'], 'syslog') . '</h1>'; |
367 | 367 | $htmlm .= '<table cellspacing="0" cellpadding="3" border="1">'; |
368 | 368 | $htmlm .= '<tr><th>' . __('Alert Name', 'syslog') . '</th><th>' . __('Severity', 'syslog') . '</th><th>' . __('Threshold', 'syslog') . '</th><th>' . __('Count', 'syslog') . '</th><th>' . __('Match String', 'syslog') . '</th></tr>'; |
369 | 369 | $htmlm .= '<tr><td>' . html_escape($alert['name']) . '</td>'; |
|
372 | 372 | $htmlm .= '<td>' . sizeof($at) . '</td>'; |
373 | 373 | $htmlm .= '<td>' . html_escape($alert['message']) . '</td></tr></table><br>'; |
374 | 374 | }else{ |
375 | | - $htmlm .= '<body><h1>' . __('Cacti Syslog Plugin Alert \'%s\'', $alert['name'], 'syslog') . '</h1>'; |
| 375 | + $htmlm .= '<body><h1>' . __esc('Cacti Syslog Plugin Alert \'%s\'', $alert['name'], 'syslog') . '</h1>'; |
376 | 376 | } |
377 | 377 |
|
378 | 378 | $htmlm .= '<table>'; |
|
423 | 423 | $sequence = syslog_log_alert($alert['id'], $alert['name'], $alert['severity'], $a, 1, $htmlm); |
424 | 424 | $smsalert = __('Sev:', 'syslog') . $severities[$alert['severity']] . __(', Host:', 'syslog') . $a['host'] . __(', URL:', 'syslog') . read_config_option('base_url', true) . '/plugins/syslog/syslog.php?tab=current&id=' . $sequence; |
425 | 425 |
|
426 | | - syslog_sendemail(trim($alert['email']), $from, __('Event Alert - %s', $alert['name'], 'syslog'), ($html ? $htmlm:$alertm), $smsalert); |
| 426 | + syslog_sendemail(trim($alert['email']), $from, __esc('Event Alert - %s', $alert['name'], 'syslog'), ($html ? $htmlm:$alertm), $smsalert); |
427 | 427 |
|
428 | 428 | if ($alert['open_ticket'] == 'on' && strlen(read_config_option('syslog_ticket_command'))) { |
429 | 429 | if (is_executable(read_config_option('syslog_ticket_command'))) { |
|
472 | 472 | } |
473 | 473 |
|
474 | 474 | if ($resend) { |
475 | | - syslog_sendemail(trim($alert['email']), $from, __('Event Alert - %s', $alert['name'], 'syslog'), ($html ? $htmlm:$alertm), $smsalert); |
| 475 | + syslog_sendemail(trim($alert['email']), $from, __esc('Event Alert - %s', $alert['name'], 'syslog'), ($html ? $htmlm:$alertm), $smsalert); |
476 | 476 |
|
477 | 477 | if ($alert['open_ticket'] == 'on' && strlen(read_config_option('syslog_ticket_command'))) { |
478 | 478 | if (is_executable(read_config_option('syslog_ticket_command'))) { |
|
699 | 699 |
|
700 | 700 | $smsalert = ''; |
701 | 701 |
|
702 | | - syslog_sendemail($syslog_report['email'], $from, __('Event Report - %s', $syslog_report['name'], 'syslog'), $headtext, $smsalert); |
| 702 | + syslog_sendemail($syslog_report['email'], $from, __esc('Event Report - %s', $syslog_report['name'], 'syslog'), $headtext, $smsalert); |
703 | 703 | } |
704 | 704 | } |
705 | 705 | } else { |
|
0 commit comments