<?php define('LITECMS', basename(dirname(__FILE__))); SSViewer::set_source_file_comments(false); CMSMenu::remove_menu_item("CommentAdmin"); CMSMenu::remove_menu_item("ReportAdmin"); CMSMenu::remove_menu_item("SecurityAdmin"); CMSMenu::remove_menu_item("Help"); Object::add_extension('SiteConfig', 'LiteCMSBaseConfig'); Object::add_extension('LeftAndMain', 'LiteCMS'); Object::add_extension('SiteConfig', 'LiteCMSMaintenance'); Object::add_extension('Page', 'LiteCMSMaintenanceController_Decorator'); GD::set_default_quality(100); LeftAndMain::setApplicationName("LiteCMS"); LeftAndMain::require_css('litecms/css/lite.css'); Image::add_extension('LiteCMSImage'); File::add_extension('LiteCMSAttachment');
// Default administrator account for the CMS Security::setDefaultAdmin('admin', 'password'); // Theme should be located in /themes/<themename> (Default folder: '/themes/mysite') SSViewer::set_theme('mysite'); // Recipe: Taggable DataObject::add_extension('SiteTree', 'Taggable'); // Recipe: Redirection of legacy URLs Director::addRules(1, array( '$URLSegment//$Action/$ID/$OtherID' => 'CustomModelAsController', )); // Recipe: Branding the CMS LeftAndMain::setApplicationName( 'My Kiwi CMS', 'My Kiwi CMS', 'http://mykiwicms.com' ); LeftAndMain::setLogo( 'mysite/images/kiwicmslogo.gif', 'width: 62px; height: 32px;' ); LeftAndMain::set_loading_image( 'mysite/images/kiwicmslogo_loading.png' ); LeftAndMain::require_css('mysite/css/kiwicms.css'); BlogEntry::$allow_wysiwyg_editing = true; ?>