svn commit: r337718 - head/net-mgmt/nagios/files
Dmitry Sivachenko
demon at FreeBSD.org
Fri Dec 27 12:00:03 UTC 2013
Author: demon
Date: Fri Dec 27 12:00:02 2013
New Revision: 337718
URL: http://svnweb.freebsd.org/changeset/ports/337718
Log:
Fix tac.cgi location for people with redefined $cgi_base_url in config.inc.php.
Submitted by: mat
Modified:
head/net-mgmt/nagios/files/patch-html-index.php
Modified: head/net-mgmt/nagios/files/patch-html-index.php
==============================================================================
--- head/net-mgmt/nagios/files/patch-html-index.php Fri Dec 27 11:53:55 2013 (r337717)
+++ head/net-mgmt/nagios/files/patch-html-index.php Fri Dec 27 12:00:02 2013 (r337718)
@@ -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. -->
More information about the svn-ports-head
mailing list