mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 18:18:18 +01:00
69 lines
2.0 KiB
PHP
69 lines
2.0 KiB
PHP
<?php
|
|
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
* 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$
|
|
*/
|
|
|
|
/**
|
|
\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$
|
|
*/
|
|
|
|
include_once("./inc.php");
|
|
include_once("../html.form.class.php");
|
|
|
|
|
|
$err = 0;
|
|
|
|
// Si fichier conf existe deja, on est pas sur une premiere install,
|
|
// on ne passe donc pas par la page de choix de langue
|
|
if (file_exists($conffile))
|
|
{
|
|
header("Location: check.php");
|
|
exit;
|
|
}
|
|
|
|
|
|
pHeader("", "check"); // Etape suivante = index2
|
|
|
|
|
|
print '<center><img src="../theme/dolibarr_logo_2.png"></center>';
|
|
|
|
// Propose la langue d'installation
|
|
$langs->load("admin");
|
|
$langs_available=$langs->get_available_languages("..");
|
|
|
|
define('DOL_DOCUMENT_ROOT','..');
|
|
|
|
print '<br><br><center>';
|
|
print '<table><tr>';
|
|
print '<td>'.$langs->trans("DefaultLanguage").' : </td><td align="left">';
|
|
$html=new Form('');
|
|
$html->select_lang('auto','selectlang',1);
|
|
print '</td>';
|
|
print '</tr></table></center>';
|
|
|
|
|
|
// Si pas d'erreur, on affiche le bouton pour passer à l'étape suivante
|
|
if ($err == 0) pFooter(0);
|
|
|
|
?>
|