mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
65e3fb58c0
* Fix runtime PHP errors if short_opentag is disabled (default) * Remove most PHP warnings/notices that go to error_log * Fix HTML output to be valid * Fix quoting of SQL objects * Fix escaping of user-provided SQL data (potential sql injection) * Widen fields in 95.php and 95.pl for interface and router names * Fix warnings in perl modules in newer perl versions * Fix createdb script to use CREATE USER/GRANT not manipulate user db directly * Add "Update_desc" config entry to auto-update port descriptions from snmp * Update default SNMP version to 2 PR: 227376 Submitted by: <freebsd-ports@dan.me.uk> (maintainer)
23 lines
551 B
PHP
23 lines
551 B
PHP
--- etc/common.php.in.orig 2003-09-26 15:52:29 UTC
|
|
+++ etc/common.php.in
|
|
@@ -1,4 +1,4 @@
|
|
-<?
|
|
+<?php
|
|
/* Begin with reasonable defaults */
|
|
$VERSION = "@VERSION@";
|
|
$host="localhost";
|
|
@@ -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';
|
|
|