Source for file config.inc.php
Documentation is available at config.inc.php
// =============================================================================
// Copyright 2008, 2009 Richard Gladman
// Distributed under the terms of the GNU General Public License
// =============================================================================
// This file is part of Benchpress.
// Benchpress is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// Benchpress is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with Benchpress. If not, see <http://www.gnu.org/licenses/>.
// =============================================================================
// ============================================================================
// C H A N G E T H E S E S E T T I N G S A S N E E D E D
// ============================================================================
define('FILE_BASE', 'full path to site on disk');
define('URL_BASE', 'URL TO ROOT OF SITE');
define('HOST', 'database server');
define('USER', 'database user name');
define('PASSWORD', 'users password');
define('DATABASE', 'Database to use');
define('EXCEPTION_LOG_TO_FILE', true);
define('EXCEPTION_ADMIN_EMAIL', false);
define('SITE_TITLE', 'Framework');
define('SITE_STRAPLINE', 'Brief description in here');
// ============================================================================
// D O N O T C H A N G E T H E S E S E T T I N G S
// Unless you really know what you are doing.
// ============================================================================
define('LIB', FILE_BASE .
'/lib');
define('APP', FILE_BASE .
'/application');
define('LIB_CORE', LIB .
'/core');
define('LIB_DATABASE', LIB .
'/database');
define('LIB_FORMS', LIB .
'/forms');
define('LIB_VALIDATION', LIB .
'/validation');
define('LIB_UTILITIES', LIB .
'/utilities');
define('LIB_TEMPLATES', LIB .
'/templates');
define('LIB_EXCEPTIONS', LIB .
'/exceptions');
define('FILE_ERROR_LOG', FILE_BASE .
'/errors/error.log');
define('APP_MODELS', APP .
'/models');
define('APP_CONTROLLERS', APP .
'/controllers');
define('APP_VIEWS', APP .
'/views');
define('APP_FORMS', APP .
'/forms');
define('APP_VALIDATION', APP .
'/validation');
define('INCLUDES', FILE_BASE .
'/includes');
define('TEMPLATES', FILE_BASE .
'/templates');
// ============================================================================
// Autoload of classes as used
// ============================================================================
// Look in the current directory and then in each of the lib sub directories for the class
foreach ($arrLib as $strLib) {
$strFilename =
"{
$strLib}/class.{$strClass}.php";
require_once($strFilename);
// ============================================================================
// Turn errors / warnings / notices into exceptions
// Honour error reporting settings
// ============================================================================
throw
new ErrorException($strMessage, 0, $intSeverity, $strFilename, $intLine);
Documentation generated on Sun, 13 Dec 2009 19:39:42 +0000 by phpDocumentor 1.4.3