[ Index ] |
|
Code source de CakePHP 1.1.13.4450 |
1 <?php 2 /* SVN FILE: $Id: core.php 4409 2007-02-02 13:20:59Z phpnut $ */ 3 /** 4 * This is core configuration file. 5 * 6 * Use it to configure core behaviour ofCake. 7 * 8 * PHP versions 4 and 5 9 * 10 * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> 11 * Copyright 2005-2007, Cake Software Foundation, Inc. 12 * 1785 E. Sahara Avenue, Suite 490-204 13 * Las Vegas, Nevada 89104 14 * 15 * Licensed under The MIT License 16 * Redistributions of files must retain the above copyright notice. 17 * 18 * @filesource 19 * @copyright Copyright 2005-2007, Cake Software Foundation, Inc. 20 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 21 * @package cake 22 * @subpackage cake.app.config 23 * @since CakePHP(tm) v 0.2.9 24 * @version $Revision: 4409 $ 25 * @modifiedby $LastChangedBy: phpnut $ 26 * @lastmodified $Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $ 27 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 28 */ 29 /** 30 * If you do not have mod rewrite on your system 31 * or if you prefer to use CakePHP pretty urls. 32 * uncomment the line below. 33 * Note: If you do have mod rewrite but prefer the 34 * CakePHP pretty urls, you also have to remove the 35 * .htaccess files 36 * release/.htaccess 37 * release/app/.htaccess 38 * release/app/webroot/.htaccess 39 */ 40 // define ('BASE_URL', env('SCRIPT_NAME')); 41 /** 42 * Set debug level here: 43 * - 0: production 44 * - 1: development 45 * - 2: full debug with sql 46 * - 3: full debug with sql and dump of the current object 47 * 48 * In production, the "flash messages" redirect after a time interval. 49 * With the other debug levels you get to click the "flash message" to continue. 50 * 51 */ 52 define('DEBUG', 1); 53 /** 54 * Turn of caching checking wide. 55 * You must still use the controller var cacheAction inside you controller class. 56 * You can either set it controller wide, or in each controller method. 57 * use var $cacheAction = true; or in the controller method $this->cacheAction = true; 58 */ 59 define('CACHE_CHECK', false); 60 /** 61 * Error constant. Used for differentiating error logging and debugging. 62 * Currently PHP supports LOG_DEBUG 63 */ 64 define('LOG_ERROR', 2); 65 /** 66 * CakePHP includes 3 types of session saves 67 * database or file. Set this to your preferred method. 68 * If you want to use your own save handler place it in 69 * app/config/name.php DO NOT USE file or database as the name. 70 * and use just the name portion below. 71 * 72 * Setting this to cake will save files to /cakedistro/tmp directory 73 * Setting it to php will use the php default save path 74 * Setting it to database will use the database 75 * 76 */ 77 define('CAKE_SESSION_SAVE', 'php'); 78 /** 79 * If using you own table name for storing sessions 80 * set the table name here. 81 * DO NOT INCLUDE PREFIX IF YOU HAVE SET ONE IN database.php 82 * 83 */ 84 define('CAKE_SESSION_TABLE', 'cake_sessions'); 85 /** 86 * Set a random string of used in session. 87 * 88 */ 89 define('CAKE_SESSION_STRING', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi'); 90 /** 91 * Set the name of session cookie 92 * 93 */ 94 define('CAKE_SESSION_COOKIE', 'CAKEPHP'); 95 /** 96 * Set level of Cake security. 97 * 98 */ 99 define('CAKE_SECURITY', 'high'); 100 /** 101 * Set Cake Session time out. 102 * If CAKE_SECURITY define is set 103 * high: multiplied by 10 104 * medium: is multiplied by 100 105 * low is: multiplied by 300 106 * 107 * Number below is seconds. 108 */ 109 define('CAKE_SESSION_TIMEOUT', '120'); 110 /** 111 * Uncomment the define below to use cake built in admin routes. 112 * You can set this value to anything you want. 113 * All methods related to the admin route should be prefixed with the 114 * name you set CAKE_ADMIN to. 115 * For example: admin_index, admin_edit 116 */ 117 // define('CAKE_ADMIN', 'admin'); 118 /** 119 * The define below is used to turn cake built webservices 120 * on or off. Default setting is off. 121 */ 122 define('WEBSERVICES', 'off'); 123 /** 124 * Compress output CSS (removing comments, whitespace, repeating tags etc.) 125 * This requires a/var/cache directory to be writable by the web server (caching). 126 * To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use Controller::cssTag(). 127 */ 128 define('COMPRESS_CSS', false); 129 /** 130 * If set to true, helpers would output data instead of returning it. 131 */ 132 define('AUTO_OUTPUT', false); 133 /** 134 * If set to false, session would not automatically be started. 135 */ 136 define('AUTO_SESSION', true); 137 /** 138 * Set the max size of file to use md5() . 139 */ 140 define('MAX_MD5SIZE', (5 * 1024) * 1024); 141 /** 142 * To use Access Control Lists with Cake... 143 */ 144 define('ACL_CLASSNAME', 'DB_ACL'); 145 define('ACL_FILENAME', 'dbacl' . DS . 'db_acl'); 146 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 19:27:47 2007 | par Balluche grâce à PHPXref 0.7 |