[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 init_db_config_read.php

Zen Cart 源代码 init_db_config_read.php




下载文件

文件名: init_db_config_read.php
文件类型: PHP文件
文件大小: 1.79 KiB
MD5: 7f5eabe945ebd46c96f04a217abebbf6

init_db_config_read.php - 关闭高亮
  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. ?>