Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ISPConfig
ISPConfig 3
Commits
100be1aa
Commit
100be1aa
authored
17 years ago
by
pedro_morgan
Browse files
Options
Downloads
Patches
Plain Diff
Minor tweaks to login
parent
4766e9e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
interface/lib/config.inc.php
+6
-11
6 additions, 11 deletions
interface/lib/config.inc.php
with
6 additions
and
11 deletions
interface/lib/config.inc.php
+
6
−
11
View file @
100be1aa
...
...
@@ -41,11 +41,11 @@ $conf['modules_available'] = 'admin,mail,sites,monitor,client,dns';
//** Future Code - pedro - rfc
/* Database connection
The only time paramaters are needed is to connect, otherwise
its not needed
v
ar
iables
"around" the application. ie Connected and done.
/*
Database connection
The only time paramaters are needed is to connect, otherwise
the variables
ar
e not required
"around" the application. ie Connected and done.
Prefered is an array as $DB in capitals, ie
$DB['
host
'] = 'type';
$DB['
engine
'] = 'type';
$DB['host'] = 'ip';
$DB['user'] = 'me';
$DB['password'] = 'secret';
...
...
@@ -62,15 +62,10 @@ $conf['modules_available'] = 'admin,mail,sites,monitor,client,dns';
(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
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'
)){
require_once
(
dirname
(
__FILE__
)
.
'/db_local.php'
);
$conf
[
'db_type'
]
=
$DB
[
'type'
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment