Execute('select configuration_key as cfgkey, configuration_value as cfgvalue from ' . TABLE_CONFIGURATION, '', $use_cache, 150); while (!$configuration->EOF) { /** * dynamic define based on info read from DB */ define(strtoupper($configuration->fields['cfgkey']), $configuration->fields['cfgvalue']); $configuration->MoveNext(); } $configuration = $db->Execute('select configuration_key as cfgkey, configuration_value as cfgvalue from ' . TABLE_PRODUCT_TYPE_LAYOUT); while (!$configuration->EOF) { /** * dynamic define based on info read from DB * @ignore */ define(strtoupper($configuration->fields['cfgkey']), $configuration->fields['cfgvalue']); $configuration->movenext(); } if (file_exists(DIR_WS_CLASSES . 'db/' . DB_TYPE . '/define_queries.php')) { /** * Load the database dependant query defines */ include(DIR_WS_CLASSES . 'db/' . DB_TYPE . '/define_queries.php'); } ?>