'iphone', // use the 'iphone' theme for iPhone devices such as iPhone and iPod Touch '_default_' => 'default' // use the 'default' theme for everything else ); # *** # That's it! The settings here should be enough to get you up and running... # Don't forget to take a look at your global.conf file though. It defines additional settings you might need to change. # *** # -------------------------------------------------------------------------------------------- # YOU PROBABLY DON'T NEED TO CHANGE ANYTHING UNDER THIS LINE # -------------------------------------------------------------------------------------------- # Path to CollectiveAccess 'app' directory define("__CA_APP_DIR__", __CA_BASE_DIR__."/app"); # Now that we have __CA_APP_DIR__ set we can load our request helpers - very basic functions we need to set up request handling require_once(__CA_APP_DIR__.'/helpers/requestHelpers.php'); # Path to CollectiveAccess 'models' directory containing database table model classes define("__CA_MODELS_DIR__", __CA_APP_DIR__."/models"); # Path to CollectiveAccess 'lib' directory containing software libraries CA needs to function define("__CA_LIB_DIR__", __CA_APP_DIR__."/lib"); # Path to CollectiveAccess 'lib' directory containing software libraries CA needs to function define("__CA_CONF_DIR__", __CA_APP_DIR__."/conf"); # Path to CollectiveAccess 'themes' directory containing visual presentation elements - views (templates), CSS, graphics and, potentially, configuration define("__CA_THEMES_DIR__", __CA_BASE_DIR__."/themes"); # Name of theme to use for this request define("__CA_THEME__", $g_configuration_cache_suffix = caGetPreferredThemeForCurrentDevice($_CA_THEMES_BY_DEVICE)); # Root-relative URL path to 'themes' directory define("__CA_THEMES_URL__", __CA_URL_ROOT__."/themes"); # Path to local config directory - configuration containing theme-specific configuration # Note that this is not the same as the __CA_CONF_DIR__, which contains general application configuration # Theme-specific configuration simply allows you to override selected application configuration as-needed to suit the specific theme define("__CA_LOCAL_CONFIG_DIRECTORY__", __CA_THEMES_DIR__."/".__CA_THEME__."/conf"); # Set path to instance configuration file # (If you want to run several CA distinct instances using a single install # you can add additional configuration files here. See http://trac.collectiveaccess.org/wiki/MultipleInstances) $_CA_INSTANCE_CONFIG_FILES = array( '_default_' => __CA_CONF_DIR__.'/app.conf' // the _default_ value must always be defined ); if (!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__); # 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); } /* ---------------------------------------------------------------------- * setup.php : defines paths for Pawtucket public access front-end; enables 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-2010 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 * * ---------------------------------------------------------------------- */ ?>