diff --git a/htdocs/install/etape1.php b/htdocs/install/etape1.php index dd33073d5a3..dbeb6b4aa7b 100644 --- a/htdocs/install/etape1.php +++ b/htdocs/install/etape1.php @@ -84,6 +84,9 @@ if ($_POST["action"] == "set") fputs($fp, '$dolibarr_main_db_pass="'.$_POST["db_pass"].'";'); fputs($fp,"\n"); + fputs($fp, '$dolibarr_main_db_type="'.$_POST["db_type"].'";'); + fputs($fp,"\n"); + fputs($fp, '?>'); fclose($fp); diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php index 69f82eec4b0..468e11b8a14 100644 --- a/htdocs/install/fileconf.php +++ b/htdocs/install/fileconf.php @@ -82,8 +82,8 @@ if(! isset($dolibarr_main_url_root) || strlen($dolibarr_main_url_root) == 0) // ce n'est pas ce qu'on veut. Dans ce cas, on propose $_SERVER["DOCUMENT_ROOT"] if (eregi('php$',$_SERVER["SCRIPT_FILENAME"]) || eregi('php\.exe$',$_SERVER["SCRIPT_FILENAME"])) { $dolibarr_main_document_root=$_SERVER["DOCUMENT_ROOT"]; - if (! eregi('\/dolibarr\/htdocs$',$dolibarr_main_document_root)) { - $dolibarr_main_document_root.="/dolibarr/htdocs"; + if (! eregi('\/dolibarr\/htdocs$',$dolibarr_main_document_root)) { + $dolibarr_main_document_root.="/dolibarr/htdocs"; } } else { @@ -91,7 +91,7 @@ if(! isset($dolibarr_main_url_root) || strlen($dolibarr_main_url_root) == 0) # Nettoyage du path proposé $dolibarr_main_document_root = str_replace('\\\\','/',$dolibarr_main_document_root); # Gere les chemins windows avec double "\" $dolibarr_main_document_root = ereg_replace('[\\\\\/]$','',$dolibarr_main_document_root); # Supprime le "\" ou "/" de fin - } + } } print $dolibarr_main_document_root; ?> @@ -162,6 +162,21 @@ $dolibarr_main_db_host = "localhost"; } ?>