24 |
|
|
25 |
/** |
/** |
26 |
\file htdocs/install/etape5.php |
\file htdocs/install/etape5.php |
27 |
\brief Page de fin d'installation |
\brief Page de fin d'installation ou de migration |
28 |
\version $Revision$ |
\version $Revision$ |
29 |
*/ |
*/ |
30 |
|
|
40 |
if (file_exists($conffile)) |
if (file_exists($conffile)) |
41 |
{ |
{ |
42 |
include($conffile); |
include($conffile); |
43 |
|
if (! isset($dolibarr_main_db_prefix) || ! $dolibarr_main_db_prefix) $dolibarr_main_db_prefix='llx_'; |
44 |
|
define('MAIN_DB_PREFIX',$dolibarr_main_db_prefix); |
45 |
} |
} |
46 |
|
|
47 |
|
|
98 |
$db = new DoliDb($conf->db->type,$conf->db->host,$conf->db->user,$conf->db->pass,$conf->db->name); |
$db = new DoliDb($conf->db->type,$conf->db->host,$conf->db->user,$conf->db->pass,$conf->db->name); |
99 |
$ok = 0; |
$ok = 0; |
100 |
|
|
101 |
|
// Active module user |
102 |
|
$modName='modUser'; |
103 |
|
$file = $modName . ".class.php"; |
104 |
|
include_once("../includes/modules/$file"); |
105 |
|
$objMod = new $modName($db); |
106 |
|
$objMod->init(); |
107 |
|
|
108 |
// If first install |
// If first install |
109 |
if ($_POST["action"] == "set") |
if ($_POST["action"] == "set") |
110 |
{ |
{ |