Click here for installation'; } else { die('ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?'); } } /** * load the main configure file. */ require('includes/configure.php'); /** * ignore version-check if INI file setting has been set */ if (file_exists(DIR_FS_ADMIN . 'includes/local/skip_version_check.ini')) { $lines=@file(DIR_FS_ADMIN . 'includes/local/skip_version_check.ini'); foreach($lines as $line) { if (substr($line,0,14)=='admin_configure_php_check=') $check_cfg=substr(trim(strtolower(str_replace('admin_configure_php_check=','',$line))),0,3); } } /* // turned off for now if ($check_cfg != 'off') { // if the admin/includes/configure.php file doesn't contain admin-related content, throw error $zc_pagepath = str_replace(basename($PHP_SELF),'',__FILE__); //remove page name from full path of current page $zc_pagepath = str_replace(array('\\','\\\\'),'/',$zc_pagepath); // convert '\' marks to '/' $zc_pagepath = str_replace('//','/',$zc_pagepath); //convert doubles to single $zc_pagepath = str_replace(strrchr($zc_pagepath,'/'),'',$zc_pagepath); // remove trailing '/' $zc_adminpage = str_replace('\\','/',DIR_FS_ADMIN); //convert "\" to '/' $zc_adminpage = str_replace('//','/',$zc_adminpage); // remove doubles $zc_adminpage = str_replace(strrchr($zc_adminpage,'/'),'',$zc_adminpage); // remove trailing '/' if (!defined('DIR_WS_ADMIN') || $zc_pagepath != $zc_adminpage ) { echo ('ERROR: The admin/includes/configure.php file has invalid configuration. Please rebuild, or verify specified paths.'); if (file_exists('../zc_install/index.php')) { echo '
Click here for installation'; } echo '



['.$zc_pagepath.']   «»   [' .$zc_adminpage.']
'; } } */ /** * include the list of extra configure files */ if ($za_dir = @dir(DIR_WS_INCLUDES . 'extra_configures')) { while ($zv_file = $za_dir->read()) { if (strstr($zv_file, '.php')) { /** * include the list of extra configure 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); } } } } /** * load the autoloader interpreter code. */ require(DIR_FS_CATALOG . 'includes/autoload_func.php'); ?>