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
ee784452
Commit
ee784452
authored
14 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Can have one system dir for two virtual servers or two instances in same system dir.
parent
c8013ac6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/lib/functions.lib.php
+3
-3
3 additions, 3 deletions
htdocs/lib/functions.lib.php
with
3 additions
and
3 deletions
htdocs/lib/functions.lib.php
+
3
−
3
View file @
ee784452
...
...
@@ -66,13 +66,13 @@ function GETPOST($paramname,$check='',$method=0)
/**
* Return a prefix to use for this Dolibarr instance for session or cookie names.
* This prefix is unique for instance and avoid conflict between multi-instances Dolibarrs.
* This prefix is unique for instance and avoid conflict between multi-instances Dolibarrs,
* even when having two instances with one root dir or two instances in virtual servers.
* @return string A calculated prefix
*/
function
dol_getprefix
()
{
//print "prefix=".$_SERVER["SERVER_NAME"]."-".$_SERVER["DOCUMENT_ROOT"]."-".DOL_DOCUMENT_ROOT;
return
md5
(
$_SERVER
[
"SERVER_NAME"
]
.
$_SERVER
[
"DOCUMENT_ROOT"
]
.
DOL_DOCUMENT_ROOT
);
return
md5
(
$_SERVER
[
"SERVER_NAME"
]
.
$_SERVER
[
"DOCUMENT_ROOT"
]
.
DOL_DOCUMENT_ROOT
.
DOL_URL_ROOT
);
}
/**
...
...
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