ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/includes/init_includes/init_db_config_read.php
Go to the documentation of this file.
00001 <?php
00009 if (!defined('IS_ADMIN_FLAG')) {
00010   die('Illegal Access');
00011 }
00012 // Determine the DATABASE patch level
00013   $project_db_info= $db->Execute("select * from " . TABLE_PROJECT_VERSION . " WHERE project_version_key = 'Zen-Cart Database' ");
00014   define('PROJECT_DB_VERSION_MAJOR',$project_db_info->fields['project_version_major']);
00015   define('PROJECT_DB_VERSION_MINOR',$project_db_info->fields['project_version_minor']);
00016   define('PROJECT_DB_VERSION_PATCH1',$project_db_info->fields['project_version_patch1']);
00017   define('PROJECT_DB_VERSION_PATCH2',$project_db_info->fields['project_version_patch2']);
00018   define('PROJECT_DB_VERSION_PATCH1_SOURCE',$project_db_info->fields['project_version_patch1_source']);
00019   define('PROJECT_DB_VERSION_PATCH2_SOURCE',$project_db_info->fields['project_version_patch2_source']);
00020 
00021 // set application wide parameters
00022   $configuration = $db->Execute('select configuration_key as cfgKey, configuration_value as cfgValue
00023                                  from ' . TABLE_CONFIGURATION);
00024   while (!$configuration->EOF) {
00025     define($configuration->fields['cfgKey'], $configuration->fields['cfgValue']);
00026     $configuration->MoveNext();
00027   }
00028 
00029 // set product type layout paramaters
00030   $configuration = $db->Execute('select configuration_key as cfgKey, configuration_value as cfgValue
00031                           from ' . TABLE_PRODUCT_TYPE_LAYOUT);
00032 
00033   while (!$configuration->EOF) {
00034     define($configuration->fields['cfgKey'], $configuration->fields['cfgValue']);
00035     $configuration->movenext();
00036   }
00037 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations