Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2013 12:00:02 +0000 (UTC)
From:      Dmitry Sivachenko <demon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337718 - head/net-mgmt/nagios/files
Message-ID:  <201312271200.rBRC02wH011686@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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. --> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312271200.rBRC02wH011686>