core.php

Go to the documentation of this file.
00001 <?php
00002 /* SVN FILE: $Id: cake_2scripts_2templates_2skel_2config_2core_8php-source.html 675 2008-12-26 00:27:14Z gwoo $ */
00003 /**
00004  * This is core configuration file.
00005  *
00006  * Use it to configure core behaviour ofCake.
00007  *
00008  * PHP versions 4 and 5
00009  *
00010  * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
00011  * Copyright 2005-2008, Cake Software Foundation, Inc.
00012  *                              1785 E. Sahara Avenue, Suite 490-204
00013  *                              Las Vegas, Nevada 89104
00014  *
00015  * Licensed under The MIT License
00016  * Redistributions of files must retain the above copyright notice.
00017  *
00018  * @filesource
00019  * @copyright       Copyright 2005-2008, Cake Software Foundation, Inc.
00020  * @link                http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
00021  * @package         cake
00022  * @subpackage      cake.app.config
00023  * @since           CakePHP(tm) v 0.2.9
00024  * @version         $Revision: 675 $
00025  * @modifiedby      $LastChangedBy: gwoo $
00026  * @lastmodified    $Date: 2008-12-25 16:27:14 -0800 (Thu, 25 Dec 2008) $
00027  * @license         http://www.opensource.org/licenses/mit-license.php The MIT License
00028  */
00029 /**
00030  * If you do not have mod rewrite on your system
00031  * or if you prefer to use CakePHP pretty urls.
00032  * uncomment the line below.
00033  * Note: If you do have mod rewrite but prefer the
00034  * CakePHP pretty urls, you also have to remove the
00035  * .htaccess files
00036  * release/.htaccess
00037  * release/app/.htaccess
00038  * release/app/webroot/.htaccess
00039  */
00040 //  define ('BASE_URL', env('SCRIPT_NAME'));
00041 /**
00042  * Set debug level here:
00043  * - 0: production
00044  * - 1: development
00045  * - 2: full debug with sql
00046  * - 3: full debug with sql and dump of the current object
00047  *
00048  * In production, the "flash messages" redirect after a time interval.
00049  * With the other debug levels you get to click the "flash message" to continue.
00050  *
00051  */
00052     define('DEBUG', 1);
00053 /**
00054  * Turn of caching checking wide.
00055  * You must still use the controller var cacheAction inside you controller class.
00056  * You can either set it controller wide, or in each controller method.
00057  * use var $cacheAction = true; or in the controller method $this->cacheAction = true;
00058  */
00059     define('CACHE_CHECK', false);
00060 /**
00061  * Error constant. Used for differentiating error logging and debugging.
00062  * Currently PHP supports LOG_DEBUG
00063  */
00064     define('LOG_ERROR', 2);
00065 /**
00066  * CakePHP includes 3 types of session saves
00067  * database or file. Set this to your preferred method.
00068  * If you want to use your own save handler place it in
00069  * app/config/name.php DO NOT USE file or database as the name.
00070  * and use just the name portion below.
00071  *
00072  * Setting this to cake will save files to /cakedistro/tmp directory
00073  * Setting it to php will use the php default save path
00074  * Setting it to database will use the database
00075  *
00076  */
00077     define('CAKE_SESSION_SAVE', 'php');
00078 /**
00079  * If using you own table name for storing sessions
00080  * set the table name here.
00081  * DO NOT INCLUDE PREFIX IF YOU HAVE SET ONE IN database.php
00082  *
00083  */
00084     define('CAKE_SESSION_TABLE', 'cake_sessions');
00085 /**
00086  * Set a random string of used in session.
00087  *
00088  */
00089     define('CAKE_SESSION_STRING', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
00090 /**
00091  * Set the name of session cookie
00092  *
00093  */
00094     define('CAKE_SESSION_COOKIE', 'CAKEPHP');
00095 /**
00096  * Set level of Cake security.
00097  *
00098  */
00099     define('CAKE_SECURITY', 'high');
00100 /**
00101  * Set Cake Session time out.
00102  * If CAKE_SECURITY define is set
00103  * high: multiplied by 10
00104  * medium: is multiplied by 100
00105  * low is: multiplied by 300
00106  *
00107  *  Number below is seconds.
00108  */
00109     define('CAKE_SESSION_TIMEOUT', '120');
00110 /**
00111  * Uncomment the define below to use cake built in admin routes.
00112  * You can set this value to anything you want.
00113  * All methods related to the admin route should be prefixed with the
00114  * name you set CAKE_ADMIN to.
00115  * For example: admin_index, admin_edit
00116  */
00117 //  define('CAKE_ADMIN', 'admin');
00118 /**
00119  *  The define below is used to turn cake built webservices
00120  *  on or off. Default setting is off.
00121  */
00122     define('WEBSERVICES', 'off');
00123 /**
00124  * Compress output CSS (removing comments, whitespace, repeating tags etc.)
00125  * This requires a/var/cache directory to be writable by the web server (caching).
00126  * To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use Controller::cssTag().
00127  */
00128     define('COMPRESS_CSS', false);
00129 /**
00130  * If set to true, helpers would output data instead of returning it.
00131  */
00132     define('AUTO_OUTPUT', false);
00133 /**
00134  * If set to false, session would not automatically be started.
00135  */
00136     define('AUTO_SESSION', true);
00137 /**
00138  * Set the max size of file to use md5() .
00139  */
00140     define('MAX_MD5SIZE', (5 * 1024) * 1024);
00141 /**
00142  * To use Access Control Lists with Cake...
00143  */
00144     define('ACL_CLASSNAME', 'DB_ACL');
00145     define('ACL_FILENAME', 'dbacl' . DS . 'db_acl');
00146 ?>