Skip to content
Snippets Groups Projects
Commit 100be1aa authored by pedro_morgan's avatar pedro_morgan
Browse files

Minor tweaks to login

parent 4766e9e1
No related branches found
No related tags found
No related merge requests found
...@@ -41,11 +41,11 @@ $conf['modules_available'] = 'admin,mail,sites,monitor,client,dns'; ...@@ -41,11 +41,11 @@ $conf['modules_available'] = 'admin,mail,sites,monitor,client,dns';
//** Future Code - pedro - rfc //** Future Code - pedro - rfc
/* Database connection /* Database connection
The only time paramaters are needed is to connect, otherwise its not needed The only time paramaters are needed is to connect, otherwise the variables
variables "around" the application. ie Connected and done. are not required "around" the application. ie Connected and done.
Prefered is an array as $DB in capitals, ie Prefered is an array as $DB in capitals, ie
$DB['host'] = 'type'; $DB['engine'] = 'type';
$DB['host'] = 'ip'; $DB['host'] = 'ip';
$DB['user'] = 'me'; $DB['user'] = 'me';
$DB['password'] = 'secret'; $DB['password'] = 'secret';
...@@ -62,15 +62,10 @@ $conf['modules_available'] = 'admin,mail,sites,monitor,client,dns'; ...@@ -62,15 +62,10 @@ $conf['modules_available'] = 'admin,mail,sites,monitor,client,dns';
(This idea is borrowed from the tikiwiki.org project) (This idea is borrowed from the tikiwiki.org project)
To resolve this there is a file called db_local.php.skel which is not detected To resolve this there is a file called db_local.php.skel which is not detected
rename this to db_local.php and edit the paramaters. rename this to db_local.php and edit the paramaters.
$DB['type'] = 'mysql';
$DB['host'] = 'localhost';
$DB['database'] = 'ispconfig3';
$DB['user'] = 'root';
$DB['password'] = '';
*/ */
//** Detect for local database setting or set and load default params //* Detect the local database settings ie $DB array()
//* Copy db_local.php.skel for and change for local development
if(file_exists(dirname(__FILE__).'/db_local.php')){ if(file_exists(dirname(__FILE__).'/db_local.php')){
require_once(dirname(__FILE__).'/db_local.php'); require_once(dirname(__FILE__).'/db_local.php');
$conf['db_type'] = $DB['type']; $conf['db_type'] = $DB['type'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment