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
lolo888
ISPConfig 3
Commits
4766e9e1
Commit
4766e9e1
authored
17 years ago
by
pedro_morgan
Browse files
Options
Downloads
Patches
Plain Diff
* Introducing the sb_local.php.skel file to keep a local configuration
parent
ce06f4c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
interface/lib/config.inc.php
+6
-4
6 additions, 4 deletions
interface/lib/config.inc.php
interface/lib/db_local.php.skel
+9
-0
9 additions, 0 deletions
interface/lib/db_local.php.skel
with
15 additions
and
4 deletions
interface/lib/config.inc.php
+
6
−
4
View file @
4766e9e1
...
@@ -27,6 +27,8 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
...
@@ -27,6 +27,8 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
error_reporting
(
E_ALL
|
E_STRICT
);
header
(
'Pragma: no-cache'
);
header
(
'Pragma: no-cache'
);
header
(
'Cache-Control: no-store, no-cache, max-age=0, must-revalidate'
);
header
(
'Cache-Control: no-store, no-cache, max-age=0, must-revalidate'
);
header
(
'Content-Type: text/html'
);
header
(
'Content-Type: text/html'
);
...
@@ -69,20 +71,20 @@ $conf['modules_available'] = 'admin,mail,sites,monitor,client,dns';
...
@@ -69,20 +71,20 @@ $conf['modules_available'] = 'admin,mail,sites,monitor,client,dns';
*/
*/
//** Detect for local database setting or set and load default params
//** Detect for local database setting or set and load default params
if
(
file_exists
(
'
db_local.php'
)
){
if
(
file_exists
(
dirname
(
__FILE__
)
.
'/
db_local.php'
)){
require_once
(
'
db_local.php'
);
require_once
(
dirname
(
__FILE__
)
.
'/
db_local.php'
);
$conf
[
'db_type'
]
=
$DB
[
'type'
];
$conf
[
'db_type'
]
=
$DB
[
'type'
];
$conf
[
'db_host'
]
=
$DB
[
'host'
];
$conf
[
'db_host'
]
=
$DB
[
'host'
];
$conf
[
'db_database'
]
=
$DB
[
'database'
];
$conf
[
'db_user'
]
=
$DB
[
'user'
];
$conf
[
'db_user'
]
=
$DB
[
'user'
];
$conf
[
'db_password'
]
=
$DB
[
'password'
];
$conf
[
'db_password'
]
=
$DB
[
'password'
];
$conf
[
'db_database'
]
=
$DB
[
'database'
];
}
else
{
}
else
{
//** Database Settings
//** Database Settings
$conf
[
'db_type'
]
=
'mysql'
;
$conf
[
'db_type'
]
=
'mysql'
;
$conf
[
'db_host'
]
=
'localhost'
;
$conf
[
'db_host'
]
=
'localhost'
;
$conf
[
'db_database'
]
=
'ispconfig3'
;
$conf
[
'db_user'
]
=
'root'
;
$conf
[
'db_user'
]
=
'root'
;
$conf
[
'db_password'
]
=
''
;
$conf
[
'db_password'
]
=
''
;
$conf
[
'db_database'
]
=
'ispconfig3'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
interface/lib/db_local.php.skel
0 → 100755
+
9
−
0
View file @
4766e9e1
<?php
//** These are the local connection paramaters on your machine
$DB
[
'type'
]
=
'mysql'
;
$DB
[
'host'
]
=
'localhost'
;
$DB
[
'user'
]
=
'root'
;
$DB
[
'password'
]
=
'mash'
;
$DB
[
'database'
]
=
'ispconfig'
;
?>
\ No newline at end of file
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