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
c9e41e00
Commit
c9e41e00
authored
14 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
New: add directory for external module and other customization
parent
7f5d4856
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/admin/modules.php
+1
-1
1 addition, 1 deletion
htdocs/admin/modules.php
htdocs/master.inc.php
+5
-5
5 additions, 5 deletions
htdocs/master.inc.php
with
6 additions
and
6 deletions
htdocs/admin/modules.php
+
1
−
1
View file @
c9e41e00
...
...
@@ -88,7 +88,7 @@ foreach ($conf->file->dol_document_root as $dirroot)
else
$dir
=
$dirroot
.
"/includes/modules/"
;
// Load modules attributes in arrays (name, numero, orders) from dir directory
print
$dir
.
"
\n
<br>"
;
//
print $dir."\n<br>";
dol_syslog
(
"Scan directory "
.
$dir
.
" for modules"
);
$handle
=@
opendir
(
$dir
);
if
(
$handle
)
...
...
This diff is collapsed.
Click to expand it.
htdocs/master.inc.php
+
5
−
5
View file @
c9e41e00
...
...
@@ -104,7 +104,7 @@ if (empty($dolibarr_main_data_root))
define
(
'DOL_DOCUMENT_ROOT'
,
$dolibarr_main_document_root
);
// Filesystem core php (htdocs)
define
(
'DOL_DATA_ROOT'
,
$dolibarr_main_data_root
);
// Filesystem data (documents)
define
(
'DOL_CLASS_PATH'
,
'class/'
);
// Filesystem path to class dir
define
(
'DOL_CUSTOM_PATH'
,
'
custom
/
'
);
// Filesystem path to custom dir
define
(
'DOL_CUSTOM_PATH'
,
$dolibarr_main_document_root
.
'/
custom'
);
// Filesystem path to custom dir
// If dolibarr_main_url_root = auto (Hidden feature for developers only), we try to forge it.
if
(
$dolibarr_main_url_root
==
'auto'
&&
!
empty
(
$_SERVER
[
"SCRIPT_URL"
])
&&
!
empty
(
$_SERVER
[
"SCRIPT_URI"
]))
{
...
...
@@ -188,7 +188,7 @@ $conf->file->character_set_client=strtoupper($force_charset_do_notuse);
$conf
->
file
->
cookie_cryptkey
=
empty
(
$dolibarr_main_cookie_cryptkey
)
?
''
:
$dolibarr_main_cookie_cryptkey
;
// Define array of document root directories
$conf
->
file
->
dol_document_root
=
array
(
DOL_DOCUMENT_ROOT
);
$conf
->
file
->
dol_document_root
=
array
(
DOL_DOCUMENT_ROOT
,
DOL_CUSTOM_PATH
);
if
(
!
empty
(
$dolibarr_main_document_root_alt
))
{
// dolibarr_main_document_root_alt contains several directories
...
...
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