* Copyright (C) 2004 Eric Seigne * Copyright (C) 2004-2008 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. */ /** \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 $Id$ */ include_once("./inc.php"); $err=0; $setuplang=isset($_POST["selectlang"])?$_POST["selectlang"]:(isset($_GET["selectlang"])?$_GET["selectlang"]:'auto'); $langs->setDefaultLang($setuplang); $langs->load("install"); // Init "forced values" to nothing. "forced values" are used after an doliwamp install wizard. if (! isset($force_install_type)) $force_install_type=''; if (! isset($force_install_port)) $force_install_port=''; if (! isset($force_install_database)) $force_install_database=''; if (! isset($force_install_createdatabase)) $force_install_createdatabase=''; if (! isset($force_install_databaselogin)) $force_install_databaselogin=''; if (! isset($force_install_databasepass)) $force_install_databasepass=''; if (! isset($force_install_databaserootlogin)) $force_install_databaserootlogin=''; if (! isset($force_install_databaserootpass)) $force_install_databaserootpass=''; if (file_exists("./install.forced.php")) include_once("./install.forced.php"); dolibarr_install_syslog("Fileconf: Entering fileconf.php page"); /* * View */ pHeader($langs->trans("ConfigurationFile"),"etape0"); print ''; ?> '; print '"; if(! isset($dolibarr_main_url_root) || 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 (eregi('^php$',$_SERVER["SCRIPT_FILENAME"]) || 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 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 = ereg_replace('[\\\/]+$','',$dolibarr_main_document_root); } } //echo $PMA_MYSQL_INT_VERSION; ?>

trans("Main"); ?>

'; print $langs->trans("WebPagesDirectory"); print " trans("WithNoSlashAtTheEnd")."
"; print $langs->trans("Examples").":
"; ?>
  • /var/www/dolibarr/htdocs
  • C:/wwwroot/dolibarr/htdocs
  • trans("DocumentsDirectory"); ?> trans("WithNoSlashAtTheEnd")."
    "; print $langs->trans("DirectoryRecommendation")."
    "; print $langs->trans("Examples").":
    "; ?>
  • /var/dolibarr_documents
  • C:/My Documents/dolibarr/
  • trans("URLRoot"); ?> "> trans("Examples").":
    "; ?>
  • http://localhost/
  • http://www.myserver.com:8180/dolibarr

  • trans("DolibarrDatabase"); ?>

    trans("DriverType"); ?> = '.versiontostring($versionbasemin).')'; if ($type=='mysqli') $note='(Mysql >= '.versiontostring($versionbasemin).')'; if ($type=='pgsql') $note='(Postgresql >= '.versiontostring($versionbasemin).')'; if ($type=='mssql') $note='(SQL Server >= '.versiontostring($versionbasemin).')'; // Affiche ligne dans liste $option.=''; } } ?>   trans("DatabaseType"); ?>
    trans("Server"); ?> trans("ServerAddressDescription"); ?>
    trans("Port"); ?> trans("ServerPortDescription"); ?>
    trans("DatabaseName"); ?> trans("DatabaseName"); ?>
    trans("CreateDatabase"); ?> > trans("CheckToCreateDatabase"); ?>
    trans("Login"); ?> trans("AdminLogin"); ?>
    trans("Password"); ?> trans("AdminPassword"); ?>
    trans("CreateUser"); ?> trans("CheckToCreateUser"); ?>

    trans("DatabaseSuperUserAccess"); ?>

    trans("Login"); ?>
    trans("DatabaseRootLoginDescription"); ?>
    trans("Password"); ?>
    trans("KeepEmptyIfNoPassword"); ?>