Deplacement de l'inclusion du fichier de conf

This commit is contained in:
Rodolphe Quiedeville 2004-09-08 11:51:16 +00:00
parent dd769fcc95
commit 79e3d2cfa4
2 changed files with 11 additions and 13 deletions

View File

@ -24,18 +24,6 @@
*
*/
if (! @include_once("conf/conf.php"))
{
Header("Location: install/index.php");
}
else
{
if (! isset($dolibarr_main_db_host))
{
Header("Location: install/index.php");
}
}
require("master.inc.php");
// Verification du login.

View File

@ -24,7 +24,17 @@
define('DOL_VERSION','1.2.0-DEV');
if (! @include_once("conf/conf.php"))
{
Header("Location: install/index.php");
}
else
{
if (! isset($dolibarr_main_db_host))
{
Header("Location: install/index.php");
}
}
define('DOL_DOCUMENT_ROOT', $dolibarr_main_document_root);
define('DOL_DATA_ROOT', $dolibarr_main_data_root);