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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
bcb9a7a8
Commit
bcb9a7a8
authored
Aug 20, 2011
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Prepare usage of modules into custom dir
parent
ebfc75b0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/install/etape1.php
+7
-7
7 additions, 7 deletions
htdocs/install/etape1.php
with
7 additions
and
7 deletions
htdocs/install/etape1.php
+
7
−
7
View file @
bcb9a7a8
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
* \file htdocs/install/etape1.php
* \file htdocs/install/etape1.php
* \ingroup install
* \ingroup install
* \brief Build conf file on disk
* \brief Build conf file on disk
* \version $Id: etape1.php,v 1.14
1
2011/08/
16
09:
05:39
eldy Exp $
* \version $Id: etape1.php,v 1.14
2
2011/08/
20
09:
58:05
eldy Exp $
*/
*/
define
(
'DONOTLOADCONF'
,
1
);
// To avoid loading conf by file inc.php
define
(
'DONOTLOADCONF'
,
1
);
// To avoid loading conf by file inc.php
...
@@ -164,7 +164,7 @@ if ($action == "set")
...
@@ -164,7 +164,7 @@ if ($action == "set")
// Les documents sont en dehors de htdocs car ne doivent pas pouvoir etre telecharges en passant outre l'authentification
// Les documents sont en dehors de htdocs car ne doivent pas pouvoir etre telecharges en passant outre l'authentification
$dir
[
0
]
=
$main_data_dir
.
"/mycompany"
;
$dir
[
0
]
=
$main_data_dir
.
"/mycompany"
;
$dir
[
1
]
=
$main_data_dir
.
"/users"
;
$dir
[
1
]
=
$main_data_dir
.
"/users"
;
$dir
[
2
]
=
$main_data_dir
.
"/
modules
"
;
$dir
[
2
]
=
$main_data_dir
.
"/
custom
"
;
$dir
[
3
]
=
$main_data_dir
.
"/facture"
;
$dir
[
3
]
=
$main_data_dir
.
"/facture"
;
$dir
[
4
]
=
$main_data_dir
.
"/propale"
;
$dir
[
4
]
=
$main_data_dir
.
"/propale"
;
$dir
[
5
]
=
$main_data_dir
.
"/ficheinter"
;
$dir
[
5
]
=
$main_data_dir
.
"/ficheinter"
;
...
@@ -233,10 +233,10 @@ if ($action == "set")
...
@@ -233,10 +233,10 @@ if ($action == "set")
}
}
/**
/**
* Write main.inc.php and master.inc.php into documents dir
* Write main.inc.php and master.inc.php into documents
/custom
dir
*/
*/
//
$error+=write_main_file($main_data_dir.'/main.inc.php',$main_dir);
$error
+=
write_main_file
(
$main_data_dir
.
'/
custom/
main.inc.php'
,
$main_dir
);
$error
+=
write_master_file
(
$main_data_dir
.
'/master.inc.php'
,
$main_dir
);
$error
+=
write_master_file
(
$main_data_dir
.
'/
custom/
master.inc.php'
,
$main_dir
);
/**
/**
* Create database and admin user database
* Create database and admin user database
...
@@ -527,7 +527,7 @@ pFooter($error,$setuplang,'jsinfo');
...
@@ -527,7 +527,7 @@ pFooter($error,$setuplang,'jsinfo');
*
*
* @param mainfile Path to conf file to generate/update
* @param mainfile Path to conf file to generate/update
*/
*/
/*
function write_main_file($mainfile,$main_dir)
function
write_main_file
(
$mainfile
,
$main_dir
)
{
{
$fp
=
fopen
(
"
$mainfile
"
,
"w"
);
$fp
=
fopen
(
"
$mainfile
"
,
"w"
);
if
(
$fp
)
if
(
$fp
)
...
@@ -539,7 +539,7 @@ pFooter($error,$setuplang,'jsinfo');
...
@@ -539,7 +539,7 @@ pFooter($error,$setuplang,'jsinfo');
fputs
(
$fp
,
'?>'
);
fputs
(
$fp
,
'?>'
);
fclose
(
$fp
);
fclose
(
$fp
);
}
}
}
*/
}
/**
/**
...
...
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