?php //use SilverStripe\Recaptcha; global $project; $project = 'mysite'; global $databaseConfig; $databaseConfig = array( "type" => 'MySQLDatabase', "server" => '127.0.0.1', "username" => 'root', "password" => '', "database" => 'fsolutions', "path" => '', ); //SpamProtectorManager::set_spam_protector('RecaptchaProtector'); //RecaptchaField::$public_api_key = '6LdflewSAAAAAGFHH-kU8pDS53yFl7VtMwNvVNDI'; //RecaptchaField::$private_api_key = '6LdflewSAAAAAOj6ll9I-Mde_kFGjLApYUmxOuv2'; i18n::set_locale('en_US'); // Set the site locale i18n::set_date_format('dd-MM-YYYY'); // Set the date format Object::add_extension('SiteTree', 'Translatable'); Translatable::set_allowed_locales( array( 'en_US', 'zh_cmn', //simplified 'zh_yue', 'ko_KR', 'ja_JP', 'ms_MY' ) ); Translatable::$allowed_lang = array ( 'en_US' => 'English', 'ja_JP' => 'Japanese', 'ko_KR' => 'Korean', 'zh_cmn' => 'Chinese (simplified)', 'zh_yue' => 'Chinese (traditional)', 'ms_MY' => 'Malay' ); Translatable::set_default_locale('en_US'); HtmlEditorConfig::get('cms')->setOption('relative_urls', false); HtmlEditorConfig::get('cms')->setOption('remove_script_host', false); HtmlEditorConfig::get('cms')->setOption('convert_urls', true); global $my_config; $my_config['EnableChatBox'] = true; $my_config['PackageAutoConfirm'] = true; $my_config['PackageMultiDay'] = true; $my_config['EnableStaff'] = true; $my_config['SellerAgent'] = true; $my_config['EnableCaptcha'] = true; $my_config['EnablePromotion'] = true; $my_config['EnableDiscount'] = true; $my_config['AllowedDiscountUser'] = array('PERSONAL', 'ITO', 'OTA', 'FREE'); $my_config['EnablePackageCost'] = true; $my_config['ActiveLanguages'] = array( 'en_US', 'zh_cmn', //simplified 'zh_yue', 'ko_KR' ); $my_config['QuickBook'] = true; $my_config['NewTourGuide'] = true; Object::add_extension('Page', 'ShopsKBPage_Decorate_Page'); include_once '_my_config.php'; // mobile decorator Object::add_extension('Page', 'MobileLabels_decoratePage'); Object::add_extension('Page_Controller', 'MobilePage_decoratePageController'); SilverStripe Framework requires a $databaseConfig defined.