[ 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/admin/system/ -> os.php (source)

   1  <?php
   2  /* Copyright (C) 2004 Laurent Destailleur  <eldy@users.sourceforge.net>
   3   *
   4   * This program is free software; you can redistribute it and/or modify
   5   * it under the terms of the GNU General Public License as published by
   6   * the Free Software Foundation; either version 2 of the License, or
   7   * (at your option) any later version.
   8   *
   9   * This program is distributed in the hope that it will be useful,
  10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12   * GNU General Public License for more details.
  13   *
  14   * You should have received a copy of the GNU General Public License
  15   * along with this program; if not, write to the Free Software
  16   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17   *
  18   * $Id: os.php,v 1.7 2005/07/02 13:19:18 eldy Exp $
  19   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/admin/system/os.php,v $
  20   */
  21  
  22  /**
  23          \file       htdocs/admin/system/os.php
  24          \brief      Page des infos système de l'OS
  25          \version    $Revision: 1.7 $
  26  */
  27  
  28  require ("./pre.inc.php");
  29  
  30  $langs->load("admin");
  31  
  32  if (!$user->admin)
  33    accessforbidden();
  34  
  35  
  36  llxHeader();
  37  
  38  print_titre("OS");
  39  
  40  print "<br>\n";
  41  
  42  print '<table class="noborder" width="100%">';
  43  print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>';
  44  print "\n";
  45  
  46  // Récupère l'OS au sens PHP
  47  print "<tr $bc[0]><td width=\"240\">".$langs->trans("PHP_OS")."</td><td>".PHP_OS."</td></tr>\n";
  48  
  49  // Récupère la version de l'OS
  50  ob_start(); 
  51  phpinfo();
  52  $chaine = ob_get_contents(); 
  53  ob_end_clean(); 
  54  eregi('System </td><td class="v">([^\/]*)</td>',$chaine,$reg);
  55  print "<tr $bc[1]><td width=\"240\">".$langs->trans("Version")."</td><td>".$reg[1]."</td></tr>\n";
  56  print '</table>';
  57  
  58  
  59  llxFooter('$Date: 2005/07/02 13:19:18 $ - $Revision: 1.7 $');
  60  ?>


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