2008-05-30 11:40:08 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* This is core configuration file.
|
|
|
|
*
|
|
|
|
* Use it to configure core behavior of Cake.
|
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
2009-11-06 06:46:59 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
|
|
|
* Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2009-11-06 06:46:59 +00:00
|
|
|
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2009-11-06 06:00:11 +00:00
|
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
2008-10-30 17:30:26 +00:00
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.app.config
|
|
|
|
* @since CakePHP(tm) v 0.2.9
|
2009-11-06 06:51:51 +00:00
|
|
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
Configure::write('debug', 2);
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2009-09-10 15:32:21 +00:00
|
|
|
/**
|
|
|
|
* CakePHP Log Level:
|
|
|
|
*
|
|
|
|
* In case of Production Mode CakePHP gives you the possibility to continue logging errors.
|
|
|
|
*
|
|
|
|
* The following parameters can be used:
|
|
|
|
* Boolean: Set true/false to activate/deactivate logging
|
|
|
|
* Configure::write('log', true);
|
|
|
|
*
|
|
|
|
* Integer: Use built-in PHP constants to set the error level (see error_reporting)
|
|
|
|
* Configure::write('log', E_ERROR | E_WARNING);
|
|
|
|
* Configure::write('log', E_ALL ^ E_NOTICE);
|
|
|
|
*/
|
|
|
|
Configure::write('log', true);
|
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Application wide charset encoding
|
|
|
|
*/
|
|
|
|
Configure::write('App.encoding', 'UTF-8');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* To configure CakePHP *not* to use mod_rewrite and to
|
|
|
|
* use CakePHP pretty URLs, remove these .htaccess
|
|
|
|
* files:
|
|
|
|
*
|
|
|
|
* /.htaccess
|
|
|
|
* /app/.htaccess
|
|
|
|
* /app/webroot/.htaccess
|
|
|
|
*
|
|
|
|
* And uncomment the App.baseUrl below:
|
|
|
|
*/
|
|
|
|
//Configure::write('App.baseUrl', env('SCRIPT_NAME'));
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Uncomment the define below to use CakePHP admin routes.
|
|
|
|
*
|
|
|
|
* The value of the define determines the name of the route
|
|
|
|
* and its associated controller actions:
|
|
|
|
*
|
2009-09-27 04:18:24 +00:00
|
|
|
* 'admin' -> admin_index() and /admin/controller/index
|
2008-05-30 11:40:08 +00:00
|
|
|
* 'superuser' -> superuser_index() and /superuser/controller/index
|
2009-09-27 04:18:24 +00:00
|
|
|
*
|
|
|
|
* [Note Routing.admin is deprecated in 1.3. Use Routing.prefixes instead]
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
|
|
|
//Configure::write('Routing.admin', 'admin');
|
|
|
|
|
2009-09-27 04:18:24 +00:00
|
|
|
/**
|
|
|
|
* Uncomment the define below to use CakePHP prefix routes.
|
|
|
|
*
|
|
|
|
* Set to an array of prefixes you want to use in your application. Use for
|
|
|
|
* admin or other prefixed routes.
|
|
|
|
*
|
|
|
|
* Routing.prefixes = array('admin', 'manager');
|
|
|
|
*
|
|
|
|
* Enables:
|
|
|
|
* `admin_index()` and `/admin/controller/index`
|
|
|
|
* `manager_index()` and `/manager/controller/index`
|
|
|
|
*/
|
|
|
|
//Configure::write('Routing.prefixes', array('admin'));
|
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Turn off all caching application-wide.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
//Configure::write('Cache.disable', true);
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Enable cache checking.
|
|
|
|
*
|
|
|
|
* If set to true, for view caching you must still use the controller
|
|
|
|
* var $cacheAction inside your controllers to define caching settings.
|
|
|
|
* You can either set it controller-wide by setting var $cacheAction = true,
|
|
|
|
* or in each action using $this->cacheAction = true.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
//Configure::write('Cache.check', true);
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Defines the default error type when using the log() function. Used for
|
|
|
|
* differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
|
|
|
|
*/
|
|
|
|
define('LOG_ERROR', 2);
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* The preferred session handling method. Valid values:
|
|
|
|
*
|
|
|
|
* 'php' Uses settings defined in your php.ini.
|
|
|
|
* 'cake' Saves session files in CakePHP's /tmp directory.
|
|
|
|
* 'database' Uses CakePHP's database sessions.
|
|
|
|
*
|
|
|
|
* To define a custom session handler, save it at /app/config/<name>.php.
|
|
|
|
* Set the value of 'Session.save' to <name> to utilize it in CakePHP.
|
|
|
|
*
|
2009-09-10 15:32:21 +00:00
|
|
|
* To use database sessions, run the app/config/schema/sessions.php schema using
|
|
|
|
* the cake shell command: cake schema run create Sessions
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
Configure::write('Session.save', 'php');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2009-09-10 15:32:21 +00:00
|
|
|
/**
|
|
|
|
* The model name to be used for the session model.
|
|
|
|
*
|
|
|
|
* 'Session.save' must be set to 'database' in order to utilize this constant.
|
|
|
|
*
|
|
|
|
* The model name set here should *not* be used elsewhere in your application.
|
|
|
|
*/
|
|
|
|
//Configure::write('Session.model', 'Session');
|
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* The name of the table used to store CakePHP database sessions.
|
|
|
|
*
|
|
|
|
* 'Session.save' must be set to 'database' in order to utilize this constant.
|
|
|
|
*
|
|
|
|
* The table name set here should *not* include any table prefix defined elsewhere.
|
2009-09-10 15:32:21 +00:00
|
|
|
*
|
|
|
|
* Please note that if you set a value for Session.model (above), any value set for
|
|
|
|
* Session.table will be ignored.
|
|
|
|
*
|
|
|
|
* [Note: Session.table is deprecated as of CakePHP 1.3]
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
|
|
|
//Configure::write('Session.table', 'cake_sessions');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* The DATABASE_CONFIG::$var to use for database session handling.
|
|
|
|
*
|
|
|
|
* 'Session.save' must be set to 'database' in order to utilize this constant.
|
|
|
|
*/
|
|
|
|
//Configure::write('Session.database', 'default');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* The name of CakePHP's session cookie.
|
|
|
|
*/
|
|
|
|
Configure::write('Session.cookie', 'CAKEPHP');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Session time out time (in seconds).
|
|
|
|
* Actual value depends on 'Security.level' setting.
|
|
|
|
*/
|
|
|
|
Configure::write('Session.timeout', '120');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* If set to false, sessions are not automatically started.
|
|
|
|
*/
|
|
|
|
Configure::write('Session.start', true);
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* When set to false, HTTP_USER_AGENT will not be checked
|
|
|
|
* in the session
|
|
|
|
*/
|
|
|
|
Configure::write('Session.checkAgent', true);
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* The level of CakePHP security. The session timeout time defined
|
|
|
|
* in 'Session.timeout' is multiplied according to the settings here.
|
|
|
|
* Valid values:
|
|
|
|
*
|
|
|
|
* 'high' Session timeout in 'Session.timeout' x 10
|
|
|
|
* 'medium' Session timeout in 'Session.timeout' x 100
|
|
|
|
* 'low' Session timeout in 'Session.timeout' x 300
|
|
|
|
*
|
|
|
|
* CakePHP session IDs are also regenerated between requests if
|
|
|
|
* 'Security.level' is set to 'high'.
|
|
|
|
*/
|
|
|
|
Configure::write('Security.level', 'high');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* A random string used in security hashing methods.
|
|
|
|
*/
|
|
|
|
Configure::write('Security.salt', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Compress CSS output by removing comments, whitespace, repeating tags, etc.
|
|
|
|
* This requires a/var/cache directory to be writable by the web server for caching.
|
|
|
|
* and /vendors/csspp/csspp.php
|
|
|
|
*
|
|
|
|
* To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use HtmlHelper::css().
|
|
|
|
*/
|
|
|
|
//Configure::write('Asset.filter.css', 'css.php');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* Plug in your own custom JavaScript compressor by dropping a script in your webroot to handle the
|
|
|
|
* output, and setting the config below to the name of the script.
|
|
|
|
*
|
|
|
|
* To use, prefix your JavaScript link URLs with '/cjs/' instead of '/js/' or use JavaScriptHelper::link().
|
|
|
|
*/
|
|
|
|
//Configure::write('Asset.filter.js', 'custom_javascript_output_filter.php');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
|
|
|
* The classname and database used in CakePHP's
|
|
|
|
* access control lists.
|
|
|
|
*/
|
|
|
|
Configure::write('Acl.classname', 'DbAcl');
|
|
|
|
Configure::write('Acl.database', 'default');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2009-07-31 15:48:30 +00:00
|
|
|
/**
|
|
|
|
* If you are on PHP 5.3 uncomment this line and correct your server timezone
|
|
|
|
* to fix the date & time related errors.
|
|
|
|
*/
|
|
|
|
//date_default_timezone_set('UTC');
|
2009-09-10 15:32:21 +00:00
|
|
|
|
2009-07-31 15:48:30 +00:00
|
|
|
/**
|
|
|
|
* If you are on PHP 5.3 uncomment this line and correct your server timezone
|
|
|
|
* to fix the date & time related errors.
|
|
|
|
*/
|
|
|
|
//date_default_timezone_set('UTC');
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
2008-06-02 17:35:56 +00:00
|
|
|
*
|
2008-05-30 11:40:08 +00:00
|
|
|
* Cache Engine Configuration
|
2008-06-02 17:35:56 +00:00
|
|
|
* Default settings provided below
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* File storage engine.
|
2008-06-02 17:35:56 +00:00
|
|
|
*
|
|
|
|
* Cache::config('default', array(
|
2008-06-23 22:58:06 +00:00
|
|
|
* 'engine' => 'File', //[required]
|
2008-06-02 17:35:56 +00:00
|
|
|
* 'duration'=> 3600, //[optional]
|
|
|
|
* 'probability'=> 100, //[optional]
|
|
|
|
* 'path' => CACHE, //[optional] use system tmp directory - remember to use absolute path
|
|
|
|
* 'prefix' => 'cake_', //[optional] prefix every cache file with this string
|
|
|
|
* 'lock' => false, //[optional] use file locking
|
|
|
|
* 'serialize' => true, [optional]
|
|
|
|
* ));
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* APC (http://pecl.php.net/package/APC)
|
|
|
|
*
|
|
|
|
* Cache::config('default', array(
|
2008-06-23 22:58:06 +00:00
|
|
|
* 'engine' => 'Apc', //[required]
|
2008-06-02 17:35:56 +00:00
|
|
|
* 'duration'=> 3600, //[optional]
|
|
|
|
* 'probability'=> 100, //[optional]
|
|
|
|
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
|
|
|
|
* ));
|
|
|
|
*
|
|
|
|
* Xcache (http://xcache.lighttpd.net/)
|
|
|
|
*
|
|
|
|
* Cache::config('default', array(
|
2008-06-23 22:58:06 +00:00
|
|
|
* 'engine' => 'Xcache', //[required]
|
2008-06-02 17:35:56 +00:00
|
|
|
* 'duration'=> 3600, //[optional]
|
|
|
|
* 'probability'=> 100, //[optional]
|
|
|
|
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
|
|
|
|
* 'user' => 'user', //user from xcache.admin.user settings
|
|
|
|
* 'password' => 'password', //plaintext password (xcache.admin.pass)
|
|
|
|
* ));
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Memcache (http://www.danga.com/memcached/)
|
|
|
|
*
|
|
|
|
* Cache::config('default', array(
|
2008-06-23 22:58:06 +00:00
|
|
|
* 'engine' => 'Memcache', //[required]
|
2008-06-02 17:35:56 +00:00
|
|
|
* 'duration'=> 3600, //[optional]
|
|
|
|
* 'probability'=> 100, //[optional]
|
|
|
|
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
|
|
|
|
* 'servers' => array(
|
|
|
|
* '127.0.0.1:11211' // localhost, default port 11211
|
|
|
|
* ), //[optional]
|
|
|
|
* 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
|
|
|
|
* ));
|
|
|
|
*
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
|
|
|
Cache::config('default', array('engine' => 'File'));
|
|
|
|
?>
|