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
440a150a
Commit
440a150a
authored
15 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix for Plesk
parent
1f3cc0d2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/cashdesk/index.php
+8
-1
8 additions, 1 deletion
htdocs/cashdesk/index.php
with
8 additions
and
1 deletion
htdocs/cashdesk/index.php
+
8
−
1
View file @
440a150a
...
...
@@ -23,6 +23,9 @@
* \version $Id$
*/
// This is to make Dolibarr working with Plesk
set_include_path
(
$_SERVER
[
'DOCUMENT_ROOT'
]
.
'/htdocs'
);
// Init session. Name of session is specific to Dolibarr instance.
$sessionname
=
'DOLSESSID_'
.
md5
(
$_SERVER
[
"SERVER_NAME"
]
.
$_SERVER
[
"DOCUMENT_ROOT"
]);
$sessiontimeout
=
'DOLSESSTIMEOUT_'
.
md5
(
$_SERVER
[
"SERVER_NAME"
]
.
$_SERVER
[
"DOCUMENT_ROOT"
]);
...
...
@@ -30,7 +33,10 @@ if (! empty($_COOKIE[$sessiontimeout])) ini_set('session.gc_maxlifetime',$_COOKI
session_name
(
$sessionname
);
session_start
();
include
(
'../master.inc.php'
);
// Set and init common variables
// This include will set: config file variable $dolibarr_xxx, $conf, $langs and $mysoc objects
require_once
(
"../master.inc.php"
);
if
(
$_SESSION
[
'uid'
]
>
0
)
{
...
...
@@ -38,6 +44,7 @@ if ( $_SESSION['uid'] > 0 )
exit
;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
...
...
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