Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
27f19fd5
Commit
27f19fd5
authored
13 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Enhance installer
parent
e813448b
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
htdocs/install/etape1.php
+3
-1
3 additions, 1 deletion
htdocs/install/etape1.php
htdocs/install/etape2.php
+2
-1
2 additions, 1 deletion
htdocs/install/etape2.php
with
5 additions
and
2 deletions
htdocs/install/etape1.php
+
3
−
1
View file @
27f19fd5
...
...
@@ -30,6 +30,8 @@
define
(
'DONOTLOADCONF'
,
1
);
// To avoid loading conf by file inc.php
include
(
"./inc.php"
);
$action
=
GETPOST
(
'action'
);
$setuplang
=
isset
(
$_POST
[
"selectlang"
])
?
$_POST
[
"selectlang"
]
:
(
isset
(
$_GET
[
"selectlang"
])
?
$_GET
[
"selectlang"
]
:
'auto'
);
$langs
->
setDefaultLang
(
$setuplang
);
...
...
@@ -78,7 +80,7 @@ $main_data_dir=isset($_POST["main_data_dir"])?$_POST["main_data_dir"]:'';
if
(
!
$main_data_dir
)
{
$main_data_dir
=
"
$main_dir
/documents"
;
}
if
(
$
_POST
[
"
action
"
]
==
"set"
)
if
(
$action
==
"set"
)
{
umask
(
0
);
foreach
(
$_POST
as
$cle
=>
$valeur
)
...
...
This diff is collapsed.
Click to expand it.
htdocs/install/etape2.php
+
2
−
1
View file @
27f19fd5
...
...
@@ -41,6 +41,7 @@ error_reporting(0); // Disable all errors
@
set_time_limit
(
300
);
// Need more than 240 on Windows 7/64
error_reporting
(
$err
);
$action
=
GETPOST
(
'action'
);
$setuplang
=
isset
(
$_POST
[
"selectlang"
])
?
$_POST
[
"selectlang"
]
:
(
isset
(
$_GET
[
"selectlang"
])
?
$_GET
[
"selectlang"
]
:
'auto'
);
$langs
->
setDefaultLang
(
$setuplang
);
...
...
@@ -72,7 +73,7 @@ if (! is_writable($conffile))
exit
;
}
if
(
$
_POST
[
"
action
"
]
==
"set"
)
if
(
$action
==
"set"
)
{
print
'<h3>'
.
$langs
->
trans
(
"Database"
)
.
'</h3>'
;
...
...
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