2005-07-04 01:07:14 +00:00
|
|
|
<?php
|
2005-08-21 06:49:02 +00:00
|
|
|
/* SVN FILE: $Id$ */
|
2005-06-21 16:48:06 +00:00
|
|
|
/**
|
2005-12-23 21:57:26 +00:00
|
|
|
* This is core configuration file.
|
|
|
|
*
|
2007-09-30 07:45:34 +00:00
|
|
|
* Use it to configure core behavior of Cake.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
2007-02-02 10:39:45 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>
|
|
|
|
* Copyright 2005-2007, Cake Software Foundation, Inc.
|
2006-05-26 05:29:17 +00:00
|
|
|
* 1785 E. Sahara Avenue, Suite 490-204
|
|
|
|
* Las Vegas, Nevada 89104
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2005-12-23 21:57:26 +00:00
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
2005-08-21 06:49:02 +00:00
|
|
|
*
|
2005-12-23 21:57:26 +00:00
|
|
|
* @filesource
|
2007-02-02 10:39:45 +00:00
|
|
|
* @copyright Copyright 2005-2007, Cake Software Foundation, Inc.
|
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
|
2006-05-26 05:29:17 +00:00
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.app.config
|
2007-02-02 10:39:45 +00:00
|
|
|
* @since CakePHP(tm) v 0.2.9
|
2006-05-26 05:29:17 +00:00
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
|
|
|
*/
|
2005-10-04 18:33:48 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* To configure CakePHP *not* to use mod_rewrite and to
|
|
|
|
* use CakePHP pretty URLs, remove these .htaccess
|
|
|
|
* files:
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* /.htaccess
|
|
|
|
* /app/.htaccess
|
|
|
|
* /app/webroot/.htaccess
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-09-30 07:45:34 +00:00
|
|
|
* And uncomment the baseUrl below:
|
2007-02-17 18:38:36 +00:00
|
|
|
*/
|
2007-09-30 07:45:34 +00:00
|
|
|
//Configure::write('baseUrl', env('SCRIPT_NAME'));
|
2007-02-17 18:38:36 +00:00
|
|
|
/**
|
|
|
|
* CakePHP Debug Level:
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* Production Mode:
|
|
|
|
* 0: No error messages, errors, or warnings shown. Flash messages redirect.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* 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.
|
[1242]
Author: phpnut
Date: 6:19:00 PM, Thursday, October 27, 2005
Message:
removing session directory
[1241]
Author: phpnut
Date: 6:13:46 PM, Thursday, October 27, 2005
Message:
added docblocks and temp error messages when trying to use the unimplemeted database for sessions
[1239]
Author: phpnut
Date: 5:28:57 PM, Thursday, October 27, 2005
Message:
More work on session.
Added config settings to core.php
updated model to allow models without a database table.
[1237]
Author: phpnut
Date: 3:50:27 PM, Thursday, October 27, 2005
Message:
adding directories for sessions
[1235]
Author: phpnut
Date: 3:36:08 AM, Thursday, October 27, 2005
Message:
Typo
[1234]
Author: phpnut
Date: 3:34:07 AM, Thursday, October 27, 2005
Message:
More work on the Session classes and adding the first methods the to Security class
[1233]
Author: phpnut
Date: 3:05:46 AM, Thursday, October 27, 2005
Message:
Start to core security class added.
Moved paths.php to cake/config/
Refactoring Session classes
[1232]
Author: phpnut
Date: 2:20:25 AM, Thursday, October 27, 2005
Message:
More work on the core session class.
Adding session component class.
Added fix for errors messages not working with validation.
Added possible fix for inflector now working on the word status.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1243 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-27 23:29:56 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* In production mode, flash messages redirect after a time interval.
|
|
|
|
* In development mode, you need to click the flash message to continue.
|
2005-06-21 16:48:06 +00:00
|
|
|
*/
|
2007-08-16 05:44:06 +00:00
|
|
|
Configure::write('debug', 2);
|
2007-10-01 18:58:35 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Turn off caching application-wide.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
Configure::write('Cache.disable', false);
|
2006-03-12 00:11:40 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* Turn off or enable cache checking application-wide.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
|
|
|
* If set to true, 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
|
2007-02-17 18:38:36 +00:00
|
|
|
* using $this->cacheAction = true.
|
2006-03-12 00:11:40 +00:00
|
|
|
*/
|
2007-10-01 18:58:35 +00:00
|
|
|
Configure::write('Cache.check', false);
|
2006-02-08 15:25:34 +00:00
|
|
|
/**
|
2007-04-30 06:01:54 +00:00
|
|
|
* Defines the default error type when using the log() function. Used for
|
2007-02-17 18:38:36 +00:00
|
|
|
* differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
|
2006-02-18 23:42:21 +00:00
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('LOG_ERROR', 2);
|
2006-02-17 10:12:15 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* The preferred session handling method. Valid values:
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* 'php' Uses settings defined in your php.ini.
|
|
|
|
* 'cake' Saves session files in CakePHP's /tmp directory.
|
|
|
|
* 'database' Uses CakePHP's database sessions.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* To define a custom session handler, save it at /app/config/<name>.php.
|
|
|
|
* Set the value of CAKE_SESSION_SAVE to <name> to utilize it in CakePHP.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* To use database sessions, execute the SQL file found at /app/config/sql/sessions.sql.
|
2006-02-17 10:12:15 +00:00
|
|
|
*
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('CAKE_SESSION_SAVE', 'php');
|
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* The name of the table used to store CakePHP database sessions.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* CAKE_SESSION_SAVE must be set to 'database' in order to utilize this constant.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* The table name set here should *not* include any table prefix defined elsewhere.
|
2006-05-26 05:29:17 +00:00
|
|
|
*/
|
|
|
|
define('CAKE_SESSION_TABLE', 'cake_sessions');
|
2006-02-17 10:12:15 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* A random string used in session management.
|
2006-02-17 10:12:15 +00:00
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('CAKE_SESSION_STRING', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
|
[1242]
Author: phpnut
Date: 6:19:00 PM, Thursday, October 27, 2005
Message:
removing session directory
[1241]
Author: phpnut
Date: 6:13:46 PM, Thursday, October 27, 2005
Message:
added docblocks and temp error messages when trying to use the unimplemeted database for sessions
[1239]
Author: phpnut
Date: 5:28:57 PM, Thursday, October 27, 2005
Message:
More work on session.
Added config settings to core.php
updated model to allow models without a database table.
[1237]
Author: phpnut
Date: 3:50:27 PM, Thursday, October 27, 2005
Message:
adding directories for sessions
[1235]
Author: phpnut
Date: 3:36:08 AM, Thursday, October 27, 2005
Message:
Typo
[1234]
Author: phpnut
Date: 3:34:07 AM, Thursday, October 27, 2005
Message:
More work on the Session classes and adding the first methods the to Security class
[1233]
Author: phpnut
Date: 3:05:46 AM, Thursday, October 27, 2005
Message:
Start to core security class added.
Moved paths.php to cake/config/
Refactoring Session classes
[1232]
Author: phpnut
Date: 2:20:25 AM, Thursday, October 27, 2005
Message:
More work on the core session class.
Adding session component class.
Added fix for errors messages not working with validation.
Added possible fix for inflector now working on the word status.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1243 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-27 23:29:56 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* The name of CakePHP's session cookie.
|
[1242]
Author: phpnut
Date: 6:19:00 PM, Thursday, October 27, 2005
Message:
removing session directory
[1241]
Author: phpnut
Date: 6:13:46 PM, Thursday, October 27, 2005
Message:
added docblocks and temp error messages when trying to use the unimplemeted database for sessions
[1239]
Author: phpnut
Date: 5:28:57 PM, Thursday, October 27, 2005
Message:
More work on session.
Added config settings to core.php
updated model to allow models without a database table.
[1237]
Author: phpnut
Date: 3:50:27 PM, Thursday, October 27, 2005
Message:
adding directories for sessions
[1235]
Author: phpnut
Date: 3:36:08 AM, Thursday, October 27, 2005
Message:
Typo
[1234]
Author: phpnut
Date: 3:34:07 AM, Thursday, October 27, 2005
Message:
More work on the Session classes and adding the first methods the to Security class
[1233]
Author: phpnut
Date: 3:05:46 AM, Thursday, October 27, 2005
Message:
Start to core security class added.
Moved paths.php to cake/config/
Refactoring Session classes
[1232]
Author: phpnut
Date: 2:20:25 AM, Thursday, October 27, 2005
Message:
More work on the core session class.
Adding session component class.
Added fix for errors messages not working with validation.
Added possible fix for inflector now working on the word status.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1243 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-27 23:29:56 +00:00
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('CAKE_SESSION_COOKIE', 'CAKEPHP');
|
[1242]
Author: phpnut
Date: 6:19:00 PM, Thursday, October 27, 2005
Message:
removing session directory
[1241]
Author: phpnut
Date: 6:13:46 PM, Thursday, October 27, 2005
Message:
added docblocks and temp error messages when trying to use the unimplemeted database for sessions
[1239]
Author: phpnut
Date: 5:28:57 PM, Thursday, October 27, 2005
Message:
More work on session.
Added config settings to core.php
updated model to allow models without a database table.
[1237]
Author: phpnut
Date: 3:50:27 PM, Thursday, October 27, 2005
Message:
adding directories for sessions
[1235]
Author: phpnut
Date: 3:36:08 AM, Thursday, October 27, 2005
Message:
Typo
[1234]
Author: phpnut
Date: 3:34:07 AM, Thursday, October 27, 2005
Message:
More work on the Session classes and adding the first methods the to Security class
[1233]
Author: phpnut
Date: 3:05:46 AM, Thursday, October 27, 2005
Message:
Start to core security class added.
Moved paths.php to cake/config/
Refactoring Session classes
[1232]
Author: phpnut
Date: 2:20:25 AM, Thursday, October 27, 2005
Message:
More work on the core session class.
Adding session component class.
Added fix for errors messages not working with validation.
Added possible fix for inflector now working on the word status.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1243 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-27 23:29:56 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* The level of CakePHP session security. The session timeout time defined
|
|
|
|
* in CAKE_SESSION_TIMEOUT is multiplied according to the settings here.
|
|
|
|
* Valid values:
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* 'high' Session timeout in CAKE_SESSION_TIMEOUT x 10
|
|
|
|
* 'medium' Session timeout in CAKE_SESSION_TIMEOUT x 100
|
|
|
|
* 'low' Session timeout in CAKE_SESSION_TIMEOUT x 300
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
|
|
|
* CakePHP session IDs are also regenerated between requests if
|
2007-02-17 18:38:36 +00:00
|
|
|
* CAKE_SECURITY is set to 'high'.
|
[1242]
Author: phpnut
Date: 6:19:00 PM, Thursday, October 27, 2005
Message:
removing session directory
[1241]
Author: phpnut
Date: 6:13:46 PM, Thursday, October 27, 2005
Message:
added docblocks and temp error messages when trying to use the unimplemeted database for sessions
[1239]
Author: phpnut
Date: 5:28:57 PM, Thursday, October 27, 2005
Message:
More work on session.
Added config settings to core.php
updated model to allow models without a database table.
[1237]
Author: phpnut
Date: 3:50:27 PM, Thursday, October 27, 2005
Message:
adding directories for sessions
[1235]
Author: phpnut
Date: 3:36:08 AM, Thursday, October 27, 2005
Message:
Typo
[1234]
Author: phpnut
Date: 3:34:07 AM, Thursday, October 27, 2005
Message:
More work on the Session classes and adding the first methods the to Security class
[1233]
Author: phpnut
Date: 3:05:46 AM, Thursday, October 27, 2005
Message:
Start to core security class added.
Moved paths.php to cake/config/
Refactoring Session classes
[1232]
Author: phpnut
Date: 2:20:25 AM, Thursday, October 27, 2005
Message:
More work on the core session class.
Adding session component class.
Added fix for errors messages not working with validation.
Added possible fix for inflector now working on the word status.
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1243 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-27 23:29:56 +00:00
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('CAKE_SECURITY', 'high');
|
2006-01-17 05:13:38 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* Session time out time (in seconds).
|
|
|
|
* Actual value depends on CAKE_SECURITY setting.
|
2006-01-17 05:13:38 +00:00
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('CAKE_SESSION_TIMEOUT', '120');
|
2005-10-28 08:25:31 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* Uncomment the define below to use CakePHP admin routes.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* The value of the define determines the name of the route
|
|
|
|
* and its associated controller actions:
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-02-17 18:38:36 +00:00
|
|
|
* 'admin' -> admin_index() and /admin/controller/index
|
|
|
|
* 'superuser' -> superuser_index() and /superuser/controller/index
|
2005-10-28 08:25:31 +00:00
|
|
|
*/
|
2007-08-16 05:44:06 +00:00
|
|
|
// Configure::write('Routing.admin', 'admin');
|
2005-12-22 01:08:36 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* Enable or disable CakePHP webservices routing. Set to 'off' or 'on'.
|
2007-09-24 23:49:54 +00:00
|
|
|
*
|
2007-08-16 05:44:06 +00:00
|
|
|
* @deprecated
|
|
|
|
* @see Router::parseExtensions()
|
2005-12-22 01:08:36 +00:00
|
|
|
*/
|
2007-08-16 05:44:06 +00:00
|
|
|
Configure::write('Routing.webservices', 'off');
|
2005-06-21 16:48:06 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +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.
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2005-06-21 16:48:06 +00:00
|
|
|
* To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use Controller::cssTag().
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('COMPRESS_CSS', false);
|
2005-10-03 04:48:00 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* If set to false, sessions are not automatically started.
|
2005-10-03 04:48:00 +00:00
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('AUTO_SESSION', true);
|
2005-10-03 04:48:00 +00:00
|
|
|
/**
|
2007-02-17 18:38:36 +00:00
|
|
|
* The max size of file allowed for MD5 hashes (in bytes).
|
2005-10-03 04:48:00 +00:00
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('MAX_MD5SIZE', (5 * 1024) * 1024);
|
2005-08-21 06:49:02 +00:00
|
|
|
/**
|
2007-07-31 14:04:18 +00:00
|
|
|
* The classname and database used in CakePHP's
|
2007-02-17 18:38:36 +00:00
|
|
|
* access control lists.
|
2005-08-21 06:49:02 +00:00
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('ACL_CLASSNAME', 'DB_ACL');
|
2006-10-09 15:47:50 +00:00
|
|
|
define('ACL_DATABASE', 'default');
|
2007-04-30 07:47:14 +00:00
|
|
|
/**
|
2007-09-30 07:45:34 +00:00
|
|
|
* Cache Engine Configuration
|
|
|
|
*
|
|
|
|
* File storage engine.
|
|
|
|
* default dir is /app/tmp/cache/
|
|
|
|
* $cakeCache = array('File', array(
|
|
|
|
* [optional] 'duration'=> 3600,
|
|
|
|
* [optional] 'probability'=> 100,
|
|
|
|
* [optional] 'dir' => '/tmp', // use system tmp directory - remember to use absolute path
|
|
|
|
* [optional] 'prefix' => 'cake_', // prefix every cache file with this string
|
|
|
|
* [optional] 'lock' => false, // use file locking
|
|
|
|
* [optional] 'serialize' => true,
|
2007-04-30 06:01:54 +00:00
|
|
|
* ));
|
|
|
|
*
|
|
|
|
* APC (Alternative PHP Cache)
|
2007-09-30 07:45:34 +00:00
|
|
|
* $cakeCache = array('Apc', array(
|
|
|
|
* [optional] 'duration'=> 3600,
|
|
|
|
* [optional] 'probability'=> 100
|
|
|
|
* ));
|
2007-04-30 06:01:54 +00:00
|
|
|
*
|
2007-04-30 11:31:35 +00:00
|
|
|
* Xcache (PHP opcode cacher)
|
|
|
|
* $cakeCache = array('Xcache', array(
|
2007-09-30 07:45:34 +00:00
|
|
|
* [optional] 'duration'=> 3600,
|
|
|
|
* [optional] 'probability'=> 100,
|
2007-04-30 11:31:35 +00:00
|
|
|
* 'user' => 'admin', // user from xcache.admin.user settings
|
|
|
|
* 'password' => 'your_password', // plaintext password (xcache.admin.pass)
|
2007-09-30 07:45:34 +00:00
|
|
|
* ));
|
2007-04-30 11:31:35 +00:00
|
|
|
*
|
2007-04-30 06:01:54 +00:00
|
|
|
* Memcache
|
2007-09-30 07:45:34 +00:00
|
|
|
* $cakeCache = array('Memcache', array(
|
|
|
|
* [optional] 'duration'=> 3600,
|
|
|
|
* [optional] 'probability'=> 100,
|
|
|
|
* [optional] 'servers' => array(
|
|
|
|
* '127.0.0.1', // localhost, default port
|
|
|
|
* '10.0.0.1:12345', // port 12345
|
|
|
|
* ),
|
|
|
|
* [optional] 'compress' => true, // compress data in Memcache (slower, but uses less memory)
|
2007-04-30 06:01:54 +00:00
|
|
|
* ));
|
|
|
|
*
|
|
|
|
* Cake Model
|
2007-09-30 07:45:34 +00:00
|
|
|
* $cakeCache = array('Model', array(
|
|
|
|
* [optional] 'duration'=> 3600,
|
|
|
|
* [optional] 'probability'=> 100,
|
2007-10-01 18:58:35 +00:00
|
|
|
* [optional] 'className' => 'Cache',
|
2007-09-30 07:45:34 +00:00
|
|
|
* [optional] 'fields' => array('data' => 'data', 'expires => 'expires'),
|
|
|
|
* [optional] 'serialize' => true,
|
|
|
|
* ));
|
2007-04-30 06:01:54 +00:00
|
|
|
*/
|
2007-04-30 07:47:14 +00:00
|
|
|
$cakeCache = array('File');
|
2007-05-03 04:35:25 +00:00
|
|
|
?>
|