* Copyright (C) 2004 Éric Seigne * Copyright (C) 2004-2005 Laurent Destailleur * Copyright (C) 2004 Benoit Mortier * Copyright (C) 2004 Sebastien DiCintio * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ * $Source$ * */ /** \file htdocs/install/fileconf.php \ingroup install \brief Demande les infos qui constituerons le contenu du fichier conf.php. Ce fichier sera remplie à l'étape suivante \version $Revision$ */ include_once("./inc.php"); $setuplang=isset($_POST["selectlang"])?$_POST["selectlang"]:(isset($_GET["selectlang"])?$_GET["selectlang"]:$langcode); $langs->defaultlang=$setuplang; $langs->load("install"); pHeader($langs->trans("ConfigurationFile"),"etape1"); // Ici, le fichier conf.php existe et est forcément editable car le test a été fait précédemment. include_once($conffile); print ''; print ''; print '"; if(! isset($dolibarr_main_url_root) || strlen($dolibarr_main_url_root) == 0) { // 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 (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"; } } else { $dolibarr_main_document_root = substr($_SERVER["SCRIPT_FILENAME"],0,strlen($_SERVER["SCRIPT_FILENAME"])- 21 ); // Nettoyage du path proposé // Gere les chemins windows avec double "\" $dolibarr_main_document_root = str_replace('\\\\','/',$dolibarr_main_document_root); // Supprime le slash ou antislash final $dolibarr_main_document_root = ereg_replace('[\\\\\/]$','',$dolibarr_main_document_root); } } ?>
'; print $langs->trans("WebPagesDirectory"); print " trans("WithNoSlashAtTheEnd")."
"; print $langs->trans("Examples").":
"; ?>
  • /var/www/dolibarr/htdocs
  • C:/wwwroot/dolibarr/htdocs
  • trans("DocumentsDirectory"); ?> trans("WithNoSlashAtTheEnd")."
    "; print "Il est recommandé de mettre ce répertoire en dehors du répertoire des pages web.
    "; print $langs->trans("Examples").":
    "; ?>
  • /var/www/dolibarr/documents
  • C:/wwwroot/dolibarr/documents
  • trans("URLRoot"); ?> "> trans("Examples").":
    "; ?>
  • http://dolibarr.lafrere.net
  • http://www.lafrere.net/dolibarr
  • trans("DolibarrDatabase"); ?>

    trans("DatabaseChoice"); ?>   trans("DatabaseType"); ?>
    trans("Server"); ?> Nom ou adresse ip du serveur de base de données, généralement 'localhost' quand le serveur est installé sur la même machine que le serveur web
    trans("DatabaseName"); ?> Nom de la base de données Dolibarr (sera créée si nécessaire)
    trans("Login"); ?> trans("AdminLogin"); ?>
    trans("Password"); ?> trans("AdminPassword"); ?>
    trans("CreateUser"); ?> trans("CheckToCreate"); ?>

    trans("DatabaseSuperUserAccess"); ?>

    trans("Login"); ?>
    Login de l'utilisateur ayant les droits de création de la base de données, inutile si votre base est déjà créée (comme lorsque vous êtes chez un hébergeur). Laisser vide si vous vous connectez en anonymous
    trans("Password"); ?>
    trans("KeepEmptyIfNoPassword"); ?>