__CA_CONF_DIR__.'/app.conf' // the _default_ value must always be defined ); if (!isset($_SERVER['HTTP_HOST']) || !isset($_CA_INSTANCE_CONFIG_FILES[$_SERVER['HTTP_HOST']]) || !($_CA_CONFIG_PATH = $_CA_INSTANCE_CONFIG_FILES[$_SERVER['HTTP_HOST']])) { $_CA_CONFIG_PATH = $_CA_INSTANCE_CONFIG_FILES['_default_']; } if (!(file_exists($_CA_CONFIG_PATH))) { die("Configuration file is missing for hostname '".$_SERVER['HTTP_HOST']."'"); } set_include_path(__CA_LIB_DIR__.'/ca'.PATH_SEPARATOR.__CA_LIB_DIR__.'/core'.PATH_SEPARATOR.__CA_MODELS_DIR__.PATH_SEPARATOR.get_include_path()); # The path to the main instance configuration file defined as a constant define('__CA_APP_CONFIG__', $_CA_CONFIG_PATH); # -------------------------------------------------------------------------------------------- # include version number require_once(__CA_APP_DIR__.'/version.php'); # includes commonly used classes require_once(__CA_APP_DIR__.'/helpers/preload.php'); if (defined('E_DEPRECATED')) { // PHP 5.3 error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); } else { // PHP <= 5.2 error_reporting(E_ALL & ~E_NOTICE); } # If you set this to true the installer will be able to overwrite an existing installation. # Only set this to true if you're debugging code or an installation profile. # Leaving it set to 'true' is a major security hole - it will allow *ANYONE* with access to the installer # to destroy your database! define('__CA_ALLOW_INSTALLER_TO_OVERWRITE_EXISTING_INSTALLS__', false); # If you set this to true the configuration settings are loaded from the plain text # files in __CA_CONF_DIR__ on each page refresh. That's why performance will suffer. # However, there are certain scenarios where want to prevent caching, e.g. # if you want to load different configuration file sets depending on the # location of the user. DO NOT touch this unless you know what you're doing! define('__CA_DISABLE_CONFIG_CACHING__', false); # -------------------------------------------------------------------------------------------- /* ---------------------------------------------------------------------- * setup.php : defines paths for CollectiveAccess cataloguing module, enabled the * application to find various support files. This is the first file * you should set up when configuring the application. * ---------------------------------------------------------------------- * CollectiveAccess * Open-source collections management software * ---------------------------------------------------------------------- * * Software by Whirl-i-Gig (http://www.whirl-i-gig.com) * Copyright 2008-2009 Whirl-i-Gig * * For more information visit http://www.CollectiveAccess.org * * This program is free software; you may redistribute it and/or modify it under * the terms of the provided license as published by Whirl-i-Gig * * CollectiveAccess is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTIES whatsoever, including any implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * This source code is free and modifiable under the terms of * GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See * the "license.txt" file for details, or visit the CollectiveAccess web site at * http://www.CollectiveAccess.org * * ---------------------------------------------------------------------- */ ?>