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.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd March 2011, 02: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

Hi,

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
  #2  
Old 22nd March 2011, 08:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,981
Thanks: 825
Thanked 5,371 Times in 4,218 Posts
 
Default

Please use the $conf array.

Quote:
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
Reply

Bookmarks

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 20:17
I can't finish install due a problem Sam9999 Installation/Configuration 7 17th September 2010 22:33
Forbidden 403; Samba access; config of maildeamon fawkes Installation/Configuration 4 14th January 2010 18:16
Can't start apache Musty Server Operation 12 9th March 2008 13:58
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40


All times are GMT +2. The time now is 13:59.


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