diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php
index 1dfa34fe518..db71e3792c5 100644
--- a/htdocs/install/fileconf.php
+++ b/htdocs/install/fileconf.php
@@ -86,42 +86,42 @@ if (! empty($force_install_message))
+
- ';
- print $langs->trans("WebPagesDirectory");
- print "";
+ ';
+ print $langs->trans("WebPagesDirectory");
+ print "";
- if(! isset($dolibarr_main_url_root) || dol_strlen($dolibarr_main_url_root) == 0)
- {
- //print "x".$_SERVER["SCRIPT_FILENAME"]." y".$_SERVER["DOCUMENT_ROOT"];
+ if(! isset($dolibarr_main_url_root) || dol_strlen($dolibarr_main_url_root) == 0)
+ {
+ //print "x".$_SERVER["SCRIPT_FILENAME"]." y".$_SERVER["DOCUMENT_ROOT"];
- // Si le php fonctionne en CGI, alors SCRIPT_FILENAME vaut le path du php et
- // ce n'est pas ce qu'on veut. Dans ce cas, on propose $_SERVER["DOCUMENT_ROOT"]
- if (preg_match('/^php$/i',$_SERVER["SCRIPT_FILENAME"]) || preg_match('/[\\/]php$/i',$_SERVER["SCRIPT_FILENAME"]) || preg_match('/php\.exe$/i',$_SERVER["SCRIPT_FILENAME"]))
- {
- $dolibarr_main_document_root=$_SERVER["DOCUMENT_ROOT"];
+ // Si le php fonctionne en CGI, alors SCRIPT_FILENAME vaut le path du php et
+ // ce n'est pas ce qu'on veut. Dans ce cas, on propose $_SERVER["DOCUMENT_ROOT"]
+ if (preg_match('/^php$/i',$_SERVER["SCRIPT_FILENAME"]) || preg_match('/[\\/]php$/i',$_SERVER["SCRIPT_FILENAME"]) || preg_match('/php\.exe$/i',$_SERVER["SCRIPT_FILENAME"]))
+ {
+ $dolibarr_main_document_root=$_SERVER["DOCUMENT_ROOT"];
- if (! preg_match('/[\\/]dolibarr[\\/]htdocs$/i',$dolibarr_main_document_root))
- {
- $dolibarr_main_document_root.="/dolibarr/htdocs";
- }
- }
- else
- {
- $dolibarr_main_document_root = substr($_SERVER["SCRIPT_FILENAME"],0,dol_strlen($_SERVER["SCRIPT_FILENAME"]) - 21);
- // Nettoyage du path propose
- // Gere les chemins windows avec double "\"
- $dolibarr_main_document_root = str_replace('\\\\','/',$dolibarr_main_document_root);
+ if (! preg_match('/[\\/]dolibarr[\\/]htdocs$/i',$dolibarr_main_document_root))
+ {
+ $dolibarr_main_document_root.="/dolibarr/htdocs";
+ }
+ }
+ else
+ {
+ $dolibarr_main_document_root = substr($_SERVER["SCRIPT_FILENAME"],0,dol_strlen($_SERVER["SCRIPT_FILENAME"]) - 21);
+ // Nettoyage du path propose
+ // Gere les chemins windows avec double "\"
+ $dolibarr_main_document_root = str_replace('\\\\','/',$dolibarr_main_document_root);
- // Supprime les slash ou antislash de fins
- $dolibarr_main_document_root = preg_replace('/[\\/]+$/','',$dolibarr_main_document_root);
- }
- }
- //echo $PMA_MYSQL_INT_VERSION;
- ?>
-
+ // Supprime les slash ou antislash de fins
+ $dolibarr_main_document_root = preg_replace('/[\\/]+$/','',$dolibarr_main_document_root);
+ }
+ }
+ ?>
+
+ name="main_dir">
trans("WithNoSlashAtTheEnd")." ";
@@ -134,9 +134,10 @@ if (! empty($force_install_message))
+
-
trans("DocumentsDirectory"); ?>
-
+
trans("DocumentsDirectory"); ?>
+
-
+
+ name="main_data_dir">
trans("WithNoSlashAtTheEnd")." ";
@@ -167,44 +168,41 @@ if (! empty($force_install_message))
-
-
trans("URLRoot"); ?>
-
-
">
-
trans("Examples").": ";
- ?>
+?>
+
+
trans("URLRoot"); ?>
+
+
+ value="">
+
+
trans("Examples").": "; ?>
http://localhost/
http://www.myserver.com:8180/dolibarr
@@ -242,7 +240,7 @@ if (1 == 2) { // Disabled during install process because HTTPS may not be yet
}
?>