ports/net/rtg/files/patch-etc_common.php.in
Matthew Seaman c55efc3c51 Patch based off of revision 434135
Fix configuration paths in CGIs and reports to include /usr/local/etc/rtg.
Affects common.php, reports.pl, and 95.pl.  This will fix the CGIs to almost work out of the box.

Improve rtgtargmkr.pl to skip unresponsive routers rather than dying.

Add USES=ssl

PR:		217108
Submitted by:	andrew.fengler@scaleengine.com
Approved by:	maintainer timeout (15 days)
2017-04-11 07:17:49 +00:00

16 lines
438 B
PHP

--- etc/common.php.in.orig 2003-09-26 15:52:29 UTC
+++ etc/common.php.in
@@ -6,10 +6,13 @@
$pass="rtgdefault";
$db="rtg";
$refresh=300;
+
+ date_default_timezone_set ( 'UTC' );
/* Default locations to find RTG configuration file */
$configs[] = 'rtg.conf';
$configs[] = '@RTG_HOME@/etc/rtg.conf';
+ $configs[] = '%%PREFIX%%/etc/rtg/rtg.conf';
$configs[] = '/usr/local/rtg/etc/rtg.conf';
$configs[] = '/etc/rtg.conf';