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.
|
|
|
|
*
|
2005-08-21 06:49:02 +00:00
|
|
|
* Use it to configure core behaviour ofCake.
|
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
|
|
|
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
2006-05-26 05:29:17 +00:00
|
|
|
* Copyright (c) 2006, Cake Software Foundation, Inc.
|
|
|
|
* 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
|
2006-05-26 05:29:17 +00:00
|
|
|
* @copyright Copyright (c) 2006, Cake Software Foundation, Inc.
|
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.app.config
|
|
|
|
* @since CakePHP v 0.2.9
|
|
|
|
* @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
|
|
|
/**
|
|
|
|
* If you do not have mod rewrite on your system
|
|
|
|
* or if you prefer to use CakePHP pretty urls.
|
|
|
|
* uncomment the line below.
|
|
|
|
* Note: If you do have mod rewrite but prefer the
|
|
|
|
* CakePHP pretty urls, you also have to remove the
|
2005-12-23 21:57:26 +00:00
|
|
|
* .htaccess files
|
|
|
|
* release/.htaccess
|
|
|
|
* release/app/.htaccess
|
|
|
|
* release/app/webroot/.htaccess
|
2005-10-04 18:33:48 +00:00
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
// define ('BASE_URL', env('SCRIPT_NAME'));
|
2005-06-21 16:48:06 +00:00
|
|
|
/**
|
|
|
|
* Set debug level here:
|
|
|
|
* - 0: production
|
|
|
|
* - 1: development
|
|
|
|
* - 2: full debug with sql
|
[1258]
Author: phpnut
Date: 8:13:45 PM, Friday, October 28, 2005
Message:
adding version text file
[1257]
Author: phpnut
Date: 8:03:24 PM, Friday, October 28, 2005
Message:
small typo in last commit
[1256]
Author: phpnut
Date: 7:16:50 PM, Friday, October 28, 2005
Message:
Added fix for a self join of 1 to 1 associations.
This is automatic and adds Child_ to the joined class for hasOne or belongsTo.
Scaffold is updated to work with this change.
You will have to consider the Child_ prefix when working with self joins.
[1253]
Author: phpnut
Date: 4:07:55 PM, Friday, October 28, 2005
Message:
Fixed problem with session cookies being set for each path in the URL.
Added char to switch in Controller::generateFieldNames()
[1252]
Author: phpnut
Date: 1:59:49 PM, Friday, October 28, 2005
Message:
Updated routes.php.default with change to route case.
Removed debug code I had added to Model::findAll
[1251]
Author: phpnut
Date: 1:51:00 PM, Friday, October 28, 2005
Message:
Added a fix for class already defined error.
Updated core.php docblock with level 3 setting for DEBUG.
Change instances of AppController to Controller for loading error messages.
Updated 404 errors to use default layout
[1250]
Author: phpnut
Date: 1:34:08 PM, Friday, October 28, 2005
Message:
renaming error or error404
[1249]
Author: phpnut
Date: 1:32:51 PM, Friday, October 28, 2005
Message:
moving error.thtml to errors directory
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1259 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-10-29 01:21:47 +00:00
|
|
|
* - 3: full debug with sql and dump of the current object
|
2005-09-17 02:22:07 +00:00
|
|
|
*
|
2005-12-23 21:57:26 +00:00
|
|
|
* In production, the "flash messages" redirect after a time interval.
|
2005-09-17 02:22:07 +00:00
|
|
|
* With the other debug levels you get to click the "flash message" to continue.
|
[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
|
|
|
*
|
2005-06-21 16:48:06 +00:00
|
|
|
*/
|
2006-09-10 17:32:52 +00:00
|
|
|
define('DEBUG', 2);
|
2006-03-12 00:11:40 +00:00
|
|
|
/**
|
|
|
|
* Turn of caching checking wide.
|
|
|
|
* You must still use the controller var cacheAction inside you controller class.
|
|
|
|
* You can either set it controller wide, or in each controller method.
|
|
|
|
* use var $cacheAction = true; or in the controller method $this->cacheAction = true;
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('CACHE_CHECK', false);
|
2006-02-08 15:25:34 +00:00
|
|
|
/**
|
2006-02-18 23:42:21 +00:00
|
|
|
* Error constant. Used for differentiating error logging and debugging.
|
|
|
|
* Currently PHP supports LOG_DEBUG
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('LOG_ERROR', 2);
|
2006-02-17 10:12:15 +00:00
|
|
|
/**
|
|
|
|
* CakePHP includes 3 types of session saves
|
2006-02-18 23:42:21 +00:00
|
|
|
* database or file. Set this to your preferred method.
|
|
|
|
* If you want to use your own save handler place it in
|
2006-02-17 10:12:15 +00:00
|
|
|
* app/config/name.php DO NOT USE file or database as the name.
|
|
|
|
* and use just the name portion below.
|
|
|
|
*
|
|
|
|
* Setting this to cake will save files to /cakedistro/tmp directory
|
|
|
|
* Setting it to php will use the php default save path
|
|
|
|
* Setting it to database will use the database
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('CAKE_SESSION_SAVE', 'php');
|
|
|
|
/**
|
|
|
|
* If using you own table name for storing sessions
|
|
|
|
* set the table name here.
|
|
|
|
* DO NOT INCLUDE PREFIX IF YOU HAVE SET ONE IN database.php
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
define('CAKE_SESSION_TABLE', 'cake_sessions');
|
2006-02-17 10:12:15 +00:00
|
|
|
/**
|
|
|
|
* Set a random string of used in session.
|
|
|
|
*
|
|
|
|
*/
|
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
|
|
|
/**
|
|
|
|
* Set the name of session cookie
|
|
|
|
*
|
|
|
|
*/
|
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
|
|
|
/**
|
|
|
|
* Set level of Cake security.
|
|
|
|
*
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('CAKE_SECURITY', 'high');
|
2006-01-17 05:13:38 +00:00
|
|
|
/**
|
|
|
|
* Set Cake Session time out.
|
|
|
|
* If CAKE_SECURITY define is set
|
|
|
|
* high: multiplied by 10
|
|
|
|
* medium: is multiplied by 100
|
|
|
|
* low is: multiplied by 300
|
|
|
|
*
|
|
|
|
* Number below is seconds.
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('CAKE_SESSION_TIMEOUT', '120');
|
2005-10-28 08:25:31 +00:00
|
|
|
/**
|
|
|
|
* Uncomment the define below to use cake built in admin routes.
|
|
|
|
* You can set this value to anything you want.
|
|
|
|
* All methods related to the admin route should be prefixed with the
|
|
|
|
* name you set CAKE_ADMIN to.
|
|
|
|
* For example: admin_index, admin_edit
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
// define('CAKE_ADMIN', 'admin');
|
2005-12-22 01:08:36 +00:00
|
|
|
/**
|
|
|
|
* The define below is used to turn cake built webservices
|
|
|
|
* on or off. Default setting is off.
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('WEBSERVICES', 'off');
|
2005-06-21 16:48:06 +00:00
|
|
|
/**
|
|
|
|
* Compress output CSS (removing comments, whitespace, repeating tags etc.)
|
2006-02-18 23:42:21 +00:00
|
|
|
* This requires a/var/cache directory to be writable by the web server (caching).
|
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
|
|
|
/**
|
|
|
|
* If set to false, session would not automatically be started.
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('AUTO_SESSION', true);
|
2005-10-03 04:48:00 +00:00
|
|
|
/**
|
|
|
|
* Set the max size of file to use md5() .
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('MAX_MD5SIZE', (5 * 1024) * 1024);
|
2005-08-21 06:49:02 +00:00
|
|
|
/**
|
|
|
|
* To use Access Control Lists with Cake...
|
|
|
|
*/
|
2006-05-26 05:29:17 +00:00
|
|
|
define('ACL_CLASSNAME', 'DB_ACL');
|
|
|
|
define('ACL_FILENAME', 'dbacl' . DS . 'db_acl');
|
2006-10-09 15:47:50 +00:00
|
|
|
define('ACL_DATABASE', 'default');
|
2005-05-22 23:24:09 +00:00
|
|
|
?>
|