SF.net SVN: postfixadmin: [251] trunk/config.inc.php
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2007-12-02 15:09:39
|
Revision: 251 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=251&view=rev Author: GingerDog Date: 2007-12-02 07:09:39 -0800 (Sun, 02 Dec 2007) Log Message: ----------- config.inc.php: update - use dirname(__FILE__) for path resolution Modified Paths: -------------- trunk/config.inc.php Modified: trunk/config.inc.php =================================================================== --- trunk/config.inc.php 2007-12-02 13:59:33 UTC (rev 250) +++ trunk/config.inc.php 2007-12-02 15:09:39 UTC (rev 251) @@ -33,12 +33,14 @@ // Postfix Admin Path // Set the location of your Postfix Admin installation here. -// You must enter complete url (http://domain.tld/) and full path (/var/www/postfixadmin) +// You must enter complete url (http://domain.tld/) $CONF['postfix_admin_url'] = ''; + +// leave this alone... $CONF['postfix_admin_path'] = dirname(__FILE__); // Language config -// Language files are located in './languages'. +// Language files are located in './languages', change as required.. $CONF['default_language'] = 'en'; // Database Config @@ -314,15 +316,11 @@ // 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"))) { # for / - include('config.local.php'); -} elseif (file_exists (realpath ("../config.local.php"))) { # for /users/ - include('../config.local.php'); -}; +if (file_exists(dirname(__FILE__) . '/config.local.php')) { # for / + include(dirname(__FILE__) . '/config.local.php'); +} - // // END OF CONFIG FILE // /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ -?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |