mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 15:05:33 +00:00
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@113085 467b73ca-7a2a-4603-9d3b-597d59a354a9
43 lines
883 B
PHP
43 lines
883 B
PHP
<?php
|
|
|
|
global $project;
|
|
$project = 'mysite';
|
|
|
|
global $database;
|
|
$database = '';
|
|
//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',
|
|
);
|
|
|
|
|
|
MySQLDatabase::set_connection_charset('utf8');
|
|
|
|
// This line set's the current theme. More themes can be
|
|
// downloaded from http://www.silverstripe.org/themes/
|
|
SSViewer::set_theme('blackcandy');
|
|
|
|
// enable nested URLs for this site (e.g. page/sub-page/)
|
|
SiteTree::enable_nested_urls();
|
|
|
|
Security::setDefaultAdmin('username', 'password'); |