Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 22nd March 2011, 03:27
zigi zigi is offline
Junior Member
Join Date: Mar 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Which directives (define / $conf array) from the config.inc.php file to use


I'm writing some patches but I don't know, which directives (define ~ constant / item of $conf array) from the config.inc.php file to use in modules, plugins etc. Which one is preffered?

For example for server root exist three directives:
1. define('ISPC_ROOT_PATH', realpath(dirname(__FILE__).'/../'));
2. $conf['rootpath'] = substr(dirname(__FILE__),0,-4);
3. define('SERVER_ROOT',$conf['rootpath']);

I think that the code needs some cleaning.
Reply With Quote
Sponsored Links
Old 22nd March 2011, 09:00
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts

Please use the $conf array.

I think that the code needs some cleaning.
Yes, thats indeed the case. A guy who originally wants to clean up things instead messed everything up and stopped at 50% of the changes and left us with this messy duplicate conf definitions.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix delivery problem erebus Installation/Configuration 8 29th July 2014 21:17
I can't finish install due a problem Sam9999 Installation/Configuration 7 17th September 2010 23:33
Forbidden 403; Samba access; config of maildeamon fawkes Installation/Configuration 4 14th January 2010 19:16
Can't start apache Musty Server Operation 12 9th March 2008 14:58
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 04:40

All times are GMT +2. The time now is 08:40.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.