[ 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_db_config_read.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_db_config_read.php 3001 2006-02-09 21:45:06Z wilt $

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

  13    $project_db_info= $db->Execute("select * from " . TABLE_PROJECT_VERSION . " WHERE project_version_key = 'Zen-Cart Database' ");
  14    define('PROJECT_DB_VERSION_MAJOR',$project_db_info->fields['project_version_major']);
  15    define('PROJECT_DB_VERSION_MINOR',$project_db_info->fields['project_version_minor']);
  16    define('PROJECT_DB_VERSION_PATCH1',$project_db_info->fields['project_version_patch1']);
  17    define('PROJECT_DB_VERSION_PATCH2',$project_db_info->fields['project_version_patch2']);
  18    define('PROJECT_DB_VERSION_PATCH1_SOURCE',$project_db_info->fields['project_version_patch1_source']);
  19    define('PROJECT_DB_VERSION_PATCH2_SOURCE',$project_db_info->fields['project_version_patch2_source']);
  20  
  21  // set application wide parameters

  22    $configuration = $db->Execute('select configuration_key as cfgKey, configuration_value as cfgValue
  23                                   from ' . TABLE_CONFIGURATION);
  24    while (!$configuration->EOF) {
  25      define($configuration->fields['cfgKey'], $configuration->fields['cfgValue']);
  26      $configuration->MoveNext();
  27    }
  28  
  29  // set product type layout paramaters

  30    $configuration = $db->Execute('select configuration_key as cfgKey, configuration_value as cfgValue
  31                            from ' . TABLE_PRODUCT_TYPE_LAYOUT);
  32  
  33    while (!$configuration->EOF) {
  34      define($configuration->fields['cfgKey'], $configuration->fields['cfgValue']);
  35      $configuration->movenext();
  36    }
  37  ?>


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