From 85eda998b6cae02ce084a679943cde8d69cbf356 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 4 Nov 2007 21:06:00 +0000 Subject: [PATCH] - also read config.local.php when in /users/ git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@197 a1433add-5e2c-0410-b055-b7f2511e0802 --- config.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.inc.php b/config.inc.php index 9530fb6c..fa67d0d4 100644 --- a/config.inc.php +++ b/config.inc.php @@ -57,6 +57,7 @@ $CONF['database_prefix'] = ''; $CONF['database_tables'] = array ( 'admin' => 'admin', 'alias' => 'alias', + 'config' => 'config', 'domain' => 'domain', 'domain_admins' => 'domain_admins', 'log' => 'log', @@ -313,11 +314,15 @@ $CONF['show_custom_colors']=array("lightgreen","lightblue"); // that future updates work without problems, you can use a separate config // file (config.local.php) instead of editing this file and override some // settings there. -if (file_exists (realpath ("./config.local.php"))) { +if (file_exists (realpath ("./config.local.php"))) { # for / include('config.local.php'); +} elseif (file_exists (realpath ("../config.local.php"))) { # for /users/ + include('../config.local.php'); }; + // // END OF CONFIG FILE // +/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ ?>