2004-10-20 00:24:10 +02:00
|
|
|
|
<?php
|
2005-02-12 18:14:35 +01:00
|
|
|
|
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
2004-02-02 02:41:33 +01:00
|
|
|
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
|
|
|
|
*
|
|
|
|
|
|
* 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$
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
2004-12-04 16:06:15 +01:00
|
|
|
|
/**
|
2005-02-13 17:47:32 +01:00
|
|
|
|
\file htdocs/install/index.php
|
|
|
|
|
|
\ingroup install
|
|
|
|
|
|
\brief Affichage page s<EFBFBD>lectin langue si premiere install. Si reinstall, passe directement <EFBFBD> la page check.php
|
|
|
|
|
|
\version $Revision$
|
2004-12-04 16:06:15 +01:00
|
|
|
|
*/
|
|
|
|
|
|
|
2005-02-12 22:25:39 +01:00
|
|
|
|
include_once("./inc.php");
|
2005-10-30 01:42:54 +02:00
|
|
|
|
include_once("../html.form.class.php");
|
2004-01-27 15:36:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
2005-05-14 00:43:56 +02:00
|
|
|
|
$err = 0;
|
|
|
|
|
|
|
2005-02-12 22:25:39 +01:00
|
|
|
|
// Si fichier conf existe deja, on est pas sur une premiere install,
|
|
|
|
|
|
// on ne passe donc pas par la page de choix de langue
|
2005-10-30 15:16:14 +01:00
|
|
|
|
if (file_exists($conffile))
|
2004-11-27 16:23:54 +01:00
|
|
|
|
{
|
2005-02-12 22:25:39 +01:00
|
|
|
|
header("Location: check.php");
|
2005-10-30 01:42:54 +02:00
|
|
|
|
exit;
|
2004-11-27 16:23:54 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2005-02-12 18:14:35 +01:00
|
|
|
|
|
2005-02-12 22:25:39 +01:00
|
|
|
|
pHeader("", "check"); // Etape suivante = index2
|
2004-11-27 16:23:54 +01:00
|
|
|
|
|
|
|
|
|
|
|
2005-12-16 01:32:13 +01:00
|
|
|
|
print '<center><img src="../theme/dolibarr_logo_2.png"></center>';
|
2005-02-12 22:25:39 +01:00
|
|
|
|
|
|
|
|
|
|
// Propose la langue d'installation
|
|
|
|
|
|
$langs->load("admin");
|
|
|
|
|
|
$langs_available=$langs->get_available_languages("..");
|
|
|
|
|
|
|
2005-10-30 01:42:54 +02:00
|
|
|
|
define('DOL_DOCUMENT_ROOT','..');
|
|
|
|
|
|
|
2005-12-16 01:32:13 +01:00
|
|
|
|
print '<br><br><center>';
|
2005-02-12 22:25:39 +01:00
|
|
|
|
print '<table><tr>';
|
2005-10-30 01:42:54 +02:00
|
|
|
|
print '<td>'.$langs->trans("DefaultLanguage").' : </td><td align="left">';
|
|
|
|
|
|
$html=new Form('');
|
2005-12-16 01:32:13 +01:00
|
|
|
|
$html->select_lang('auto','selectlang',1);
|
2005-10-30 01:42:54 +02:00
|
|
|
|
print '</td>';
|
2005-12-16 01:32:13 +01:00
|
|
|
|
print '</tr></table></center>';
|
2004-11-27 16:23:54 +01:00
|
|
|
|
|
2004-01-27 15:36:40 +01:00
|
|
|
|
|
2004-12-04 16:30:14 +01:00
|
|
|
|
// Si pas d'erreur, on affiche le bouton pour passer <20> l'<27>tape suivante
|
2005-10-30 02:07:00 +01:00
|
|
|
|
if ($err == 0) pFooter(0);
|
2004-01-27 15:36:40 +01:00
|
|
|
|
|
|
|
|
|
|
?>
|