read()) { if (preg_match('/\.php$/', $zv_file) > 0) { /** * load any user/contribution specific configuration files. */ include(DIR_WS_INCLUDES . 'extra_configures/' . $zv_file); } } } $loader_file = 'config.core.php'; $base_dir = DIR_WS_INCLUDES . 'auto_loaders/'; if (file_exists(DIR_WS_INCLUDES . 'auto_loaders/overrides/' . $loader_file)) { $base_dir = DIR_WS_INCLUDES . 'auto_loaders/overrides/'; } /** * load the default application_top autoloader file. */ include($base_dir . $loader_file); if ($loader_dir = dir(DIR_WS_INCLUDES . 'auto_loaders')) { while ($loader_file = $loader_dir->read()) { if ((preg_match('/^config\./', $loader_file) > 0) && (preg_match('/\.php$/', $loader_file) > 0)) { if ($loader_file != 'config.core.php') { $base_dir = DIR_WS_INCLUDES . 'auto_loaders/'; if (file_exists(DIR_WS_INCLUDES . 'auto_loaders/overrides/' . $loader_file)) { $base_dir = DIR_WS_INCLUDES . 'auto_loaders/overrides/'; } /** * load the application_top autoloader files. */ include($base_dir . $loader_file); } } } } /** * determine install status */ if (( (!file_exists('includes/configure.php') && !file_exists('includes/local/configure.php')) ) || (DB_TYPE == '') || (!file_exists('includes/classes/db/' .DB_TYPE . '/query_factory.php'))) { header('location: zc_install/index.php'); exit; } /** * load the autoloader interpreter code. */ require('includes/autoload_func.php'); /** * load the counter code **/ // counter and counter history require(DIR_WS_INCLUDES . 'counter.php'); // get customers unique IP that paypal does not touch $customers_ip_address = $_SERVER['REMOTE_ADDR']; if (!isset($_SESSION['customers_ip_address'])) { $_SESSION['customers_ip_address'] = $customers_ip_address; } ?>