Fix: Regression pg install
This commit is contained in:
parent
48b0bcf284
commit
cd99e110c2
15
.cvsignore
15
.cvsignore
@ -1,7 +1,8 @@
|
||||
index.php
|
||||
documents
|
||||
*.htaccess
|
||||
*.settings
|
||||
*.project
|
||||
*.cache
|
||||
*.log
|
||||
index.php
|
||||
documents
|
||||
*.htaccess
|
||||
*.settings
|
||||
*.project
|
||||
*.cache
|
||||
*.log
|
||||
document
|
||||
|
||||
@ -25,7 +25,6 @@
|
||||
\version $Id$
|
||||
*/
|
||||
include_once("./inc.php");
|
||||
require_once($dolibarr_main_document_root."/lib/admin.lib.php");
|
||||
|
||||
$err = 0;
|
||||
$allowinstall = 0;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Éric Seigne <eric.seigne@ryxeo.com>
|
||||
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
* Copyright (C) 2004 Sebastien DiCintio <sdicintio@ressource-toi.org>
|
||||
*
|
||||
@ -23,12 +23,11 @@
|
||||
/**
|
||||
\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
|
||||
\brief Demande les infos qui constituerons le contenu du fichier conf.php. Ce fichier sera remplie <EFBFBD> l'<EFBFBD>tape suivante
|
||||
\version $Id$
|
||||
*/
|
||||
|
||||
include_once("./inc.php");
|
||||
require_once($dolibarr_main_document_root."/lib/admin.lib.php");
|
||||
|
||||
|
||||
$err=0;
|
||||
|
||||
@ -101,7 +100,7 @@ print $langs->trans("Examples").":<br>";
|
||||
<?php
|
||||
if(! isset($dolibarr_main_data_root) || strlen($dolibarr_main_data_root) == 0)
|
||||
{
|
||||
// Si le répertoire documents non défini, on en propose un par défaut
|
||||
// Si le r<EFBFBD>pertoire documents non d<>fini, on en propose un par d<>faut
|
||||
$dolibarr_main_data_root=ereg_replace("/htdocs$","",$dolibarr_main_document_root);
|
||||
$dolibarr_main_data_root.="/documents";
|
||||
}
|
||||
@ -127,19 +126,19 @@ if (isset($main_url) && $main_url)
|
||||
$dolibarr_main_url_root=$main_url;
|
||||
if (! isset($dolibarr_main_url_root) || strlen($dolibarr_main_url_root) == 0)
|
||||
{
|
||||
# Si défini (Ex: Apache sous Linux)
|
||||
# Si d<EFBFBD>fini (Ex: Apache sous Linux)
|
||||
if (isset($_SERVER["SCRIPT_URI"])) {
|
||||
$dolibarr_main_url_root=$_SERVER["SCRIPT_URI"];
|
||||
}
|
||||
# Si défini (Ex: Apache sous Caudium)
|
||||
# Si d<EFBFBD>fini (Ex: Apache sous Caudium)
|
||||
elseif (isset($_SERVER["SERVER_URL"]) && isset($_SERVER["DOCUMENT_URI"])) {
|
||||
$dolibarr_main_url_root=$_SERVER["SERVER_URL"].$_SERVER["DOCUMENT_URI"];
|
||||
}
|
||||
# Si SCRIPT_URI, SERVER_URL, DOCUMENT_URI non défini (Ex: Apache 2.0.44 pour Windows)
|
||||
# Si SCRIPT_URI, SERVER_URL, DOCUMENT_URI non d<EFBFBD>fini (Ex: Apache 2.0.44 pour Windows)
|
||||
else {
|
||||
$dolibarr_main_url_root="http://".$_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"];
|
||||
}
|
||||
# Nettoyage de l'URL proposée
|
||||
# Nettoyage de l'URL propos<EFBFBD>e
|
||||
// $dolibarr_main_url_root = substr($dolibarr_main_url_root,0,strlen($dolibarr_main_url_root)-12);
|
||||
$dolibarr_main_url_root = ereg_replace('\/fileconf\.php$','',$dolibarr_main_url_root); # Supprime le /fileconf.php
|
||||
$dolibarr_main_url_root = ereg_replace('\/$','',$dolibarr_main_url_root); # Supprime le /
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
|
||||
require_once('../translate.class.php');
|
||||
require_once('../lib/functions.inc.php');
|
||||
require_once('../lib/admin.lib.php');
|
||||
|
||||
// DOL_DOCUMENT_ROOT has been defined in function.inc.php to '..'
|
||||
|
||||
|
||||
@ -15,17 +15,15 @@
|
||||
* 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$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/install/index.php
|
||||
\ingroup install
|
||||
\brief Affichage page sélectin langue si premiere install. Si reinstall, passe directement à la page check.php
|
||||
\version $Revision$
|
||||
\brief Affichage page selectin langue si premiere install.
|
||||
Si reinstall, passe directement a la page check.php
|
||||
\version $Id$
|
||||
*/
|
||||
|
||||
include_once("./inc.php");
|
||||
include_once("../html.form.class.php");
|
||||
|
||||
@ -59,7 +57,7 @@ print '</td>';
|
||||
print '</tr></table></center>';
|
||||
|
||||
|
||||
// Si pas d'erreur, on affiche le bouton pour passer à l'étape suivante
|
||||
// Si pas d'erreur, on affiche le bouton pour passer <EFBFBD> l'<27>tape suivante
|
||||
if ($err == 0) pFooter(0);
|
||||
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user