[ Index ]
 

Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/admin/includes/init_includes/ -> init_file_db_names.php (source)

   1  <?php
   2  /**

   3   * @package admin

   4   * @copyright Copyright 2003-2006 Zen Cart Development Team

   5   * @copyright Portions Copyright 2003 osCommerce

   6   * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

   7   * @version $Id: init_file_db_names.php 4240 2006-08-24 10:38:16Z drbyte $

   8   */
   9  if (!defined('IS_ADMIN_FLAG')) {
  10    die('Illegal Access');
  11  }
  12  /**

  13   * load the filename/database table names and he compatiblity functions

  14   *

  15   * @package admin

  16   * @copyright Copyright 2003-2005 zen-cart Development Team

  17   * @copyright Portions Copyright 2003 osCommerce

  18  **/
  19  // set the type of request (secure or not)

  20    $request_type = (strtolower($_SERVER['HTTPS']) == 'on' || $_SERVER['HTTPS'] == '1' || strstr(strtoupper($_SERVER['HTTP_X_FORWARDED_BY']),'SSL') || strstr(strtoupper($_SERVER['HTTP_X_FORWARDED_HOST']),'SSL'))  ? 'SSL' : 'NONSSL';
  21  
  22  // set php_self in the local scope

  23    if (!isset($PHP_SELF)) $PHP_SELF = $_SERVER['PHP_SELF'];
  24  
  25  // include the list of project filenames

  26    require(DIR_FS_CATALOG . DIR_WS_INCLUDES . 'filenames.php');
  27  
  28  // include the list of project database tables

  29    require(DIR_FS_CATALOG . DIR_WS_INCLUDES . 'database_tables.php');
  30  
  31  // include the list of compatibility issues

  32    require(DIR_FS_CATALOG . DIR_WS_FUNCTIONS . 'compatibility.php');
  33  
  34  // include the list of extra database tables and filenames

  35  $extra_datafiles_dir = DIR_WS_INCLUDES . 'extra_datafiles/';
  36  if ($dir = @dir($extra_datafiles_dir)) {
  37    while ($file = $dir->read()) {
  38      if (!is_dir($extra_datafiles_dir . $file)) {
  39        if (preg_match('/\.php$/', $file) > 0) {
  40          require($extra_datafiles_dir . $file);
  41        }
  42      }
  43    }
  44    $dir->close();
  45  }
  46  ?>


Généré le : Mon Nov 26 16:45:43 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics