[ Index ]
 

Code source de Horde 3.1.3

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

title

Body

[fermer]

/lib/ -> core.php (source)

   1  <?php
   2  /**
   3   * Horde Application Framework core services file.
   4   *
   5   * This file sets up any necessary include path variables and includes
   6   * the minimum required Horde libraries.
   7   *
   8   * $Horde: horde/lib/core.php,v 1.26.6.7 2006/01/07 16:40:28 chuck Exp $
   9   *
  10   * Copyright 1999-2006 Chuck Hagenbuch <chuck@horde.org>
  11   *
  12   * See the enclosed file COPYING for license information (LGPL). If you
  13   * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
  14   */
  15  
  16  /* Turn PHP stuff off that can really screw things up. */
  17  ini_set('magic_quotes_sybase', 0);
  18  ini_set('magic_quotes_runtime', 0);
  19  
  20  /* Unset all variables populated through register_globals. */
  21  if (ini_get('register_globals')) {
  22      foreach (array_keys($_GET) as $key) {
  23          unset($$key);
  24      }
  25      foreach (array_keys($_POST) as $key) {
  26          unset($$key);
  27      }
  28      foreach (array_keys($_COOKIE) as $key) {
  29          unset($$key);
  30      }
  31      foreach (array_keys($_ENV) as $key) {
  32          unset($$key);
  33      }
  34      foreach (array_keys($_SERVER) as $key) {
  35          unset($$key);
  36      }
  37  }
  38  
  39  /* If the Horde Framework packages are not installed in PHP's global
  40   * include_path, you must add an ini_set() call here to add their location to
  41   * the include_path. */
  42  ini_set('include_path', dirname(__FILE__) . PATH_SEPARATOR . ini_get('include_path'));
  43  
  44  /* PEAR base class. */
  45  include_once 'PEAR.php';
  46  
  47  /* Horde core classes. */
  48  include_once  'Horde.php';
  49  include_once  'Horde/Registry.php';
  50  include_once  'Horde/String.php';
  51  include_once  'Horde/NLS.php';
  52  include_once  'Horde/Notification.php';
  53  include_once  'Horde/Auth.php';
  54  include_once  'Horde/Browser.php';
  55  include_once  'Horde/Perms.php';
  56  
  57  /* Browser detection object. */
  58  if (class_exists('Browser')) {
  59      $browser = &Browser::singleton();
  60  }


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7