mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
adding notices to the alerts
This commit is contained in:
parent
82d782a83f
commit
53c4e9aa77
@ -42,10 +42,13 @@ require_once("notices.inc");
|
||||
$notices = get_notices();
|
||||
foreach ($notices as $key => $value) {
|
||||
$date = date("m-d-y h:i:s", $key);
|
||||
$noticemsg = str_replace("'", "", $value['notice']);
|
||||
$noticemsg = str_replace('"', "", $noticemsg);
|
||||
$noticemsg = str_replace("\n", "", $noticemsg);
|
||||
if ($value['url']) {
|
||||
$notice_msgs .= $date.' - <a href="'.$url.'?noticeaction=acknowledge¬iceid='.$key.'">['.$value['id'].']</a>';
|
||||
} else {
|
||||
$notice_msgs .= $date.' - <a href="?noticeaction=acknowledge¬iceid='.$key.'">['.$value['id'].']</a>';
|
||||
$notice_msgs .= $date.' - <a href="?noticeaction=acknowledge¬iceid='.$key.'">['.$value['id'].']'.$noticemsg.'</a>';
|
||||
}
|
||||
$notice_msgs .= " .:. ";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user