Fix for Plesk
This commit is contained in:
parent
1f3cc0d2ae
commit
440a150aa3
@ -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">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user