Skip to content

Commit 100be1a

Browse files
author
pedro_morgan
committed
Minor tweaks to login
1 parent 4766e9e commit 100be1a

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

interface/lib/config.inc.php

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
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';
@@ -62,15 +62,10 @@
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
7469
if(file_exists(dirname(__FILE__).'/db_local.php')){
7570
require_once(dirname(__FILE__).'/db_local.php');
7671
$conf['db_type'] = $DB['type'];

0 commit comments

Comments
 (0)