Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 87 lines (72 sloc) 2.999 kB
4a5d9b0 @Hayden Moved Sapphire module to open source path
Hayden authored
1 <?php
2
069192e @chillu mlanthaler: Refactored the new authenticator code so that it is easie…
chillu authored
3 /**
4 * Sapphire configuration file
5 *
6 * Here you can make different settings for the Sapphire module (the core
7 * module).
8 *
9 * For example you can register the authentication methods you wish to use
10 * on your site, e.g. to register the OpenID authentication method type
11 *
12 * <code>
7d600b0 @chillu mlanthaler: Refactored the created code since the coding conventions …
chillu authored
13 * Authenticator::register_authenticator('OpenIDAuthenticator');
069192e @chillu mlanthaler: Refactored the new authenticator code so that it is easie…
chillu authored
14 * </code>
7d13ba7 @madmatt Reverted geoffm's accidental commit to /open
madmatt authored
15 *
16 * @package sapphire
17 * @subpackage core
069192e @chillu mlanthaler: Refactored the new authenticator code so that it is easie…
chillu authored
18 */
19
03fcc80 @chillu (merged from branches/roa. use "svn log -c <changeset> -g <module-svn…
chillu authored
20 // Default director
21 Director::addRules(10, array(
6bd5da7 @chillu (merged from branches/roa. use "svn log -c <changeset> -g <module-svn…
chillu authored
22 'Security//$Action/$ID/$OtherID' => 'Security',
03fcc80 @chillu (merged from branches/roa. use "svn log -c <changeset> -g <module-svn…
chillu authored
23 //'Security/$Action/$ID' => 'Security',
cc496ad @sminnee Fixed URL handling for /dev after merge from branches/roa to trunk
sminnee authored
24 '$Controller//$Action/$ID/$OtherID' => '*',
08a5a7c @sminnee Merged from branches/2.3
sminnee authored
25 'api/v1/live' => 'VersionedRestfulServer',
03fcc80 @chillu (merged from branches/roa. use "svn log -c <changeset> -g <module-svn…
chillu authored
26 'api/v1' => 'RestfulServer',
b6abd40 @chillu (merged from branches/roa. use "svn log -c <changeset> -g <module-svn…
chillu authored
27 'soap/v1' => 'SOAPModelAccess',
5c32415 @sminnee ENHANCEMENT: Proof-of-concept REPL for sapphire
sminnee authored
28 'dev' => 'DevelopmentAdmin',
29 'interactive' => 'SapphireREPL',
03fcc80 @chillu (merged from branches/roa. use "svn log -c <changeset> -g <module-svn…
chillu authored
30 ));
d47913d @chillu MINOR Added default redirection of /admin to /admin/security in sapph…
chillu authored
31 // Add default routing unless 'cms' module is present (which overrules this with a CMSMain controller)
32 Director::addRules(20, array(
33 'admin//$action/$ID/$OtherID' => '->admin/security'
34 ));
03fcc80 @chillu (merged from branches/roa. use "svn log -c <changeset> -g <module-svn…
chillu authored
35
069192e @chillu mlanthaler: Refactored the new authenticator code so that it is easie…
chillu authored
36 /**
7977304 @ajshort API CHANGE: Renamed conflicting classes to have an "SS_" namespace, a…
ajshort authored
37 * PHP 5.2 introduced a conflict with the Datetime field type, which was renamed to SSDatetime. This was later renamed
38 * to SS_Datetime to be consistent with other namespaced classes.
39 *
40 * Overload both of these to support legacy code.
d713777 @chillu API CHANGE LeftAndMain.php: Removed $extra_menu_items, $replaced_menu…
chillu authored
41 */
7977304 @ajshort API CHANGE: Renamed conflicting classes to have an "SS_" namespace, a…
ajshort authored
42 Object::useCustomClass('SSDatetime', 'SS_Datetime', true);
43 Object::useCustomClass('Datetime', 'SS_Datetime', true);
d713777 @chillu API CHANGE LeftAndMain.php: Removed $extra_menu_items, $replaced_menu…
chillu authored
44
83c6046 @chillu mlanthaler: Moved the OpenID specific files to a sub folder to make t…
chillu authored
45
6b88006 @wilr BUGFIX show scroll bar on menu and side panels in adminstration secti…
wilr authored
46
7d600b0 @chillu mlanthaler: Refactored the created code since the coding conventions …
chillu authored
47 /**
48 * The root directory of TinyMCE
49 */
a11db29 @chillu MINOR Changed paths to moved thirdparty dependencies (mostly from /js…
chillu authored
50 define('MCE_ROOT', 'sapphire/thirdparty/tinymce/');
342376a @chillu sminnee: Updated TinyMCE to 2.1.1.1 on branches/gsoc
chillu authored
51
898c8f5 @halkyon ENHANCEMENT [file_link id=n] shortcode support for file links in Html…
halkyon authored
52 ShortcodeParser::get('default')->register('file_link', array('File', 'link_shortcode_handler'));
53
7be8460 @chillu mlanthaler: Added support for password encryption (http://support.sil…
chillu authored
54 /**
7d600b0 @chillu mlanthaler: Refactored the created code since the coding conventions …
chillu authored
55 * The secret key that needs to be sent along with pings to /Email_BounceHandler
56 *
57 * Change this to something different for increase security (you can
58 * override it in mysite/_config.php to ease upgrades).
59 * For more information see:
4252067 @sminnee MINOR Changed silverstripe.com references to silverstripe.org
sminnee authored
60 * {@link http://doc.silverstripe.org/doku.php?id=email_bouncehandler}
87a0535 @chillu elofgren: Define 'EMAIL_BOUNCEHANDLER_KEY' in sapphire/_config.php an…
chillu authored
61 */
8fd8d87 @sminnee BUGFIX EMAIL_BOUNCEHANDLER_KEY cannot be defined (from r108513)
sminnee authored
62 if(!defined('EMAIL_BOUNCEHANDLER_KEY')) {
63 define('EMAIL_BOUNCEHANDLER_KEY', '1aaaf8fb60ea253dbf6efa71baaacbb3');
64 }
7be8460 @chillu mlanthaler: Added support for password encryption (http://support.sil…
chillu authored
65
e675381 @chillu ENHANCEMENT Pluggable password encryption through PasswordEncryptor c…
chillu authored
66 PasswordEncryptor::register('none', 'PasswordEncryptor_None');
67 PasswordEncryptor::register('md5', 'PasswordEncryptor_LegacyPHPHash("md5")');
68 PasswordEncryptor::register('sha1','PasswordEncryptor_LegacyPHPHash("sha1")');
69 PasswordEncryptor::register('md5_v2.4', 'PasswordEncryptor_PHPHash("md5")');
70df629 @chillu BUGFIX #5349: Use TEMP_FOLDER for Zend's cache temp dir. (from r105468)
chillu authored
70 PasswordEncryptor::register('sha1_v2.4','PasswordEncryptor_PHPHash("sha1")');
71
72 // Zend_Cache temp directory setting
f01cd57 @sminnee BUGFIX #5837 cache_dir not writable by Zend when accessing the CMS, b…
sminnee authored
73 $_ENV['TMPDIR'] = TEMP_FOLDER; // for *nix
74 $_ENV['TMP'] = TEMP_FOLDER; // for Windows
52a021a @hafriedlander MINOR: Use a seperate backend for aggregate caching, to avoid problem…
hafriedlander authored
75
76 $aggregatecachedir = TEMP_FOLDER . DIRECTORY_SEPARATOR . 'aggregate_cache';
77 if (!is_dir($aggregatecachedir)) mkdir($aggregatecachedir);
78
79 SS_Cache::add_backend('aggregatestore', 'File', array('cache_dir' => $aggregatecachedir));
80 SS_Cache::pick_backend('aggregatestore', 'aggregate', 1000);
7ba2ea6 @chillu MINOR Temporarily including sapphire/admin/_config.php manually
chillu authored
81
4f16c5f @sminnee ENHANCEMENT: Be strict about deprecation errors for new 3.0.0 APIs, s…
sminnee authored
82 // If you don't want to see deprecation errors for the new APIs, change this to 3.0.0-dev.
83 Deprecation::notification_version('3.0.0');
e5ea2ea @hafriedlander ENHANCEMENT: Add Deprecation class to handle throwing deprecation not…
hafriedlander authored
84
7ba2ea6 @chillu MINOR Temporarily including sapphire/admin/_config.php manually
chillu authored
85 // TODO Remove once new ManifestBuilder with submodule support is in place
898c8f5 @halkyon ENHANCEMENT [file_link id=n] shortcode support for file links in Html…
halkyon authored
86 require_once('admin/_config.php');
Something went wrong with that request. Please try again.