Location: PHPKode > projects > Mocovie web framework > settings.php
<?php
$GLOBALS['defaultpage']				= '/home';
$GLOBALS['page']					= $GLOBALS['defaultpage']; // Will be overwritten
$GLOBALS['domainName']				= $_SERVER['SERVER_NAME'];
$GLOBALS['domain']					= 'http://'.$GLOBALS['domainName'].($_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : '');
$GLOBALS['linkprefix']				= '';// 'pages';
$GLOBALS['pathformat']				= '%s%s%s';	// Default: '%s%s%s.%s';	// == [basepath][linkprefix][page].[extension]; sprintf Format
$GLOBALS['caching']					= true;								// Caching is used in View.php
$GLOBALS['absolutepath']			= str_replace('\\', '/', rtrim(dirname(__FILE__),'\/')).'/';
$GLOBALS['basepath'] 				= str_replace('\\', '/', rtrim(dirname($_SERVER['SCRIPT_NAME']), '\/'));

$GLOBALS['webs']					= $GLOBALS['absolutepath'].'webs/';
//$GLOBALS['defaultWeb']				= $GLOBALS['webs'].'yourdomain.com/'; // Choose your default web. It'll be shown when a domain was not found in the webs
$GLOBALS['defaultWeb']				= $GLOBALS['webs'].'common/';

$GLOBALS['commonWeb']				= $GLOBALS['webs'].'common/';
$GLOBALS['commonModels']			= $GLOBALS['commonWeb'].'models/';
$GLOBALS['commonControls']			= $GLOBALS['commonWeb'].'controls/';
$GLOBALS['commonViews']				= $GLOBALS['commonWeb'].'views/';
$GLOBALS['commonTranslations']		= $GLOBALS['commonWeb'].'translations/';
$GLOBALS['commonFilesystems']		= $GLOBALS['commonWeb'].'filesystems/';

$GLOBALS['userWeb']					= $GLOBALS['webs'].$_SERVER['SERVER_NAME'].'/';
if(!is_dir($GLOBALS['userWeb']))
	$GLOBALS['userWeb']				= $GLOBALS['defaultWeb'];
$GLOBALS['userModels']				= $GLOBALS['userWeb'].'models/';
$GLOBALS['userControls']			= $GLOBALS['userWeb'].'controls/';
$GLOBALS['userViews']				= $GLOBALS['userWeb'].'views/';
$GLOBALS['userTranslations']		= $GLOBALS['userWeb'].'translations/';
$GLOBALS['userFilesystems']			= $GLOBALS['userWeb'].'filesystems/';

$GLOBALS['definitions']				= $GLOBALS['absolutepath'].'mocovi/definitions/';
$GLOBALS['library']					= $GLOBALS['absolutepath'].'mocovi/library/';
$GLOBALS['filesystemsLibrary']		= $GLOBALS['library'].'filesystems/';
$GLOBALS['renderers']				= $GLOBALS['library'].'Renderers/';
$GLOBALS['filesystemDefinition']	= (Object)array
									( 'default'		=> $GLOBALS['commonModels'].'model.xml'
									, 'path'		=> $GLOBALS['userModels'].'model.xml'
									, 'type'		=> 'XML'
									);
$GLOBALS['database']				= array
									( 'host'		=> '127.0.0.1'
									, 'port'		=> 3306
									, 'username'	=> 'root'
									, 'password'	=> ''
									);
date_default_timezone_set('Europe/Berlin');
function_exists('require_once_path')	or require $GLOBALS['library'].'requirepath.php';
require_once_path($GLOBALS['library'].'autoload/');
error_reporting(E_ALL | E_STRICT);
Return current item: Mocovie web framework