[ Index ]
 

Code source de Dolibarr 2.0.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/htdocs/install/ -> index.php (source)

   1  <?php
   2  /* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 
   3   * Copyright (C) 2004 Laurent Destailleur  <eldy@users.sourceforge.net>
   4   *
   5   * This program is free software; you can redistribute it and/or modify
   6   * it under the terms of the GNU General Public License as published by
   7   * the Free Software Foundation; either version 2 of the License, or
   8   * (at your option) any later version.
   9   *
  10   * This program is distributed in the hope that it will be useful,
  11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13   * GNU General Public License for more details.
  14   *
  15   * You should have received a copy of the GNU General Public License
  16   * along with this program; if not, write to the Free Software
  17   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18   *
  19   * $Id: index.php,v 1.20 2005/12/16 00:32:13 eldy Exp $
  20   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/install/index.php,v $
  21   */
  22  
  23  /**
  24          \file       htdocs/install/index.php
  25          \ingroup    install
  26          \brief      Affichage page sélectin langue si premiere install. Si reinstall, passe directement à la page check.php
  27          \version    $Revision: 1.20 $
  28  */
  29  
  30  include_once ("./inc.php");
  31  include_once ("../html.form.class.php");
  32  
  33  
  34  $err = 0;
  35  
  36  // Si fichier conf existe deja, on est pas sur une premiere install,
  37  // on ne passe donc pas par la page de choix de langue
  38  if (file_exists($conffile))
  39  {
  40      header("Location: check.php");
  41      exit;
  42  }
  43  
  44  
  45  pHeader("", "check");   // Etape suivante = index2
  46  
  47  
  48  print '<center><img src="../theme/dolibarr_logo_2.png"></center>';
  49  
  50  // Propose la langue d'installation
  51  $langs->load("admin");
  52  $langs_available=$langs->get_available_languages("..");
  53  
  54  define('DOL_DOCUMENT_ROOT','..');
  55  
  56  print '<br><br><center>';
  57  print '<table><tr>';
  58  print '<td>'.$langs->trans("DefaultLanguage").' : </td><td align="left">';
  59  $html=new Form('');
  60  $html->select_lang('auto','selectlang',1);
  61  print '</td>';
  62  print '</tr></table></center>';
  63  
  64  
  65  // Si pas d'erreur, on affiche le bouton pour passer à l'étape suivante
  66  if ($err == 0) pFooter(0);
  67  
  68  ?>


Généré le : Mon Nov 26 12:29:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics