Skip to content
Snippets Groups Projects
Commit 440a150a authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix for Plesk

parent 1f3cc0d2
No related branches found
No related tags found
No related merge requests found
......@@ -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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment