[ Index ]
 

Code source de Dotclear 1.2.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/install/ -> index.php (source)

   1  <?php
   2  # ***** BEGIN LICENSE BLOCK *****
   3  # This file is part of DotClear.
   4  # Copyright (c) 2004 Olivier Meunier and contributors. All rights
   5  # reserved.
   6  #
   7  # DotClear is free software; you can redistribute it and/or modify
   8  # it under the terms of the GNU General Public License as published by
   9  # the Free Software Foundation; either version 2 of the License, or
  10  # (at your option) any later version.
  11  # 
  12  # DotClear is distributed in the hope that it will be useful,
  13  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15  # GNU General Public License for more details.
  16  # 
  17  # You should have received a copy of the GNU General Public License
  18  # along with DotClear; if not, write to the Free Software
  19  # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  20  #
  21  # ***** END LICENSE BLOCK *****
  22  
  23  define('NOT_CHECK_CONFIG',true);
  24  
  25  require dirname(__FILE__).'/prepend.php';
  26  
  27  $installed = file_exists(dirname(__FILE__).'/../conf/config.php');
  28  
  29  if (!$installed) {
  30      $ses->reg('step',2);
  31  }
  32  
  33  require dirname(__FILE__).'/__top.php';
  34  
  35  echo '<h2>'.__('Welcome on DotClear installation').'</h2>';
  36  
  37  echo '<p>'.__('You are about to install DotClear. Please choose your language and encoding.').'</p>';
  38  
  39  # On tente de déterminer la première langue
  40  $dlang = '';
  41  if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']))
  42  {
  43      $acclang = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
  44      $L = explode(';', $acclang[0]);
  45      $dlang = substr(trim($L[0]),0,2);
  46  }
  47  
  48  if(!$installed)
  49  {
  50      echo
  51      '<form action="check.php" method="post">'.
  52      '<p class="field"><label class="float" for="lang">'.__('Language').' :</label> '.
  53      form::combo('lang',l10n::getISOcodes(1),$dlang).'</p>'.
  54      '<p class="field"><label class="float" for="encoding">'.__('Encoding').' :</label> '.
  55      form::combo('encoding',array('ISO-8859-1'=>'ISO-8859-1','UTF-8'=>'UTF-8'),'UTF-8').'</p>'.
  56      '</p>'.
  57      '<p><input type="submit" class="submit" value="'.__('Go').' &#187;" /></p>'.
  58      '</form>';
  59  }
  60  else
  61  {
  62      echo
  63      '<p class="important">'.__('DotClear is still installed.').'</p>';
  64  }
  65  
  66  echo
  67  '<p>'.__('Note: You must accept session cookies to use this installer.').'</p>';
  68  ?>
  69  
  70  <?php require dirname(__FILE__).'/__bottom.php'; ?>


Généré le : Fri Feb 23 21:40:15 2007 par Balluche grâce à PHPXref 0.7