Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
b0a1cc4c
Commit
b0a1cc4c
authored
Aug 20, 2007
by
pedro_morgan
Browse files
Added the mysql database to use
parent
5133cc8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/install.php
View file @
b0a1cc4c
...
...
@@ -100,13 +100,14 @@ do {
$tmp_mysql_server_host
=
$inst
->
free_query
(
'MySQL server hostname'
,
$conf
[
'mysql'
][
'host'
]);
$tmp_mysql_server_admin_user
=
$inst
->
free_query
(
'MySQL root username'
,
$conf
[
'mysql'
][
'admin_user'
]);
$tmp_mysql_server_admin_password
=
$inst
->
free_query
(
'MySQL root password'
,
$conf
[
'mysql'
][
'admin_password'
]);
//TODO: it does not ask for which
database
?
$tmp_mysql_server_database
=
$inst
->
free_query
(
'MySQL database to create'
,
$conf
[
'mysql'
][
'
database
'
]);
//* Initialize the MySQL server connection
if
(
@
mysql_connect
(
$tmp_mysql_server_host
,
$tmp_mysql_server_admin_user
,
$tmp_mysql_server_admin_password
))
{
$conf
[
'mysql'
][
'host'
]
=
$tmp_mysql_server_host
;
$conf
[
'mysql'
][
'admin_user'
]
=
$tmp_mysql_server_admin_user
;
$conf
[
'mysql'
][
'admin_password'
]
=
$tmp_mysql_server_admin_password
;
$conf
[
'mysql'
][
'database'
]
=
$tmp_mysql_server_database
;
$finished
=
true
;
}
else
{
swriteln
(
$inst
->
lng
(
'Unable to connect to mysql server'
)
.
' '
.
mysql_error
());
...
...
install/lib/installer_base.lib.php
View file @
b0a1cc4c
...
...
@@ -33,13 +33,14 @@ class installer_base {
var
$wb
=
array
();
var
$language
=
'en'
;
var
$db
;
private
$conf
;
/*
*/
function
con
t
struct
()
function
__
construct
()
{
die
(
'ere'
);
global
$conf
;
//TODO: maybe $conf should be passed to constructor
$this
->
conf
=
$conf
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment