[ 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/ -> inc.php (source)

   1  <?php
   2  /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> 
   3   * Copyright (C) 2004 Benoit Mortier       <benoit.mortier@opensides.be>
   4   * Copyright (C) 2004 Sebastien DiCintio   <sdicintio@ressource-toi.org>
   5   *
   6   * This program is free software; you can redistribute it and/or modify
   7   * it under the terms of the GNU General Public License as published by
   8   * the Free Software Foundation; either version 2 of the License, or
   9   * (at your option) any later version.
  10   *
  11   * This program is distributed in the hope that it will be useful,
  12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14   * GNU General Public License for more details.
  15   *
  16   * You should have received a copy of the GNU General Public License
  17   * along with this program; if not, write to the Free Software
  18   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19   *
  20   * $Id: inc.php,v 1.21 2005/11/04 01:28:28 eldy Exp $
  21   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/install/inc.php,v $
  22   */
  23  
  24  /**        \file       htdocs/install/inc.php
  25          \brief      Fichier include du programme d'installation
  26          \version    $Revision: 1.21 $
  27  */
  28  
  29  $docurl = '<a href="doc/dolibarr-install.html">documentation</a>';
  30  $conffile = "../conf/conf.php";
  31  // Defini objet langs
  32  require_once ('../translate.class.php');
  33  
  34  $langs = new Translate('../langs');
  35  $langs->setDefaultLang('auto');
  36  $langs->setPhpLang();
  37  
  38  $bc[false]=' class="bg1"';
  39  $bc[true]=' class="bg2"';
  40  
  41  function pHeader($soutitre,$next,$action='set')
  42  {
  43      global $langs;
  44      $langs->load("main");
  45      $langs->load("admin");
  46      print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'."\n";
  47      print '<html>';
  48      print '<head>';
  49      print '<meta http-equiv="content-type" content="text/html; charset='.$langs->trans("charset").'">';
  50      print '<link rel="stylesheet" type="text/css" href="./default.css">';
  51      print '<title>'.$langs->trans("DolibarrSetup").'</title>';
  52      print '</head>';
  53      print '<body>';
  54      print '<span class="titre"><a class="titre" href="index.php">'.$langs->trans("DolibarrSetup").'</a></span>';
  55      print '<form action="'.$next.'.php" method="POST">';
  56      print '<input type="hidden" name="action" value="'.$action.'">';
  57      print '<div class="main">';
  58      if ($soutitre) {
  59          print '<div class="soustitre">'.$soutitre.'</div>';
  60      }
  61      print '<div class="main-inside">';
  62  }
  63  
  64  function pFooter($nonext=0,$setuplang='')
  65  {
  66      global $langs;
  67      $langs->load("main");
  68      $langs->load("admin");
  69      
  70      print '</div></div>';
  71      if (! $nonext)
  72      {
  73          print '<div class="barrebottom"><input type="submit" value="'.$langs->trans("NextStep").' ->"></div>';
  74      }
  75      if ($setuplang)
  76      {
  77          print '<input type="hidden" name="selectlang" value="'.$setuplang.'">';
  78      }
  79      print '</form>';
  80      print '</body>';
  81      print '</html>';
  82  }
  83  
  84  function dolibarr_syslog($message)
  85  {
  86      // Les fonctions syslog ne sont pas toujours installés ou autorisées chez les hébergeurs
  87      if (function_exists("define_syslog_variables"))
  88      {
  89          // \todo    Désactiver sous Windows (gros problème mémoire et faute de protections)
  90          //  if (1 == 2) {
  91                define_syslog_variables();
  92                openlog("dolibarr", LOG_PID | LOG_PERROR, LOG_USER);    # LOG_USER au lieu de LOG_LOCAL0 car non accepté par tous les php
  93                syslog(LOG_WARNING, $message);
  94                closelog();
  95          //  }
  96      }
  97  }
  98  ?>


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