|
38 | 38 | $conf['modules_available'] = 'admin,mail,sites,monitor,client,dns'; |
39 | 39 |
|
40 | 40 |
|
41 | | -//** Future Code - pedro comments |
| 41 | +//** Future Code - pedro - rfc |
42 | 42 | /* Database connection |
43 | | - The only time its needed is to connectm otherwise it not needed as |
44 | | - variables aronf the application. Connected and done. |
| 43 | + The only time paramaters are needed is to connect, otherwise its not needed |
| 44 | + variables "around" the application. ie Connected and done. |
45 | 45 | Prefered is an array as $DB in capitals, ie |
46 | 46 | $DB['host'] = 'type'; |
47 | 47 | $DB['host'] = 'ip'; |
48 | 48 | $DB['user'] = 'me'; |
49 | 49 | $DB['password'] = 'secret'; |
50 | | - $DB['database'] = 'persistent_data_stash'; |
| 50 | + $DB['database'] = 'db_name'; |
51 | 51 | |
52 | 52 | The connection paramaters are all contained within one array structure |
53 | 53 | With this array structure the connection can be passed around, to functions |
54 | | - However it can also leak. and be destroyed eg |
55 | | - $db->connect($DB); |
| 54 | + However it can also leak so it can be destroyed eg |
| 55 | + $dbClass->connect($DB); |
56 | 56 | unset($DB); // only the paranoid survive |
57 | 57 | |
58 | 58 | Also there is a scenario where we are devloping and using this file |
59 | | - and the database paramaters might leak. |
| 59 | + and the database paramaters might leak into svn etc. |
| 60 | + (This idea is borrowed from the tikiwiki.org project) |
60 | 61 | To resolve this there is a file called db_local.php.skel which is not detected |
61 | | - rename this to db_local.php and edit the paramaters |
| 62 | + rename this to db_local.php and edit the paramaters. |
62 | 63 | |
63 | 64 | $DB['type'] = 'mysql'; |
64 | 65 | $DB['host'] = 'localhost'; |
65 | 66 | $DB['database'] = 'ispconfig3'; |
66 | 67 | $DB['user'] = 'root'; |
67 | 68 | $DB['password'] = ''; |
68 | | -
|
69 | | - |
70 | 69 | */ |
71 | 70 |
|
72 | 71 | //** Detect for local database setting or set and load default params |
|
92 | 91 | $conf['fs_div'] = '/'; // File system divider, \\ on windows and / on linux and unix |
93 | 92 | $conf['classpath'] = $conf['rootpath'].$conf['fs_div'].'lib'.$conf['fs_div'].'classes'; |
94 | 93 | $conf['temppath'] = $conf['rootpath'].$conf['fs_div'].'temp'; |
95 | | - |
| 94 | +//$conf['cache_dir'] = $conf['rootpath'].$conf['fs_div'].'FOOtemp'; |
96 | 95 |
|
97 | 96 | define('DIR_TRENNER', $conf['fs_div']); |
98 | 97 | define('SERVER_ROOT', $conf['rootpath']); |
99 | 98 | define('INCLUDE_ROOT', SERVER_ROOT.DIR_TRENNER.'lib'); |
100 | 99 | define('CLASSES_ROOT', INCLUDE_ROOT.DIR_TRENNER.'classes'); |
101 | 100 |
|
102 | 101 | /* pedro notes ? this stuff is REALLY not necessay */ |
103 | | -/* |
104 | 102 | define('DB_TYPE', $conf['db_type']); |
105 | 103 | define('DB_HOST', $conf['db_host']); |
106 | 104 | define('DB_DATABASE',$conf['db_database']); |
107 | 105 | define('DB_USER', $conf['db_user']); |
108 | 106 | define('DB_PASSWORD', $conf['db_password']); |
109 | | -*/ |
| 107 | + |
110 | 108 |
|
111 | 109 | //** External programs |
112 | 110 | //$conf["programs"]["convert"] = "/usr/bin/convert"; |
113 | | -// ?? WTF ?? pedro |
114 | 111 | $conf['programs']['wput'] = $conf['rootpath']."\\tools\\wput\\wput.exe"; |
115 | 112 |
|
116 | 113 |
|
|
120 | 117 | $conf['logo'] = 'themes/default/images/mydnsconfig_logo.gif'; |
121 | 118 |
|
122 | 119 | //** Default Language |
123 | | -$conf["language"] = 'en'; |
| 120 | +$conf['language'] = 'en'; |
124 | 121 |
|
125 | 122 | //** Auto Load Modules |
126 | 123 | $conf['start_db'] = true; |
|
0 commit comments