2004-10-20 00:24:10 +02:00
|
|
|
<?php
|
2009-03-13 14:14:29 +01:00
|
|
|
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
2010-07-20 20:14:53 +02:00
|
|
|
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
2004-02-02 02:41:33 +01:00
|
|
|
*
|
|
|
|
|
* 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
|
2013-01-16 15:36:08 +01:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-02-02 02:41:33 +01:00
|
|
|
* (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
|
2011-08-01 01:24:38 +02:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2004-02-02 02:41:33 +01:00
|
|
|
*/
|
|
|
|
|
|
2004-12-04 16:06:15 +01:00
|
|
|
/**
|
2008-10-25 19:27:15 +02:00
|
|
|
* \file htdocs/install/index.php
|
|
|
|
|
* \ingroup install
|
2012-03-07 14:27:17 +01:00
|
|
|
* \brief Show page to select language. This is done only for a first installation.
|
|
|
|
|
* For a reinstall this page redirect to page check.php
|
2008-10-25 19:27:15 +02:00
|
|
|
*/
|
2012-08-23 02:46:16 +02:00
|
|
|
include_once 'inc.php';
|
2012-08-23 02:04:35 +02:00
|
|
|
include_once '../core/class/html.form.class.php';
|
|
|
|
|
include_once '../core/class/html.formadmin.class.php';
|
2004-01-27 15:36:40 +01:00
|
|
|
|
2005-05-14 00:43:56 +02:00
|
|
|
$err = 0;
|
|
|
|
|
|
2007-03-06 19:30:16 +01:00
|
|
|
// Si fichier conf existe deja et rempli, on est pas sur une premiere install,
|
2005-02-12 22:25:39 +01:00
|
|
|
// on ne passe donc pas par la page de choix de langue
|
2007-03-06 19:30:16 +01:00
|
|
|
if (file_exists($conffile) && isset($dolibarr_main_url_root))
|
2004-11-27 16:23:54 +01:00
|
|
|
{
|
2007-03-06 19:30:16 +01:00
|
|
|
header("Location: check.php?testget=ok");
|
2005-10-30 01:42:54 +02:00
|
|
|
exit;
|
2004-11-27 16:23:54 +01:00
|
|
|
}
|
|
|
|
|
|
2010-02-28 01:27:37 +01:00
|
|
|
$langs->load("admin");
|
|
|
|
|
|
2005-02-12 18:14:35 +01:00
|
|
|
|
2008-10-25 19:27:15 +02:00
|
|
|
/*
|
|
|
|
|
* View
|
|
|
|
|
*/
|
|
|
|
|
|
2009-11-04 23:13:22 +01:00
|
|
|
$formadmin=new FormAdmin(''); // Note: $db does not exist yet but we don't need it, so we put ''.
|
2008-10-25 19:27:15 +02:00
|
|
|
|
2012-03-07 14:27:17 +01:00
|
|
|
pHeader("", "check"); // Etape suivante = check
|
2004-11-27 16:23:54 +01:00
|
|
|
|
|
|
|
|
|
2010-02-28 01:27:37 +01:00
|
|
|
// Ask installation language
|
2005-12-16 01:32:13 +01:00
|
|
|
print '<br><br><center>';
|
2010-09-15 20:07:53 +02:00
|
|
|
print '<table>';
|
|
|
|
|
|
|
|
|
|
print '<tr>';
|
2005-10-30 01:42:54 +02:00
|
|
|
print '<td>'.$langs->trans("DefaultLanguage").' : </td><td align="left">';
|
2010-09-15 20:07:53 +02:00
|
|
|
print $formadmin->select_language('auto','selectlang',1,0,0,1);
|
2005-10-30 01:42:54 +02:00
|
|
|
print '</td>';
|
2010-09-15 20:07:53 +02:00
|
|
|
print '</tr>';
|
|
|
|
|
|
|
|
|
|
print '</table></center>';
|
2004-11-27 16:23:54 +01:00
|
|
|
|
2010-09-15 20:07:53 +02:00
|
|
|
print '<br><br>'.$langs->trans("SomeTranslationAreUncomplete");
|
2004-01-27 15:36:40 +01:00
|
|
|
|
2009-11-04 14:37:55 +01:00
|
|
|
// Si pas d'erreur, on affiche le bouton pour passer a l'etape suivante
|
2005-10-30 02:07:00 +01:00
|
|
|
if ($err == 0) pFooter(0);
|
2004-01-27 15:36:40 +01:00
|
|
|
|
|
|
|
|
?>
|