|
40 | 40 | $conf['modules_available'] = 'admin,mail,sites,monitor,client,dns'; |
41 | 41 |
|
42 | 42 |
|
43 | | -//** Future Code - pedro - rfc |
| 43 | +//******************************************************************************** |
| 44 | +//** Future Code idea - pedro - rfc |
| 45 | +//** >>>> |
44 | 46 | /* Database connection |
45 | 47 | The only time paramaters are needed is to connect, otherwise the variables |
46 | 48 | are not required "around" the application. ie Connected and done. |
|
82 | 84 | $conf['db_database'] = 'ispconfig3'; |
83 | 85 | } |
84 | 86 |
|
| 87 | +/* Dynamic constants are another technique as well as key files as constants. |
| 88 | + The base root directory is the interface/ directory which is the top level for php |
| 89 | + From this eveything else is be defined underneath as constants |
| 90 | + The constants are directory paths with no trailing / |
| 91 | + This should do away with the $conf['rootpath'] etc |
| 92 | + The $conf['fs_div'] is unnecessary if only / is used, will work on windoze also |
| 93 | + |
| 94 | +*/ |
| 95 | +//** The main ROOT is the parent directory to this file, ie interface |
| 96 | +define('ISPC_ROOT', realpath('../')); |
| 97 | +define('ISPC_CLASS_PATH', ISPC_ROOT.'/lib/classes'); |
| 98 | +define('ISPC_TEMP_PATH', ISPC_ROOT.'/temp'); |
| 99 | +define('ISPC_CACHE_PATH', ISPC_ROOT.'/cache'); |
| 100 | +//<< End pedro rfc block |
| 101 | + |
| 102 | +//** Database Settings |
| 103 | +/* See above |
| 104 | +$conf['db_type'] = 'mysql'; |
| 105 | +$conf['db_host'] = 'localhost'; |
| 106 | +$conf['db_user'] = 'root'; |
| 107 | +$conf['db_password'] = ''; |
| 108 | +$conf['db_database'] = 'ispconfig3'; |
| 109 | +*/ |
85 | 110 |
|
86 | | -//** Path Settings (Do not change!) |
87 | 111 | $conf['rootpath'] = substr(dirname(__FILE__),0,-4); |
88 | 112 | $conf['fs_div'] = '/'; // File system divider, \\ on windows and / on linux and unix |
89 | 113 | $conf['classpath'] = $conf['rootpath'].$conf['fs_div'].'lib'.$conf['fs_div'].'classes'; |
|
96 | 120 | define('INCLUDE_ROOT', SERVER_ROOT.DIR_TRENNER.'lib'); |
97 | 121 | define('CLASSES_ROOT', INCLUDE_ROOT.DIR_TRENNER.'classes'); |
98 | 122 |
|
99 | | -/* pedro notes ? this stuff is REALLY not necessay */ |
| 123 | +/* pedro notes ? this stuff is REALLY not necessay, can leak everywhere */ |
100 | 124 | define('DB_TYPE', $conf['db_type']); |
101 | 125 | define('DB_HOST', $conf['db_host']); |
102 | 126 | define('DB_DATABASE',$conf['db_database']); |
|
0 commit comments