Exemplo n.º 1
0
$databaseConfig = array(
	"type" => 'MySQLDatabase',
	"server" => 'localhost',
	"username" => 'root',
	"password" => 'root',
	"database" => 'FuelDemo2016',
	"path" => '',
);
*/
// ******* LIVE Database Settings ******
global $databaseConfig;
$databaseConfig = array("type" => 'MySQLDatabase', "server" => 'localhost', "username" => 'fuel2', "password" => 'coyote5.!6', "database" => 'fuel2', "path" => '');
// Initial acmin account set-up - can be removed
Security::setDefaultAdmin('*****@*****.**', 'apples');
// Sets the CMS logo link to go to the site base URL
LeftAndMain::set_application_link(Director::baseURL());
// Set the site locale
i18n::set_locale('en_GB');
date_default_timezone_set('Europe/London');
//Enable Site Search **
//FulltextSearchable::enable();
Object::add_extension('SiteConfig', 'CustomSiteConfig');
//Force redirect to www.
Director::forceWWW();
//Show errors while in development only (to be removed)
error_reporting(E_ALL);
// Customise TinyMCE options
HtmlEditorConfig::get('cms')->setOption('theme_advanced_blockformats', 'p,h1,h2,h3,h4');
HtmlEditorConfig::get('cms')->setOption('theme_advanced_disable', 'styleselect');
// TinyMCE cleanup on paste
HtmlEditorConfig::get('cms')->setOption('convert_fonts_to_spans', 'false');