2007-07-19 10:40:28 +00:00
|
|
|
<?php
|
|
|
|
|
2016-09-09 18:43:05 +12:00
|
|
|
use SilverStripe\Core\Cache;
|
2016-08-19 10:51:35 +12:00
|
|
|
use SilverStripe\Dev\Deprecation;
|
|
|
|
use SilverStripe\View\Parsers\ShortcodeParser;
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-09-15 00:08:23 +00:00
|
|
|
/**
|
2012-03-24 16:38:57 +13:00
|
|
|
* Framework configuration file
|
2007-09-15 00:08:23 +00:00
|
|
|
*
|
2012-03-24 16:38:57 +13:00
|
|
|
* Here you can make different settings for the Framework module (the core
|
2007-09-15 00:08:23 +00:00
|
|
|
* module).
|
|
|
|
*
|
|
|
|
* For example you can register the authentication methods you wish to use
|
|
|
|
* on your site, e.g. to register the OpenID authentication method type
|
|
|
|
*
|
|
|
|
* <code>
|
2007-09-16 00:44:30 +00:00
|
|
|
* Authenticator::register_authenticator('OpenIDAuthenticator');
|
2007-09-15 00:08:23 +00:00
|
|
|
* </code>
|
|
|
|
*/
|
|
|
|
|
2015-09-15 14:52:02 +12:00
|
|
|
ShortcodeParser::get('default')
|
2016-08-19 10:51:35 +12:00
|
|
|
->register('file_link', array('SilverStripe\\Assets\\File', 'handle_shortcode'))
|
|
|
|
->register('embed', array('SilverStripe\\Forms\\HtmlEditor\\EmbedShortcodeProvider', 'handle_shortcode'))
|
|
|
|
->register('image', array('SilverStripe\\Assets\\Image', 'handle_shortcode'));
|
2016-03-09 00:20:51 +13:00
|
|
|
|
|
|
|
// Shortcode parser which only regenerates shortcodes
|
|
|
|
ShortcodeParser::get('regenerator')
|
2016-08-19 10:51:35 +12:00
|
|
|
->register('image', array('SilverStripe\\Assets\\Image', 'regenerate_shortcode'));
|
2016-03-09 00:20:51 +13:00
|
|
|
|
2015-09-15 14:52:02 +12:00
|
|
|
// @todo
|
|
|
|
// ->register('dbfile_link', array('DBFile', 'handle_shortcode'))
|
2012-03-01 21:13:42 +13:00
|
|
|
|
2010-10-15 02:49:06 +00:00
|
|
|
// Zend_Cache temp directory setting
|
2010-10-18 22:43:11 +00:00
|
|
|
$_ENV['TMPDIR'] = TEMP_FOLDER; // for *nix
|
|
|
|
$_ENV['TMP'] = TEMP_FOLDER; // for Windows
|
2011-03-29 13:58:00 +13:00
|
|
|
|
2016-09-09 18:43:05 +12:00
|
|
|
Cache::set_cache_lifetime('GDBackend_Manipulations', null, 100);
|
2014-01-02 15:59:34 +00:00
|
|
|
|
2013-03-20 11:53:09 +01:00
|
|
|
// If you don't want to see deprecation errors for the new APIs, change this to 3.2.0-dev.
|
|
|
|
Deprecation::notification_version('3.2.0');
|
2011-10-28 10:45:12 +13:00
|
|
|
|
2011-03-23 23:07:07 +13:00
|
|
|
// TODO Remove once new ManifestBuilder with submodule support is in place
|
2014-08-15 18:53:05 +12:00
|
|
|
require_once('admin/_config.php');
|