<?php ////////////////////////////////////////////////////////////////////////
// //
// Copyright (c) 2007 - 2009 Robert Cummings. //
// //
// License: GNU General Public License 2.0 or later //
// http://www.gnu.org/copyleft/gpl.html //
// //
//////////////////////////////////////////////////////////////////////////////
//
// Where di you install InterJinn?
//
$GLOBALS['interJinn']['coreRoot'] = '[[---@jinnRoot---]]';
//
// Since this is for an example site, we'll just compute our code root. Web
// server should be directed at the www directory.
//
$___basePath = ereg_replace( '(/[^/]+){3}$', '/', __FILE__ );
$GLOBALS['interJinn']['codeRoot'] = $___basePath;
$GLOBALS['interJinn']['pageRoot'] = '[[---@pageRoot---]]';
//
// Error settings and Miscellaneous.
//
ini_set( 'display_errors', 1 );
ini_set( 'log_errors', 1 );
ini_set( 'error_reporting', -1 );
umask( 0002 );
//
// Pre-defined database connections. Either put all of the paramaters
// or a single string which acts as an key into the same structure.
//
$GLOBALS['interJinn']['databases'] = array
(
'[[---newProject---]]' => array
(
'type' => 'mysql',
'host' => 'localhost',
'user' => 'username',
'password' => 'password',
'db' => '[[---newProject---]]',
),
'default' => '[[---newProject---]]',
);
//
// Declare some core configuration variables -- you can leave these as is.
//
$GLOBALS['interJinn']['configPath'] = __FILE__;
$GLOBALS['interJinn']['pageBase'] = '/';
$GLOBALS['interJinn']['imageBase'] = '/images/';
$GLOBALS['interJinn']['xhtml'] = true;
$GLOBALS['interJinn']['propertySystem'] = 'database';
$GLOBALS['interJinn']['propertyTablePrefix'] = 'jinn_';
$GLOBALS['interJinn']['cacheSystem'] = 'database';
$GLOBALS['interJinn']['cacheTablePrefix'] = 'jinn_';
$GLOBALS['interJinn']['cacheCompression'] = false;
$GLOBALS['interJinn']['cacheCleanupOdds'] = 5000;
$GLOBALS['interJinn']['profileSystem'] = 'database';
$GLOBALS['interJinn']['profileTablePrefix'] = 'jinn_';
$GLOBALS['interJinn']['profileID'] = '[[---NewProject---]]';
$GLOBALS['interJinn']['profileDomain'] = '';
$GLOBALS['interJinn']['profileDisabled'] = true;
$GLOBALS['interJinn']['profileCleanupOdds'] = 5000;
$GLOBALS['interJinn']['profileTimeout'] = 60 * 60 * 24 * 14;
$GLOBALS['interJinn']['sessionSystem'] = 'database';
$GLOBALS['interJinn']['sessionTablePrefix'] = 'jinn_';
$GLOBALS['interJinn']['pagePatternSystem'] = 'file';
$GLOBALS['interJinn']['pagePatternDataPath'] = '//[[---NewProject---]]/build/patterns.php';
$GLOBALS['interJinn']['compileUpdates'] = true;
$GLOBALS['interJinn']['compileSourcePath'] = '//[[---NewProject---]]/build/source';
$GLOBALS['interJinn']['compileTemplatePath'] = '//[[---NewProject---]]/build/templates';
$GLOBALS['interJinn']['compileTargetPath'] = '';
$GLOBALS['interJinn']['multilingual'] = true;
$GLOBALS['interJinn']['defaultLanguage'] = 'en';
//
// Set this to true if you want to see page/module/query information.
//
$GLOBALS['interJinn']['webProfiling'] = true;
$GLOBALS['interJinn']['webProfiling'] = false;
require_once( $GLOBALS['interJinn']['codeRoot'].'[[---NewProject---]]/configs/config.interjinn.shared.php' );