2012-10-31 00:18:45 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
global $project;
|
|
|
|
$project = 'mysite';
|
|
|
|
|
|
|
|
global $database;
|
|
|
|
$database = '';
|
|
|
|
|
|
|
|
require_once('conf/ConfigureFromEnv.php');
|
|
|
|
|
|
|
|
global $databaseConfig;
|
|
|
|
$databaseConfig['memory'] = true;
|
|
|
|
$databaseConfig['path'] = dirname(dirname(__FILE__)) .'/assets/';
|
|
|
|
|
|
|
|
MySQLDatabase::set_connection_charset('utf8');
|
|
|
|
|
|
|
|
// Set the current theme. More themes can be downloaded from
|
|
|
|
// http://www.silverstripe.org/themes/
|
|
|
|
SSViewer::set_theme('simple');
|
|
|
|
|
|
|
|
// Enable nested URLs for this site (e.g. page/sub-page/)
|
2015-11-21 19:21:34 +13:00
|
|
|
if (class_exists('SiteTree')) {
|
|
|
|
SiteTree::enable_nested_urls();
|
|
|
|
}
|