Mercurial > hg > Members > shoshi > webvirt
comparison app/config/core.php @ 0:261e66bd5a0c
hg init
author | Shoshi TAMAKI <shoshi@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 24 Jul 2011 21:08:31 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:261e66bd5a0c |
---|---|
1 <?php | |
2 /** | |
3 * This is core configuration file. | |
4 * | |
5 * Use it to configure core behavior of Cake. | |
6 * | |
7 * PHP versions 4 and 5 | |
8 * | |
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
11 * | |
12 * Licensed under The MIT License | |
13 * Redistributions of files must retain the above copyright notice. | |
14 * | |
15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
16 * @link http://cakephp.org CakePHP(tm) Project | |
17 * @package cake | |
18 * @subpackage cake.app.config | |
19 * @since CakePHP(tm) v 0.2.9 | |
20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) | |
21 */ | |
22 | |
23 /** | |
24 * CakePHP Debug Level: | |
25 * | |
26 * Production Mode: | |
27 * 0: No error messages, errors, or warnings shown. Flash messages redirect. | |
28 * | |
29 * Development Mode: | |
30 * 1: Errors and warnings shown, model caches refreshed, flash messages halted. | |
31 * 2: As in 1, but also with full debug messages and SQL output. | |
32 * | |
33 * In production mode, flash messages redirect after a time interval. | |
34 * In development mode, you need to click the flash message to continue. | |
35 */ | |
36 Configure::write('debug', 2); | |
37 | |
38 /** | |
39 * CakePHP Log Level: | |
40 * | |
41 * In case of Production Mode CakePHP gives you the possibility to continue logging errors. | |
42 * | |
43 * The following parameters can be used: | |
44 * Boolean: Set true/false to activate/deactivate logging | |
45 * Configure::write('log', true); | |
46 * | |
47 * Integer: Use built-in PHP constants to set the error level (see error_reporting) | |
48 * Configure::write('log', E_ERROR | E_WARNING); | |
49 * Configure::write('log', E_ALL ^ E_NOTICE); | |
50 */ | |
51 Configure::write('log', true); | |
52 | |
53 /** | |
54 * Application wide charset encoding | |
55 */ | |
56 Configure::write('App.encoding', 'UTF-8'); | |
57 | |
58 /** | |
59 * To configure CakePHP *not* to use mod_rewrite and to | |
60 * use CakePHP pretty URLs, remove these .htaccess | |
61 * files: | |
62 * | |
63 * /.htaccess | |
64 * /app/.htaccess | |
65 * /app/webroot/.htaccess | |
66 * | |
67 * And uncomment the App.baseUrl below: | |
68 */ | |
69 //Configure::write('App.baseUrl', env('SCRIPT_NAME')); | |
70 | |
71 /** | |
72 * Uncomment the define below to use CakePHP prefix routes. | |
73 * | |
74 * The value of the define determines the names of the routes | |
75 * and their associated controller actions: | |
76 * | |
77 * Set to an array of prefixes you want to use in your application. Use for | |
78 * admin or other prefixed routes. | |
79 * | |
80 * Routing.prefixes = array('admin', 'manager'); | |
81 * | |
82 * Enables: | |
83 * `admin_index()` and `/admin/controller/index` | |
84 * `manager_index()` and `/manager/controller/index` | |
85 * | |
86 * [Note Routing.admin is deprecated in 1.3. Use Routing.prefixes instead] | |
87 */ | |
88 //Configure::write('Routing.prefixes', array('admin')); | |
89 | |
90 /** | |
91 * Turn off all caching application-wide. | |
92 * | |
93 */ | |
94 //Configure::write('Cache.disable', true); | |
95 | |
96 /** | |
97 * Enable cache checking. | |
98 * | |
99 * If set to true, for view caching you must still use the controller | |
100 * var $cacheAction inside your controllers to define caching settings. | |
101 * You can either set it controller-wide by setting var $cacheAction = true, | |
102 * or in each action using $this->cacheAction = true. | |
103 * | |
104 */ | |
105 //Configure::write('Cache.check', true); | |
106 | |
107 /** | |
108 * Defines the default error type when using the log() function. Used for | |
109 * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG. | |
110 */ | |
111 define('LOG_ERROR', 2); | |
112 | |
113 /** | |
114 * The preferred session handling method. Valid values: | |
115 * | |
116 * 'php' Uses settings defined in your php.ini. | |
117 * 'cake' Saves session files in CakePHP's /tmp directory. | |
118 * 'database' Uses CakePHP's database sessions. | |
119 * | |
120 * To define a custom session handler, save it at /app/config/<name>.php. | |
121 * Set the value of 'Session.save' to <name> to utilize it in CakePHP. | |
122 * | |
123 * To use database sessions, run the app/config/schema/sessions.php schema using | |
124 * the cake shell command: cake schema create Sessions | |
125 * | |
126 */ | |
127 Configure::write('Session.save', 'php'); | |
128 | |
129 /** | |
130 * The model name to be used for the session model. | |
131 * | |
132 * 'Session.save' must be set to 'database' in order to utilize this constant. | |
133 * | |
134 * The model name set here should *not* be used elsewhere in your application. | |
135 */ | |
136 //Configure::write('Session.model', 'Session'); | |
137 | |
138 /** | |
139 * The name of the table used to store CakePHP database sessions. | |
140 * | |
141 * 'Session.save' must be set to 'database' in order to utilize this constant. | |
142 * | |
143 * The table name set here should *not* include any table prefix defined elsewhere. | |
144 * | |
145 * Please note that if you set a value for Session.model (above), any value set for | |
146 * Session.table will be ignored. | |
147 * | |
148 * [Note: Session.table is deprecated as of CakePHP 1.3] | |
149 */ | |
150 //Configure::write('Session.table', 'cake_sessions'); | |
151 | |
152 /** | |
153 * The DATABASE_CONFIG::$var to use for database session handling. | |
154 * | |
155 * 'Session.save' must be set to 'database' in order to utilize this constant. | |
156 */ | |
157 //Configure::write('Session.database', 'default'); | |
158 | |
159 /** | |
160 * The name of CakePHP's session cookie. | |
161 * | |
162 * Note the guidelines for Session names states: "The session name references | |
163 * the session id in cookies and URLs. It should contain only alphanumeric | |
164 * characters." | |
165 * @link http://php.net/session_name | |
166 */ | |
167 Configure::write('Session.cookie', 'CAKEPHP'); | |
168 | |
169 /** | |
170 * Session time out time (in seconds). | |
171 * Actual value depends on 'Security.level' setting. | |
172 */ | |
173 Configure::write('Session.timeout', '120'); | |
174 | |
175 /** | |
176 * If set to false, sessions are not automatically started. | |
177 */ | |
178 Configure::write('Session.start', true); | |
179 | |
180 /** | |
181 * When set to false, HTTP_USER_AGENT will not be checked | |
182 * in the session. You might want to set the value to false, when dealing with | |
183 * older versions of IE, Chrome Frame or certain web-browsing devices and AJAX | |
184 */ | |
185 Configure::write('Session.checkAgent', true); | |
186 | |
187 /** | |
188 * The level of CakePHP security. The session timeout time defined | |
189 * in 'Session.timeout' is multiplied according to the settings here. | |
190 * Valid values: | |
191 * | |
192 * 'high' Session timeout in 'Session.timeout' x 10 | |
193 * 'medium' Session timeout in 'Session.timeout' x 100 | |
194 * 'low' Session timeout in 'Session.timeout' x 300 | |
195 * | |
196 * CakePHP session IDs are also regenerated between requests if | |
197 * 'Security.level' is set to 'high'. | |
198 */ | |
199 Configure::write('Security.level', 'medium'); | |
200 | |
201 /** | |
202 * A random string used in security hashing methods. | |
203 */ | |
204 Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi'); | |
205 | |
206 /** | |
207 * A random numeric string (digits only) used to encrypt/decrypt strings. | |
208 */ | |
209 Configure::write('Security.cipherSeed', '76859309657453542496749683645'); | |
210 | |
211 /** | |
212 * Apply timestamps with the last modified time to static assets (js, css, images). | |
213 * Will append a querystring parameter containing the time the file was modified. This is | |
214 * useful for invalidating browser caches. | |
215 * | |
216 * Set to `true` to apply timestamps, when debug = 0, or set to 'force' to always enable | |
217 * timestamping. | |
218 */ | |
219 //Configure::write('Asset.timestamp', true); | |
220 /** | |
221 * Compress CSS output by removing comments, whitespace, repeating tags, etc. | |
222 * This requires a/var/cache directory to be writable by the web server for caching. | |
223 * and /vendors/csspp/csspp.php | |
224 * | |
225 * To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use HtmlHelper::css(). | |
226 */ | |
227 //Configure::write('Asset.filter.css', 'css.php'); | |
228 | |
229 /** | |
230 * Plug in your own custom JavaScript compressor by dropping a script in your webroot to handle the | |
231 * output, and setting the config below to the name of the script. | |
232 * | |
233 * To use, prefix your JavaScript link URLs with '/cjs/' instead of '/js/' or use JavaScriptHelper::link(). | |
234 */ | |
235 //Configure::write('Asset.filter.js', 'custom_javascript_output_filter.php'); | |
236 | |
237 /** | |
238 * The classname and database used in CakePHP's | |
239 * access control lists. | |
240 */ | |
241 Configure::write('Acl.classname', 'DbAcl'); | |
242 Configure::write('Acl.database', 'default'); | |
243 | |
244 /** | |
245 * If you are on PHP 5.3 uncomment this line and correct your server timezone | |
246 * to fix the date & time related errors. | |
247 */ | |
248 //date_default_timezone_set('UTC'); | |
249 | |
250 /** | |
251 * | |
252 * Cache Engine Configuration | |
253 * Default settings provided below | |
254 * | |
255 * File storage engine. | |
256 * | |
257 * Cache::config('default', array( | |
258 * 'engine' => 'File', //[required] | |
259 * 'duration'=> 3600, //[optional] | |
260 * 'probability'=> 100, //[optional] | |
261 * 'path' => CACHE, //[optional] use system tmp directory - remember to use absolute path | |
262 * 'prefix' => 'cake_', //[optional] prefix every cache file with this string | |
263 * 'lock' => false, //[optional] use file locking | |
264 * 'serialize' => true, [optional] | |
265 * )); | |
266 * | |
267 * | |
268 * APC (http://pecl.php.net/package/APC) | |
269 * | |
270 * Cache::config('default', array( | |
271 * 'engine' => 'Apc', //[required] | |
272 * 'duration'=> 3600, //[optional] | |
273 * 'probability'=> 100, //[optional] | |
274 * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string | |
275 * )); | |
276 * | |
277 * Xcache (http://xcache.lighttpd.net/) | |
278 * | |
279 * Cache::config('default', array( | |
280 * 'engine' => 'Xcache', //[required] | |
281 * 'duration'=> 3600, //[optional] | |
282 * 'probability'=> 100, //[optional] | |
283 * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string | |
284 * 'user' => 'user', //user from xcache.admin.user settings | |
285 * 'password' => 'password', //plaintext password (xcache.admin.pass) | |
286 * )); | |
287 * | |
288 * | |
289 * Memcache (http://www.danga.com/memcached/) | |
290 * | |
291 * Cache::config('default', array( | |
292 * 'engine' => 'Memcache', //[required] | |
293 * 'duration'=> 3600, //[optional] | |
294 * 'probability'=> 100, //[optional] | |
295 * 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string | |
296 * 'servers' => array( | |
297 * '127.0.0.1:11211' // localhost, default port 11211 | |
298 * ), //[optional] | |
299 * 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory) | |
300 * 'persistent' => true, // [optional] set this to false for non-persistent connections | |
301 * )); | |
302 * | |
303 */ | |
304 Cache::config('default', array('engine' => 'File')); |