diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php
index bddbe52018b..75efef3ea99 100644
--- a/htdocs/install/fileconf.php
+++ b/htdocs/install/fileconf.php
@@ -22,8 +22,7 @@
*/
include("./inc.php");
-pHeader("Fichier de configuration","fileconf");
-
+pHeader("Fichier de configuration","etape1");
$conf = "../conf/conf.php";
@@ -45,7 +44,7 @@ else
$docurl = 'documentation';
-if (!file_exists("../conf/conf.php"))
+if (!file_exists($conf))
{
print '
';
print "Le fichier conf.php n'existe pas reportez-vous à la ".$docurl." pour créer ce fichier
";
@@ -80,15 +79,14 @@ if ($err == 0)
if(strlen($dolibarr_main_url_root) == 0)
{
-$dolibarr_main_document_root = dirname($_SERVER["SCRIPT_FILENAME"]);
+$dolibarr_main_document_root = substr($_SERVER["SCRIPT_FILENAME"],0,strlen($_SERVER["SCRIPT_FILENAME"])- 21 );
}
print $dolibarr_main_document_root
?>
" name="main_dir">
-
+ |
@@ -100,13 +98,13 @@ if(strlen($main_url) > 0)
$dolibarr_main_url_root=$main_url;
if(strlen($dolibarr_main_url_root) == 0)
{
- $dolibarr_main_url_root = substr($_SERVER["SCRIPT_URI"],0,strlen($_SERVER["SCRIPT_URI"])-9);
+ $dolibarr_main_url_root = substr($_SERVER["SCRIPT_URI"],0,strlen($_SERVER["SCRIPT_URI"])-21);
}
print $dolibarr_main_url_root ;
?>">
-
+ |