Private GIT

Skip to content
Snippets Groups Projects
Commit ae02d95a authored by Julien Mathis's avatar Julien Mathis
Browse files

refs #4163

parent 3e25d56c
No related branches found
No related tags found
No related merge requests found
...@@ -122,6 +122,7 @@ $rq1 = " SELECT SQL_CALC_FOUND_ROWS DISTINCT h.state," . ...@@ -122,6 +122,7 @@ $rq1 = " SELECT SQL_CALC_FOUND_ROWS DISTINCT h.state," .
" h.last_check, " . " h.last_check, " .
" h.address," . " h.address," .
" h.name," . " h.name," .
" h.alias," .
" h.action_url," . " h.action_url," .
" h.notes_url," . " h.notes_url," .
" h.notes," . " h.notes," .
...@@ -367,6 +368,7 @@ while ($data = $DBRESULT->fetchRow()) { ...@@ -367,6 +368,7 @@ while ($data = $DBRESULT->fetchRow()) {
if ($data["notes_url"] != "") { if ($data["notes_url"] != "") {
$str = $data['notes_url']; $str = $data['notes_url'];
$str = str_replace("\$HOSTNAME\$", $data['name'], $str); $str = str_replace("\$HOSTNAME\$", $data['name'], $str);
$str = str_replace("\$HOSTALIAS\$", $data['alias'], $str);
$str = str_replace("\$HOSTADDRESS\$", $data['address'], $str); $str = str_replace("\$HOSTADDRESS\$", $data['address'], $str);
$str = str_replace("\$HOSTNOTES\$", $data['notes'], $str); $str = str_replace("\$HOSTNOTES\$", $data['notes'], $str);
$str = str_replace("\$INSTANCENAME\$", $data['instance_name'], $str); $str = str_replace("\$INSTANCENAME\$", $data['instance_name'], $str);
...@@ -383,6 +385,7 @@ while ($data = $DBRESULT->fetchRow()) { ...@@ -383,6 +385,7 @@ while ($data = $DBRESULT->fetchRow()) {
if ($data["action_url"] != "") { if ($data["action_url"] != "") {
$str = $data['action_url']; $str = $data['action_url'];
$str = str_replace("\$HOSTNAME\$", $data['name'], $str); $str = str_replace("\$HOSTNAME\$", $data['name'], $str);
$str = str_replace("\$HOSTALIAS\$", $data['alias'], $str);
$str = str_replace("\$HOSTADDRESS\$", $data['address'], $str); $str = str_replace("\$HOSTADDRESS\$", $data['address'], $str);
$str = str_replace("\$HOSTNOTES\$", $data['notes'], $str); $str = str_replace("\$HOSTNOTES\$", $data['notes'], $str);
$str = str_replace("\$INSTANCENAME\$", $data['instance_name'], $str); $str = str_replace("\$INSTANCENAME\$", $data['instance_name'], $str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment