2009-11-19 21:26:31 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
global $project;
|
|
|
|
$project = 'mysite';
|
|
|
|
|
|
|
|
global $database;
|
2010-06-27 23:55:52 +02:00
|
|
|
$database = '';
|
2010-10-24 08:44:04 +02:00
|
|
|
//require_once('conf/ConfigureFromEnv.php');
|
|
|
|
|
|
|
|
Director::set_environment_type("dev");
|
|
|
|
global $databaseConfig;
|
|
|
|
|
|
|
|
/*
|
|
|
|
$databaseConfig = array(
|
|
|
|
'type' => 'PostgreSQLDatabase',
|
|
|
|
'server' => 'localhost',
|
|
|
|
'username' => 'postgres',
|
|
|
|
'password' => 'postgres',
|
|
|
|
'database' => 'SS_24modules'
|
|
|
|
);
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
$databaseConfig = array(
|
|
|
|
"type" => 'SQLiteDatabase',
|
|
|
|
"server" => '',
|
|
|
|
"username" => '',
|
|
|
|
"password" => '',
|
|
|
|
"database" => '24modules',
|
|
|
|
"path" => ASSETS_PATH .'/.db',
|
|
|
|
);
|
2009-11-19 21:26:31 +01:00
|
|
|
|
|
|
|
|
|
|
|
MySQLDatabase::set_connection_charset('utf8');
|
|
|
|
|
|
|
|
// This line set's the current theme. More themes can be
|
2010-02-13 05:07:52 +01:00
|
|
|
// downloaded from http://www.silverstripe.org/themes/
|
2009-11-19 21:26:31 +01:00
|
|
|
SSViewer::set_theme('blackcandy');
|
|
|
|
|
|
|
|
// enable nested URLs for this site (e.g. page/sub-page/)
|
2009-12-14 23:55:18 +01:00
|
|
|
SiteTree::enable_nested_urls();
|
2010-10-24 08:44:04 +02:00
|
|
|
|
|
|
|
Security::setDefaultAdmin('username', 'password');
|