My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
/**
* Cakewell CakePHP Core Config File
*
* TL;DR Notes:
* Configures app on a per-domain and/or per-mode basis
* Set defaults in the ** EDITABLE ** section below
*
* A modified core config file that attempts to automatically accomodate
* multiple domains by modifying the confiugation settings to the server (based
* on the $_SERVER['SERVER_NAME'] value).
*
* This approach is adapted from the methodology described here:
* http://bakery.cakephp.org/articles/view/one-core-one-app-multiple-domains
*
* To see the original version of this file with comments, visit:
* https://trac.cakephp.org/browser/branches/1.2.x.x/app/config/core.php
*
* For more information on CakePhp core configuration, visit:
* http://book.cakephp.org/view/42/The-Configuration-Class
*
* CakePHP Debug Level:
*
* Production Mode:
* 0: No error messages, errors, or warnings shown. Flash messages redirect.
*
* Development Mode:
* 1: Errors and warnings shown, model caches refreshed, flash messages halted.
* 2: As in 1, but also with full debug messages and SQL output.
* 3: As in 2, but also with full controller dump.
*
* In production mode, flash messages redirect after a time interval.
* In development mode, you need to click the flash message to continue.
*/


/** EDITABLE **/

/**
* Domain Map
* This is a cakewell innovation that maps different domains (via
* $_SERVER['SERVER_NAME']) to different App.Mode configuration values,
* which represent different configuration settings.
*
* The App.Mode value also then becomes the key for the DB config file.
*/
$ConfigDomainMap = array
(
#$_SERVER['SERVER_NAME'] => App.Mode value
'localhost' => 'test',
'cakewell' => 'test',
'example.com' => 'production',
'cron' => 'production'
);

/**
* App Globals
* Add any constants or config settings that are not domain-specific here.
* These can be set on a domain- or mode-specific basis in config files
* in the appropriate subdirectory.
*/

// Project Root Directory Path
Configure::write('App.project_root', dirname(dirname(dirname(__FILE__))) . DS);
define('PROJECT_ROOT', Configure::read('App.project_root'));

// Google Service Settings
define('GA_CODE', 'UA-CODE-HERE');
define('GMAIL_USER', 'GMAIL_ADDRESS');
define('GMAIL_PASS', 'GMAIL_PASSWORD');
define('GWT_META', 'SITE_VERIFICATION_TAG');

// ReCaptcha Keys (http://recaptcha.net/)
define('RECAPTCHA_DOMAIN', 'YOUR_KEY_DOMAIN');
define('RECAPTCHA_PUBLIC_KEY', 'PUBLIC_KEY_HERE');
define('RECAPTCHA_PRIVATE_KEY', 'PRIVATE_KEY_HERE');

// Twitter Login
define('TWITTER_USER', 'YOUR_TWITTER_USERNAME');
define('TWITTER_PASS', 'YOUR_TWITTER_PASSWORD');

// SimplePie Defaults
// see http://simplepie.org/wiki/reference/start
define('SIMPLEPIE_CACHE_PATH', CACHE . 'views' . DS);
define('SIMPLEPIE_CACHE_TIME', 3600);

/**
* Default Config Settings
* These are the basic CakePhp core settings (with comments scrubbed.)
* These can be overridden on in the modes or domains config files. By
* default, these are more conservative (i.e. secure).
*
* For original version with comments, see:
* https://trac.cakephp.org/browser/branches/1.2.x.x/app/config/core.php
*
* For section marked *, make sure you refer to documentation before
* changing these settings.
*/
Configure::write('debug', 0);
Configure::write('App.encoding', 'UTF-8');
define('LOG_ERROR', 2);

// Caching
Configure::write('Cache.disable', true);
Configure::write('Cache.check', false);
Cache::config('default', array('engine' => 'File'));

// Session Options* (*make sure you refer to documentation)
Configure::write('Session.cookie', 'CAKEPHP');
Configure::write('Session.timeout', '120');
Configure::write('Session.save', 'php');
Configure::write('Session.start', true);
Configure::write('Session.checkAgent', true);
Configure::write('Security.level', 'high');
Configure::write('Security.salt', 'your-secret-app-salt-here');
//Configure::write('Session.table', 'cake_sessions');
//Configure::write('Session.database', 'default');

// ACL
Configure::write('Acl.classname', 'DbAcl');
Configure::write('Acl.database', 'default');

// Admin Routes*
//Configure::write('Routing.admin', 'admin');

// Pretty Urls without mod_rewrite*
//Configure::write('App.baseUrl', env('SCRIPT_NAME'));

// Compress css/js*
//Configure::write('Asset.filter.css', 'css.php');
//Configure::write('Asset.filter.js', 'custom_javascript_output_filter.php');


/* NON-EDITABLE **/

/**
* Load magic file to set Config.domain and mode values and load
* any domain or mode-specific config files
*/
require_once(CONFIGS . 'magic.php');

?>

Change log

5ab73e5a8f52 by klenwell on Jan 25, 2010   Diff
T546: added GWT meta tag config
Go to: 
Project members, sign in to write a code review

Older revisions

a3444f64cced by klenwell on Jan 21, 2010   Diff
T543: added simplepie config values to
core config
d912b0b8597d by klenwell on Dec 10, 2009   Diff
T519: test_email action demoing
cakephp email component complete
ea7b663b3c81 by klenwell on Nov 1, 2009   Diff
updating cron script to function more
cleanly with config magic
All revisions of this file

File info

Size: 5031 bytes, 142 lines
Powered by Google Project Hosting