File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 4141
4242
4343//** Future Code - pedro - rfc
44- /* Database connection
45- The only time paramaters are needed is to connect, otherwise its not needed
46- variables "around" the application. ie Connected and done.
44+ /* Database connection
45+ The only time paramaters are needed is to connect, otherwise the variables
46+ are not required "around" the application. ie Connected and done.
4747 Prefered is an array as $DB in capitals, ie
48- $DB['host '] = 'type';
48+ $DB['engine '] = 'type';
4949 $DB['host'] = 'ip';
5050 $DB['user'] = 'me';
5151 $DB['password'] = 'secret';
6262 (This idea is borrowed from the tikiwiki.org project)
6363 To resolve this there is a file called db_local.php.skel which is not detected
6464 rename this to db_local.php and edit the paramaters.
65-
66- $DB['type'] = 'mysql';
67- $DB['host'] = 'localhost';
68- $DB['database'] = 'ispconfig3';
69- $DB['user'] = 'root';
70- $DB['password'] = '';
7165*/
7266
73- //** Detect for local database setting or set and load default params
67+ //* Detect the local database settings ie $DB array()
68+ //* Copy db_local.php.skel for and change for local development
7469if (file_exists (dirname (__FILE__ ).'/db_local.php ' )){
7570 require_once (dirname (__FILE__ ).'/db_local.php ' );
7671 $ conf ['db_type ' ] = $ DB ['type ' ];
You can’t perform that action at this time.
0 commit comments