Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
5912c504
Commit
5912c504
authored
12 years ago
by
Giovannoni Laurent
Browse files
Options
Downloads
Patches
Plain Diff
check db parameters
parent
a0eb585c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/trunk/install/class/class_install.php
+24
-0
24 additions, 0 deletions
core/trunk/install/class/class_install.php
core/trunk/install/test.php
+17
-6
17 additions, 6 deletions
core/trunk/install/test.php
with
41 additions
and
6 deletions
core/trunk/install/class/class_install.php
+
24
−
0
View file @
5912c504
...
...
@@ -299,4 +299,28 @@ class install extends functions
$db
->
query
(
$query
);
}
}
/**
* create the docservers
* @param $docserverPath string path to the docserver
* @return boolean
*/
public
function
checkDatabaseParameters
(
$databaseserver
,
$databaseserverport
,
$databaseuser
,
$databasepassword
,
$databasename
,
$databasetype
)
{
$_SESSION
[
'config'
][
'databaseserver'
]
=
$databaseserver
;
$_SESSION
[
'config'
][
'databaseserverport'
]
=
$databaseserverport
;
$_SESSION
[
'config'
][
'databaseuser'
]
=
$databaseuser
;
$_SESSION
[
'config'
][
'databasepassword'
]
=
$databasepassword
;
$_SESSION
[
'config'
][
'databasename'
]
=
$databasename
;
$_SESSION
[
'config'
][
'databasetype'
]
=
$databasetype
;
$db
=
new
dbquery
();
$db
->
connect
();
}
}
This diff is collapsed.
Click to expand it.
core/trunk/install/test.php
+
17
−
6
View file @
5912c504
...
...
@@ -5,12 +5,12 @@ include_once '../core/init.php';
require_once
'install/class/class_install.php'
;
//databasevars
$
_SESSION
[
'config'
][
'
databaseserver
'
]
=
'127.0.0.1'
;
$
_SESSION
[
'config'
][
'
databaseserverport
'
]
=
'5432'
;
$
_SESSION
[
'config'
][
'
databaseuser
'
]
=
'postgres'
;
$
_SESSION
[
'config'
][
'
databasepassword
'
]
=
'maarch'
;
$
_SESSION
[
'config'
][
'
databasename
'
]
=
'maarch_entreprise'
;
$
_SESSION
[
'config'
][
'
databasetype
'
]
=
'POSTGRESQL'
;
$databaseserver
=
'127.0.0.1'
;
$databaseserverport
=
'5432'
;
$databaseuser
=
'postgres'
;
$databasepassword
=
'maarch'
;
$databasename
=
'maarch_entreprise'
;
$databasetype
=
'POSTGRESQL'
;
$install
=
new
install
();
$languages
=
$install
->
getlanguages
();
...
...
@@ -45,6 +45,17 @@ echo 'short_open_tag:' . $install->isIniShortOpenTagRequirements();
echo
'<br>'
;
echo
'magic_quotes_gpc:'
.
$install
->
isIniMagicQuotesGpcRequirements
();
echo
'<br>'
;
echo
'<h1>DATABASE</h1>'
;
echo
'check database parameters:'
.
$install
->
checkDatabaseParameters
(
$databaseserver
,
$databaseserverport
,
$databaseuser
,
$databasepassword
,
$databasename
,
$databasetype
);
echo
'<br>'
;
echo
'<h1>DOCSERVERS</h1>'
;
echo
'docserver root:'
.
$install
->
checkDocserverRoot
(
'c:\maarch\docservers\tests'
);
echo
'<br>'
;
...
...
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