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/>
|
2005-12-23 21:57:26 +00:00
|
|
|
* Copyright (c) 2005, 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
|
|
|
|
* @copyright Copyright (c) 2005, Cake Software Foundation, Inc.
|
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
|
2005-08-21 06:49:02 +00:00
|
|
|
* @package cake
|
2005-10-09 01:56:21 +00:00
|
|
|
* @subpackage cake.cake.app.config
|
2005-08-21 06:49:02 +00:00
|
|
|
* @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-06-21 16:48:06 +00:00
|
|
|
*/
|
|
|
|
|
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
|
|
|
*/
|
|
|
|
//define ('BASE_URL', $_SERVER['SCRIPT_NAME']);
|
2005-10-03 04:48:00 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
*/
|
2005-08-21 06:49:02 +00:00
|
|
|
define('DEBUG', 1);
|
[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
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
define('CAKE_SESSION_COOKIE', 'CAKEPHP');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set level of Cake security.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
define('CAKE_SECURITY', 'high');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* CakePHP includes 3 types of session saves
|
|
|
|
* database or file. Set this to your preffered method.
|
|
|
|
* If you want to use your own save handeler place it in
|
|
|
|
* 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
|
2005-12-23 21:57:26 +00:00
|
|
|
*
|
[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
|
|
|
*
|
|
|
|
*/
|
|
|
|
define('CAKE_SESSION_SAVE', 'php');
|
2005-06-21 16:48:06 +00:00
|
|
|
|
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
|
|
|
|
*/
|
|
|
|
//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.
|
|
|
|
*/
|
2005-12-23 21:57:26 +00:00
|
|
|
define('WEBSERVICES', 'off');
|
2005-12-22 01:08:36 +00:00
|
|
|
|
2005-06-21 16:48:06 +00:00
|
|
|
/**
|
|
|
|
* Compress output CSS (removing comments, whitespace, repeating tags etc.)
|
|
|
|
* This requires a /var/cache directory to be writable by the web server (caching).
|
|
|
|
* To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use Controller::cssTag().
|
|
|
|
*/
|
2005-08-21 06:49:02 +00:00
|
|
|
define('COMPRESS_CSS', false);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If set to true, helpers would output data instead of returning it.
|
|
|
|
*/
|
|
|
|
define('AUTO_OUTPUT', false);
|
|
|
|
|
2005-10-03 04:48:00 +00:00
|
|
|
/**
|
|
|
|
* If set to false, session would not automatically be started.
|
|
|
|
*/
|
|
|
|
define('AUTO_SESSION', true);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the max size of file to use md5() .
|
|
|
|
*/
|
|
|
|
define('MAX_MD5SIZE', (5*1024)*1024 );
|
|
|
|
|
2005-08-21 06:49:02 +00:00
|
|
|
/**
|
|
|
|
* To use Access Control Lists with Cake...
|
|
|
|
*/
|
2005-11-05 04:08:14 +00:00
|
|
|
define('ACL_CLASSNAME', 'DB_ACL');
|
|
|
|
define('ACL_FILENAME', 'dbacl'.DS.'db_acl');
|
2005-06-21 16:48:06 +00:00
|
|
|
|
2005-05-22 23:24:09 +00:00
|
|
|
?>
|