diff options
author | Dmitry Sivachenko <demon@FreeBSD.org> | 2013-12-27 20:00:02 +0800 |
---|---|---|
committer | Dmitry Sivachenko <demon@FreeBSD.org> | 2013-12-27 20:00:02 +0800 |
commit | 78873ed8a42c1d9d949934c9576c4cce0d7db35c (patch) | |
tree | 37276792edf0790f6922937055672b6ecd4c578c /net-mgmt/nagios | |
parent | 43e762d6df48c5b2f7f86e756a9fb833ad3b23ae (diff) | |
download | freebsd-ports-gnome-78873ed8a42c1d9d949934c9576c4cce0d7db35c.tar.gz freebsd-ports-gnome-78873ed8a42c1d9d949934c9576c4cce0d7db35c.tar.zst freebsd-ports-gnome-78873ed8a42c1d9d949934c9576c4cce0d7db35c.zip |
Fix tac.cgi location for people with redefined $cgi_base_url in config.inc.php.
Submitted by: mat
Diffstat (limited to 'net-mgmt/nagios')
-rw-r--r-- | net-mgmt/nagios/files/patch-html-index.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/net-mgmt/nagios/files/patch-html-index.php b/net-mgmt/nagios/files/patch-html-index.php index e0666d0023c9..5ebff50d5498 100644 --- a/net-mgmt/nagios/files/patch-html-index.php +++ b/net-mgmt/nagios/files/patch-html-index.php @@ -1,11 +1,19 @@ --- html/index.php.orig 2013-08-30 21:46:14.000000000 +0400 -+++ html/index.php 2013-12-27 11:53:31.000000000 +0400 -@@ -43,7 +43,7 @@ ++++ html/index.php 2013-12-27 15:56:06.000000000 +0400 +@@ -8,6 +8,7 @@ + </head> + + <?php ++include_once(dirname(__FILE__).'/includes/utils.inc.php'); + // allow specifying main window URL for permalinks, etc. + $corewindow="main.php"; + if(isset($_GET['corewindow'])){ +@@ -43,7 +44,7 @@ <frameset cols="180,*" style="border: 0px; framespacing: 0px"> <frame src="side.php" name="side" frameborder="0" style=""> -<frame src="<?php echo $corewindow;?>" name="main" frameborder="0" style=""> -+<frame src="cgi-bin/tac.cgi" name="main" frameborder="0"> ++<frame src="<?php echo $cfg["cgi_base_url"];?>/tac.cgi" name="main" frameborder="0"> <noframes> <!-- This page requires a web browser which supports frames. --> |