diff options
Diffstat (limited to 'system/config')
| -rw-r--r-- | system/config/cache.php | 6 | ||||
| -rw-r--r-- | system/config/cache_memcache.php | 20 | ||||
| -rw-r--r-- | system/config/cache_sqlite.php | 10 | ||||
| -rw-r--r-- | system/config/cache_xcache.php | 12 | ||||
| -rw-r--r-- | system/config/cookie.php | 12 | ||||
| -rw-r--r-- | system/config/database.php | 2 | ||||
| -rw-r--r-- | system/config/email.php | 22 | ||||
| -rw-r--r-- | system/config/inflector.php | 2 | ||||
| -rw-r--r-- | system/config/locale.php | 5 | ||||
| -rw-r--r-- | system/config/log.php | 19 | ||||
| -rw-r--r-- | system/config/mimes.php | 2 | ||||
| -rw-r--r-- | system/config/pagination.php | 25 | ||||
| -rw-r--r-- | system/config/profiler.php | 4 | ||||
| -rw-r--r-- | system/config/session.php | 5 | ||||
| -rw-r--r-- | system/config/sql_types.php | 115 | ||||
| -rw-r--r-- | system/config/view.php | 1 | 
16 files changed, 119 insertions, 143 deletions
| diff --git a/system/config/cache.php b/system/config/cache.php index ccd3da4d..68682c0a 100644 --- a/system/config/cache.php +++ b/system/config/cache.php @@ -19,14 +19,10 @@   *             thirty minutes. Specific lifetime can also be set when creating a new cache.   *             Setting this to 0 will never automatically delete caches.   * - *  requests - Average number of cache requests that will processed before all expired - *             caches are deleted. This is commonly referred to as "garbage collection". - *             Setting this to 0 or a negative number will disable automatic garbage collection.   */  $config['default'] = array  (  	'driver'   => 'file', -	'params'   => APPPATH.'cache', +	'params'   => array('directory' => APPPATH.'cache', 'gc_probability' => 1000),  	'lifetime' => 1800, -	'requests' => 1000  ); diff --git a/system/config/cache_memcache.php b/system/config/cache_memcache.php deleted file mode 100644 index 43d8f205..00000000 --- a/system/config/cache_memcache.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php defined('SYSPATH') OR die('No direct access allowed.'); -/** - * @package  Cache:Memcache - * - * memcache server configuration. - */ -$config['servers'] = array -( -	array -	( -		'host' => '127.0.0.1', -		'port' => 11211, -		'persistent' => FALSE, -	) -); - -/** - * Enable cache data compression. - */ -$config['compression'] = FALSE; diff --git a/system/config/cache_sqlite.php b/system/config/cache_sqlite.php deleted file mode 100644 index 818b8932..00000000 --- a/system/config/cache_sqlite.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php defined('SYSPATH') OR die('No direct access allowed.'); -/** - * @package  Cache:SQLite - */ -$config['schema'] = -'CREATE TABLE caches( -	id VARCHAR(127) PRIMARY KEY, -	tags VARCHAR(255), -	expiration INTEGER, -	cache TEXT);';
\ No newline at end of file diff --git a/system/config/cache_xcache.php b/system/config/cache_xcache.php deleted file mode 100644 index 47aac25a..00000000 --- a/system/config/cache_xcache.php +++ /dev/null @@ -1,12 +0,0 @@ -<?php defined('SYSPATH') OR die('No direct access allowed.'); -/** - * @package  Cache:Xcache - * - * Xcache administrator username. - */ -$config['PHP_AUTH_USER'] = 'kohana'; - -/** - * Xcache administrator password. - */ -$config['PHP_AUTH_PW'] = 'kohana'; diff --git a/system/config/cookie.php b/system/config/cookie.php index b6ddfe4a..d370ecf0 100644 --- a/system/config/cookie.php +++ b/system/config/cookie.php @@ -26,7 +26,13 @@ $config['expire'] = 0;  $config['secure'] = FALSE;  /** - * Enable this option to disable the cookie from being accessed when using a - * secure protocol. This option is only available in PHP 5.2 and above. + * Enable this option to make the cookie accessible only through the + * HTTP protocol (e.g. no javascript access). This is not supported by all browsers.   */ -$config['httponly'] = FALSE;
\ No newline at end of file +$config['httponly'] = FALSE; + +/** + * Cookie salt for signed cookies. + * Make sure you change this to a unique value. + */ +$config['salt'] = 'K0hAN4 15 Th3 B357';
\ No newline at end of file diff --git a/system/config/database.php b/system/config/database.php index 6519156a..2e53fa2b 100644 --- a/system/config/database.php +++ b/system/config/database.php @@ -25,7 +25,7 @@   */  $config['default'] = array  ( -	'benchmark'     => TRUE, +	'benchmark'     => FALSE,  	'persistent'    => FALSE,  	'connection'    => array  	( diff --git a/system/config/email.php b/system/config/email.php deleted file mode 100644 index c768367c..00000000 --- a/system/config/email.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php defined('SYSPATH') OR die('No direct access allowed.'); -/** - * SwiftMailer driver, used with the email helper. - * - * @see http://www.swiftmailer.org/wikidocs/v3/connections/nativemail - * @see http://www.swiftmailer.org/wikidocs/v3/connections/sendmail - * @see http://www.swiftmailer.org/wikidocs/v3/connections/smtp - * - * Valid drivers are: native, sendmail, smtp - */ -$config['driver'] = 'native'; - -/** - * To use secure connections with SMTP, set "port" to 465 instead of 25. - * To enable TLS, set "encryption" to "tls". - * - * Driver options: - * @param   null    native: no options - * @param   string  sendmail: executable path, with -bs or equivalent attached - * @param   array   smtp: hostname, (username), (password), (port), (auth), (encryption) - */ -$config['options'] = NULL; diff --git a/system/config/inflector.php b/system/config/inflector.php index 6dcfc2d3..b6cb8003 100644 --- a/system/config/inflector.php +++ b/system/config/inflector.php @@ -7,6 +7,7 @@ $config['uncountable'] = array  	'art',  	'baggage',  	'dances', +	'data',  	'equipment',  	'fish',  	'fuel', @@ -19,6 +20,7 @@ $config['uncountable'] = array  	'information',  	'knowledge',  	'luggage', +	'metadata',  	'money',  	'music',  	'news', diff --git a/system/config/locale.php b/system/config/locale.php index 3a268820..a62b4c3e 100644 --- a/system/config/locale.php +++ b/system/config/locale.php @@ -10,7 +10,8 @@  $config['language'] = array('en_US', 'English_United States');  /** - * Locale timezone. Defaults to use the server timezone. + * Locale timezone. Defaults to the timezone you have set in your php config + * This cannot be left empty, a valid timezone is required!   * @see http://php.net/timezones   */ -$config['timezone'] = '';
\ No newline at end of file +$config['timezone'] = ini_get('date.timezone');
\ No newline at end of file diff --git a/system/config/log.php b/system/config/log.php new file mode 100644 index 00000000..5be2c41e --- /dev/null +++ b/system/config/log.php @@ -0,0 +1,19 @@ +<?php defined('SYSPATH') OR die('No direct access allowed.'); + + +// Different log levels +$config['log_levels'] = array +( +	'error' => 1, +	'alert' => 2, +	'info'  => 3, +	'debug' => 4, +); + +// See different log levels above +$config['log_threshold'] = 1; + +$config['date_format'] = 'Y-m-d H:i:s P'; + +// We can define multiple logging backends at the same time. +$config['drivers'] = array('file');
\ No newline at end of file diff --git a/system/config/mimes.php b/system/config/mimes.php index 6a960f24..c4318d58 100644 --- a/system/config/mimes.php +++ b/system/config/mimes.php @@ -6,7 +6,7 @@   * the operating system MIME list.   *   * If there are any missing options, please create a ticket on our issue tracker, - * http://kohanaphp.com/trac/newticket. Be sure to give the filename and + * http://dev.kohanaphp.com/projects/kohana2. Be sure to give the filename and   * expected MIME type, as well as any additional information you can provide.   */  $config = array diff --git a/system/config/pagination.php b/system/config/pagination.php deleted file mode 100644 index 808fc315..00000000 --- a/system/config/pagination.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php defined('SYSPATH') OR die('No direct access allowed.'); -/** - * @package  Pagination - * - * Pagination configuration is defined in groups which allows you to easily switch - * between different pagination settings for different website sections. - * Note: all groups inherit and overwrite the default group. - * - * Group Options: - *  directory      - Views folder in which your pagination style templates reside - *  style          - Pagination style template (matches view filename) - *  uri_segment    - URI segment (int or 'label') in which the current page number can be found - *  query_string   - Alternative to uri_segment: query string key that contains the page number - *  items_per_page - Number of items to display per page - *  auto_hide      - Automatically hides pagination for single pages - */ -$config['default'] = array -( -	'directory'      => 'pagination', -	'style'          => 'classic', -	'uri_segment'    => 3, -	'query_string'   => '', -	'items_per_page' => 20, -	'auto_hide'      => FALSE, -); diff --git a/system/config/profiler.php b/system/config/profiler.php index 98ab5a49..90532f07 100644 --- a/system/config/profiler.php +++ b/system/config/profiler.php @@ -6,3 +6,7 @@   * Built in sections are benchmarks, database, session, post and cookies, custom sections can be used too.   */  $config['show'] = TRUE; + +$config['time_decimals'] = 3; + +$config['memory_decimals'] = 2;
\ No newline at end of file diff --git a/system/config/session.php b/system/config/session.php index e287bae8..29eeafbd 100644 --- a/system/config/session.php +++ b/system/config/session.php @@ -25,7 +25,6 @@ $config['validate'] = array('user_agent');  /**   * Enable or disable session encryption.   * Note: this has no effect on the native session driver. - * Note: the cookie driver always encrypts session data. Set to TRUE for stronger encryption.   */  $config['encryption'] = FALSE; @@ -38,8 +37,10 @@ $config['expiration'] = 7200;  /**   * Number of page loads before the session id is regenerated.   * A value of 0 will disable automatic session id regeneration. + * NOTE: Enabling automatic session regeneration can cause a race condition see the + * docs for details: http://docs.kohanaphp.com/libraries/session#regenerate   */ -$config['regenerate'] = 3; +$config['regenerate'] = 0;  /**   * Percentage probability that the gc (garbage collection) routine is started. diff --git a/system/config/sql_types.php b/system/config/sql_types.php index 4034c6f5..43a13c27 100644 --- a/system/config/sql_types.php +++ b/system/config/sql_types.php @@ -4,55 +4,90 @@   *   * SQL data types. If there are missing values, please report them:   * - * @link  http://trac.kohanaphp.com/newticket + * @link http://dev.kohanaphp.com/projects/kohana2   */  $config = array  ( -	'tinyint'			=> array('type' => 'int', 'max' => 127), -	'smallint'			=> array('type' => 'int', 'max' => 32767), -	'mediumint'			=> array('type' => 'int', 'max' => 8388607), -	'int'				=> array('type' => 'int', 'max' => 2147483647), -	'integer'			=> array('type' => 'int', 'max' => 2147483647), -	'bigint'			=> array('type' => 'int', 'max' => 9223372036854775807), -	'float'				=> array('type' => 'float'), -	'float unsigned'	=> array('type' => 'float', 'min' => 0), -	'boolean'			=> array('type' => 'boolean'), -	'time'				=> array('type' => 'string', 'format' => '00:00:00'), -	'time with time zone' => array('type' => 'string'), -	'date'				=> array('type' => 'string', 'format' => '0000-00-00'), -	'year'				=> array('type' => 'string', 'format' => '0000'), -	'datetime'			=> array('type' => 'string', 'format' => '0000-00-00 00:00:00'), +	// SQL-92 +	'bit'                   => array('type' => 'string', 'exact' => TRUE), +	'bit varying'           => array('type' => 'string'), +	'character'             => array('type' => 'string', 'exact' => TRUE), +	'character varying'     => array('type' => 'string'), +	'date'                  => array('type' => 'string'), +	'decimal'               => array('type' => 'float', 'exact' => TRUE), +	'double precision'      => array('type' => 'float'), +	'float'                 => array('type' => 'float'), +	'integer'               => array('type' => 'int', 'min' => -2147483648, 'max' => 2147483647), +	'interval'              => array('type' => 'string'), +	'national character'    => array('type' => 'string', 'exact' => TRUE), +	'national character varying' => array('type' => 'string'), +	'numeric'               => array('type' => 'float', 'exact' => TRUE), +	'real'                  => array('type' => 'float'), +	'smallint'              => array('type' => 'int', 'min' => -32768, 'max' => 32767), +	'time'                  => array('type' => 'string'), +	'time with time zone'   => array('type' => 'string'), +	'timestamp'             => array('type' => 'string'),  	'timestamp with time zone' => array('type' => 'string'), -	'char'				=> array('type' => 'string', 'exact' => TRUE), -	'binary'			=> array('type' => 'string', 'binary' => TRUE, 'exact' => TRUE), -	'varchar'			=> array('type' => 'string'), -	'varbinary'			=> array('type' => 'string', 'binary' => TRUE), -	'blob'				=> array('type' => 'string', 'binary' => TRUE), -	'text'				=> array('type' => 'string') -); -// DOUBLE -$config['double'] = $config['double precision'] = $config['decimal'] = $config['real'] = $config['numeric'] = $config['float']; -$config['double unsigned'] = $config['float unsigned']; +	// SQL:1999 +	//'array','ref','row' +	'binary large object'   => array('type' => 'string', 'binary' => TRUE), +	'boolean'               => array('type' => 'boolean'), +	'character large object' => array('type' => 'string'), +	'national character large object' => array('type' => 'string'), -// BIT -$config['bit'] = $config['boolean']; +	// SQL:2003 +	'bigint'    => array('type' => 'int', 'min' => -9223372036854775808, 'max' => 9223372036854775807), -// TIMESTAMP -$config['timestamp'] = $config['timestamp without time zone'] = $config['datetime']; +	// SQL:2008 +	'binary'            => array('type' => 'string', 'binary' => TRUE, 'exact' => TRUE), +	'binary varying'    => array('type' => 'string', 'binary' => TRUE), -// ENUM -$config['enum'] = $config['set'] = $config['varchar']; +	// MySQL +	'bigint unsigned'   => array('type' => 'int', 'min' => 0, 'max' => 18446744073709551615), +	'decimal unsigned'  => array('type' => 'float', 'exact' => TRUE, 'min' => 0.0), +	'double unsigned'   => array('type' => 'float', 'min' => 0.0), +	'float unsigned'    => array('type' => 'float', 'min' => 0.0), +	'integer unsigned'  => array('type' => 'int', 'min' => 0, 'max' => 4294967295), +	'mediumint'         => array('type' => 'int', 'min' => -8388608, 'max' => 8388607), +	'mediumint unsigned' => array('type' => 'int', 'min' => 0, 'max' => 16777215), +	'real unsigned'     => array('type' => 'float', 'min' => 0.0), +	'smallint unsigned' => array('type' => 'int', 'min' => 0, 'max' => 65535), +	'text'              => array('type' => 'string'), +	'tinyint'           => array('type' => 'int', 'min' => -128, 'max' => 127), +	'tinyint unsigned'  => array('type' => 'int', 'min' => 0, 'max' => 255), +	'year'              => array('type' => 'string'), +); -// TEXT -$config['tinytext'] = $config['mediumtext'] = $config['longtext'] = $config['text']; +// SQL-92 +$config['char'] = $config['character']; +$config['char varying'] = $config['character varying']; +$config['dec'] = $config['decimal']; +$config['int'] = $config['integer']; +$config['nchar'] = $config['national char'] = $config['national character']; +$config['nchar varying'] = $config['national char varying'] = $config['national character varying']; +$config['varchar'] = $config['character varying']; -// BLOB -$config['tsvector'] = $config['tinyblob'] = $config['mediumblob'] = $config['longblob'] = $config['clob'] = $config['bytea'] = $config['blob']; +// SQL:1999 +$config['blob'] = $config['binary large object']; +$config['clob'] = $config['char large object'] = $config['character large object']; +$config['nclob'] = $config['nchar large object'] = $config['national character large object']; +$config['time without time zone'] = $config['time']; +$config['timestamp without time zone'] = $config['timestamp']; -// CHARACTER -$config['character'] = $config['char']; -$config['character varying'] = $config['varchar']; +// SQL:2008 +$config['varbinary'] = $config['binary varying']; -// TIME -$config['time without time zone'] = $config['time']; +// MySQL +$config['bool'] = $config['boolean']; +$config['datetime'] = $config['timestamp']; +$config['double'] = $config['double precision']; +$config['double precision unsigned'] = $config['double unsigned']; +$config['enum'] = $config['set'] = $config['character varying']; +$config['fixed'] = $config['decimal']; +$config['fixed unsigned'] = $config['decimal unsigned']; +$config['int unsigned'] = $config['integer unsigned']; +$config['longblob'] = $config['mediumblob'] = $config['tinyblob'] = $config['binary large object']; +$config['longtext'] = $config['mediumtext'] = $config['tinytext'] = $config['text']; +$config['numeric unsigned'] = $config['decimal unsigned']; +$config['nvarchar'] = $config['national varchar'] = $config['national character varying']; diff --git a/system/config/view.php b/system/config/view.php index 6bed22e0..a77af878 100644 --- a/system/config/view.php +++ b/system/config/view.php @@ -3,6 +3,7 @@   * @package  Core   *   * Allowed non-php view types. Most file extensions are supported. + * Do not forget to add a valid MIME type in mimes.php   */  $config['allowed_filetypes'] = array  ( | 
