diff options
Diffstat (limited to 'kohana/config')
-rw-r--r-- | kohana/config/cache.php | 32 | ||||
-rw-r--r-- | kohana/config/cache_memcache.php | 20 | ||||
-rw-r--r-- | kohana/config/cache_sqlite.php | 11 | ||||
-rw-r--r-- | kohana/config/cache_xcache.php | 12 | ||||
-rw-r--r-- | kohana/config/captcha.php | 29 | ||||
-rw-r--r-- | kohana/config/cookie.php | 32 | ||||
-rw-r--r-- | kohana/config/credit_cards.php | 60 | ||||
-rw-r--r-- | kohana/config/database.php | 45 | ||||
-rw-r--r-- | kohana/config/email.php | 22 | ||||
-rw-r--r-- | kohana/config/encryption.php | 31 | ||||
-rw-r--r-- | kohana/config/http.php | 19 | ||||
-rw-r--r-- | kohana/config/image.php | 13 | ||||
-rw-r--r-- | kohana/config/inflector.php | 55 | ||||
-rw-r--r-- | kohana/config/locale.php | 16 | ||||
-rw-r--r-- | kohana/config/mimes.php | 224 | ||||
-rw-r--r-- | kohana/config/pagination.php | 25 | ||||
-rw-r--r-- | kohana/config/payment.php | 148 | ||||
-rw-r--r-- | kohana/config/profiler.php | 8 | ||||
-rw-r--r-- | kohana/config/routes.php | 7 | ||||
-rw-r--r-- | kohana/config/session.php | 47 | ||||
-rw-r--r-- | kohana/config/sql_types.php | 47 | ||||
-rw-r--r-- | kohana/config/upload.php | 17 | ||||
-rw-r--r-- | kohana/config/user_agents.php | 109 | ||||
-rw-r--r-- | kohana/config/view.php | 17 |
24 files changed, 1046 insertions, 0 deletions
diff --git a/kohana/config/cache.php b/kohana/config/cache.php new file mode 100644 index 00000000..e93f9abc --- /dev/null +++ b/kohana/config/cache.php @@ -0,0 +1,32 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * @package Cache + * + * Cache settings, defined as arrays, or "groups". If no group name is + * used when loading the cache library, the group named "default" will be used. + * + * Each group can be used independently, and multiple groups can be used at once. + * + * Group Options: + * driver - Cache backend driver. Kohana comes with file, database, and memcache drivers. + * > File cache is fast and reliable, but requires many filesystem lookups. + * > Database cache can be used to cache items remotely, but is slower. + * > Memcache is very high performance, but prevents cache tags from being used. + * + * params - Driver parameters, specific to each driver. + * + * lifetime - Default lifetime of caches in seconds. By default caches are stored for + * 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', + 'lifetime' => 1800, + 'requests' => 1000 +); diff --git a/kohana/config/cache_memcache.php b/kohana/config/cache_memcache.php new file mode 100644 index 00000000..c9e10232 --- /dev/null +++ b/kohana/config/cache_memcache.php @@ -0,0 +1,20 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * @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/kohana/config/cache_sqlite.php b/kohana/config/cache_sqlite.php new file mode 100644 index 00000000..199252df --- /dev/null +++ b/kohana/config/cache_sqlite.php @@ -0,0 +1,11 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * @package Cache:SQLite + */ +$config['schema'] = +'CREATE TABLE caches( + id varchar(127) PRIMARY KEY, + hash char(40) NOT NULL, + tags varchar(255), + expiration int, + cache blob);';
\ No newline at end of file diff --git a/kohana/config/cache_xcache.php b/kohana/config/cache_xcache.php new file mode 100644 index 00000000..8b436fb6 --- /dev/null +++ b/kohana/config/cache_xcache.php @@ -0,0 +1,12 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * @package Cache:Xcache + * + * Xcache administrator username. + */ +$config['PHP_AUTH_USER'] = 'kohana'; + +/** + * Xcache administrator password. + */ +$config['PHP_AUTH_PW'] = 'kohana'; diff --git a/kohana/config/captcha.php b/kohana/config/captcha.php new file mode 100644 index 00000000..a1d64c2e --- /dev/null +++ b/kohana/config/captcha.php @@ -0,0 +1,29 @@ +<?php defined('SYSPATH') or die('No direct access allowed.'); +/** + * @package Core + * + * Captcha configuration is defined in groups which allows you to easily switch + * between different Captcha settings for different forms on your website. + * Note: all groups inherit and overwrite the default group. + * + * Group Options: + * style - Captcha type, e.g. basic, alpha, word, math, riddle + * width - Width of the Captcha image + * height - Height of the Captcha image + * complexity - Difficulty level (0-10), usage depends on chosen style + * background - Path to background image file + * fontpath - Path to font folder + * fonts - Font files + * promote - Valid response count threshold to promote user (FALSE to disable) + */ +$config['default'] = array +( + 'style' => 'basic', + 'width' => 150, + 'height' => 50, + 'complexity' => 4, + 'background' => '', + 'fontpath' => SYSPATH.'fonts/', + 'fonts' => array('DejaVuSerif.ttf'), + 'promote' => FALSE, +);
\ No newline at end of file diff --git a/kohana/config/cookie.php b/kohana/config/cookie.php new file mode 100644 index 00000000..5175f172 --- /dev/null +++ b/kohana/config/cookie.php @@ -0,0 +1,32 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * @package Core + * + * Domain, to restrict the cookie to a specific website domain. For security, + * you are encouraged to set this option. An empty setting allows the cookie + * to be read by any website domain. + */ +$config['domain'] = ''; + +/** + * Restrict cookies to a specific path, typically the installation directory. + */ +$config['path'] = '/'; + +/** + * Lifetime of the cookie. A setting of 0 makes the cookie active until the + * users browser is closed or the cookie is deleted. + */ +$config['expire'] = 0; + +/** + * Enable this option to only allow the cookie to be read when using the a + * secure protocol. + */ +$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. + */ +$config['httponly'] = FALSE;
\ No newline at end of file diff --git a/kohana/config/credit_cards.php b/kohana/config/credit_cards.php new file mode 100644 index 00000000..ee643168 --- /dev/null +++ b/kohana/config/credit_cards.php @@ -0,0 +1,60 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * Credit card validation configuration. + * + * Options for each credit card: + * length - All the allowed card number lengths, in a comma separated string + * prefix - The digits the card needs to start with, in regex format + * luhn - Enable or disable card number validation by the Luhn algorithm + */ +$config = array +( + 'default' => array + ( + 'length' => '13,14,15,16,17,18,19', + 'prefix' => '', + 'luhn' => TRUE + ), + 'american express' => array + ( + 'length' => '15', + 'prefix' => '3[47]', + 'luhn' => TRUE + ), + 'diners club' => array + ( + 'length' => '14,16', + 'prefix' => '36|55|30[0-5]', + 'luhn' => TRUE + ), + 'discover' => array + ( + 'length' => '16', + 'prefix' => '6(?:5|011)', + 'luhn' => TRUE, + ), + 'jcb' => array + ( + 'length' => '15,16', + 'prefix' => '3|1800|2131', + 'luhn' => TRUE + ), + 'maestro' => array + ( + 'length' => '16,18', + 'prefix' => '50(?:20|38)|6(?:304|759)', + 'luhn' => TRUE + ), + 'mastercard' => array + ( + 'length' => '16', + 'prefix' => '5[1-5]', + 'luhn' => TRUE + ), + 'visa' => array + ( + 'length' => '13,16', + 'prefix' => '4', + 'luhn' => TRUE + ), +);
\ No newline at end of file diff --git a/kohana/config/database.php b/kohana/config/database.php new file mode 100644 index 00000000..f34e51e3 --- /dev/null +++ b/kohana/config/database.php @@ -0,0 +1,45 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * @package Database + * + * Database connection settings, defined as arrays, or "groups". If no group + * name is used when loading the database library, the group named "default" + * will be used. + * + * Each group can be connected to independently, and multiple groups can be + * connected at once. + * + * Group Options: + * benchmark - Enable or disable database benchmarking + * persistent - Enable or disable a persistent connection + * connection - Array of connection specific parameters; alternatively, + * you can use a DSN though it is not as fast and certain + * characters could create problems (like an '@' character + * in a password): + * 'connection' => 'mysql://dbuser:secret@localhost/kohana' + * character_set - Database character set + * table_prefix - Database table prefix + * object - Enable or disable object results + * cache - Enable or disable query caching + * escape - Enable automatic query builder escaping + */ +$config['default'] = array +( + 'benchmark' => TRUE, + 'persistent' => FALSE, + 'connection' => array + ( + 'type' => 'mysql', + 'user' => 'dbuser', + 'pass' => 'p@ssw0rd', + 'host' => 'localhost', + 'port' => FALSE, + 'socket' => FALSE, + 'database' => 'kohana' + ), + 'character_set' => 'utf8', + 'table_prefix' => '', + 'object' => TRUE, + 'cache' => FALSE, + 'escape' => TRUE +);
\ No newline at end of file diff --git a/kohana/config/email.php b/kohana/config/email.php new file mode 100644 index 00000000..7f0cdd7e --- /dev/null +++ b/kohana/config/email.php @@ -0,0 +1,22 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * 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/kohana/config/encryption.php b/kohana/config/encryption.php new file mode 100644 index 00000000..a3740b2c --- /dev/null +++ b/kohana/config/encryption.php @@ -0,0 +1,31 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * @package Encrypt + * + * Encrypt configuration is defined in groups which allows you to easily switch + * between different encryption settings for different uses. + * Note: all groups inherit and overwrite the default group. + * + * Group Options: + * key - Encryption key used to do encryption and decryption. The default option + * should never be used for a production website. + * + * For best security, your encryption key should be at least 16 characters + * long and contain letters, numbers, and symbols. + * @note Do not use a hash as your key. This significantly lowers encryption entropy. + * + * mode - MCrypt encryption mode. By default, MCRYPT_MODE_NOFB is used. This mode + * offers initialization vector support, is suited to short strings, and + * produces the shortest encrypted output. + * @see http://php.net/mcrypt + * + * cipher - MCrypt encryption cipher. By default, the MCRYPT_RIJNDAEL_128 cipher is used. + * This is also known as 128-bit AES. + * @see http://php.net/mcrypt + */ +$config['default'] = array +( + 'key' => 'K0H@NA+PHP_7hE-SW!FtFraM3w0R|<', + 'mode' => MCRYPT_MODE_NOFB, + 'cipher' => MCRYPT_RIJNDAEL_128 +); diff --git a/kohana/config/http.php b/kohana/config/http.php new file mode 100644 index 00000000..f6714639 --- /dev/null +++ b/kohana/config/http.php @@ -0,0 +1,19 @@ +<?php defined('SYSPATH') or die('No direct script access.'); + +// HTTP-EQUIV type meta tags +$config['meta_equiv'] = array +( + 'cache-control', + 'content-type', 'content-script-type', 'content-style-type', + 'content-disposition', + 'content-language', + 'default-style', + 'expires', + 'ext-cache', + 'pics-label', + 'pragma', + 'refresh', + 'set-cookie', + 'vary', + 'window-target', +);
\ No newline at end of file diff --git a/kohana/config/image.php b/kohana/config/image.php new file mode 100644 index 00000000..ffcc899b --- /dev/null +++ b/kohana/config/image.php @@ -0,0 +1,13 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * @package Image + * + * Driver name. Default: GD + */ +$config['driver'] = 'GD'; + +/** + * Driver parameters: + * ImageMagick - set the "directory" parameter to your ImageMagick installation directory + */ +$config['params'] = array();
\ No newline at end of file diff --git a/kohana/config/inflector.php b/kohana/config/inflector.php new file mode 100644 index 00000000..1887a37e --- /dev/null +++ b/kohana/config/inflector.php @@ -0,0 +1,55 @@ +<?php defined('SYSPATH') or die('No direct script access.'); + +$config['uncountable'] = array +( + 'access', + 'advice', + 'art', + 'baggage', + 'dances', + 'equipment', + 'fish', + 'fuel', + 'furniture', + 'food', + 'heat', + 'honey', + 'homework', + 'impatience', + 'information', + 'knowledge', + 'luggage', + 'money', + 'music', + 'news', + 'patience', + 'progress', + 'pollution', + 'research', + 'rice', + 'sand', + 'series', + 'sheep', + 'sms', + 'species', + 'toothpaste', + 'traffic', + 'understanding', + 'water', + 'weather', + 'work', +); + +$config['irregular'] = array +( + 'child' => 'children', + 'clothes' => 'clothing', + 'man' => 'men', + 'movie' => 'movies', + 'person' => 'people', + 'woman' => 'women', + 'mouse' => 'mice', + 'goose' => 'geese', + 'ox' => 'oxen', + 'leaf' => 'leaves', +); diff --git a/kohana/config/locale.php b/kohana/config/locale.php new file mode 100644 index 00000000..5d82fa9f --- /dev/null +++ b/kohana/config/locale.php @@ -0,0 +1,16 @@ +<?php defined('SYSPATH') or die('No direct access allowed.'); +/** + * @package Core + * + * Default language locale name(s). + * First item must be a valid i18n directory name, subsequent items are alternative locales + * for OS's that don't support the first (e.g. Windows). The first valid locale in the array will be used. + * @see http://php.net/setlocale + */ +$config['language'] = array('en_US', 'English_United States'); + +/** + * Locale timezone. Defaults to use the server timezone. + * @see http://php.net/timezones + */ +$config['timezone'] = '';
\ No newline at end of file diff --git a/kohana/config/mimes.php b/kohana/config/mimes.php new file mode 100644 index 00000000..3ff869ea --- /dev/null +++ b/kohana/config/mimes.php @@ -0,0 +1,224 @@ +<?php defined('SYSPATH') or die('No direct access allowed.'); +/** + * @package Core + * + * A list of mime types. Our list is generally more complete and accurate than + * 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 + * expected MIME type, as well as any additional information you can provide. + */ +$config = array +( + '323' => array('text/h323'), + '7z' => array('application/x-7z-compressed'), + 'abw' => array('application/x-abiword'), + 'acx' => array('application/internet-property-stream'), + 'ai' => array('application/postscript'), + 'aif' => array('audio/x-aiff'), + 'aifc' => array('audio/x-aiff'), + 'aiff' => array('audio/x-aiff'), + 'asf' => array('video/x-ms-asf'), + 'asr' => array('video/x-ms-asf'), + 'asx' => array('video/x-ms-asf'), + 'atom' => array('application/atom+xml'), + 'avi' => array('video/avi', 'video/msvideo', 'video/x-msvideo'), + 'bin' => array('application/octet-stream','application/macbinary'), + 'bmp' => array('image/bmp'), + 'c' => array('text/x-csrc'), + 'c++' => array('text/x-c++src'), + 'cab' => array('application/x-cab'), + 'cc' => array('text/x-c++src'), + 'cda' => array('application/x-cdf'), + 'class' => array('application/octet-stream'), + 'cpp' => array('text/x-c++src'), + 'cpt' => array('application/mac-compactpro'), + 'csh' => array('text/x-csh'), + 'css' => array('text/css'), + 'csv' => array('text/x-comma-separated-values', 'application/vnd.ms-excel'), + 'dbk' => array('application/docbook+xml'), + 'dcr' => array('application/x-director'), + 'deb' => array('application/x-debian-package'), + 'diff' => array('text/x-diff'), + 'dir' => array('application/x-director'), + 'divx' => array('video/divx'), + 'dll' => array('application/octet-stream', 'application/x-msdos-program'), + 'dmg' => array('application/x-apple-diskimage'), + 'dms' => array('application/octet-stream'), + 'doc' => array('application/msword'), + 'dvi' => array('application/x-dvi'), + 'dxr' => array('application/x-director'), + 'eml' => array('message/rfc822'), + 'eps' => array('application/postscript'), + 'evy' => array('application/envoy'), + 'exe' => array('application/x-msdos-program', 'application/octet-stream'), + 'fla' => array('application/octet-stream'), + 'flac' => array('application/x-flac'), + 'flc' => array('video/flc'), + 'fli' => array('video/fli'), + 'flv' => array('video/x-flv'), + 'gif' => array('image/gif'), + 'gtar' => array('application/x-gtar'), + 'gz' => array('application/x-gzip'), + 'h' => array('text/x-chdr'), + 'h++' => array('text/x-c++hdr'), + 'hh' => array('text/x-c++hdr'), + 'hpp' => array('text/x-c++hdr'), + 'hqx' => array('application/mac-binhex40'), + 'hs' => array('text/x-haskell'), + 'htm' => array('text/html'), + 'html' => array('text/html'), + 'ico' => array('image/x-icon'), + 'ics' => array('text/calendar'), + 'iii' => array('application/x-iphone'), + 'ins' => array('application/x-internet-signup'), + 'iso' => array('application/x-iso9660-image'), + 'isp' => array('application/x-internet-signup'), + 'jar' => array('application/java-archive'), + 'java' => array('application/x-java-applet'), + 'jpe' => array('image/jpeg', 'image/pjpeg'), + 'jpeg' => array('image/jpeg', 'image/pjpeg'), + 'jpg' => array('image/jpeg', 'image/pjpeg'), + 'js' => array('application/x-javascript'), + 'json' => array('application/json'), + 'latex' => array('application/x-latex'), + 'lha' => array('application/octet-stream'), + 'log' => array('text/plain', 'text/x-log'), + 'lzh' => array('application/octet-stream'), + 'm4a' => array('audio/mpeg'), + 'm4p' => array('video/mp4v-es'), + 'm4v' => array('video/mp4'), + 'man' => array('application/x-troff-man'), + 'mdb' => array('application/x-msaccess'), + 'midi' => array('audio/midi'), + 'mid' => array('audio/midi'), + 'mif' => array('application/vnd.mif'), + 'mka' => array('audio/x-matroska'), + 'mkv' => array('video/x-matroska'), + 'mov' => array('video/quicktime'), + 'movie' => array('video/x-sgi-movie'), + 'mp2' => array('audio/mpeg'), + 'mp3' => array('audio/mpeg'), + 'mp4' => array('application/mp4','audio/mp4','video/mp4'), + 'mpa' => array('video/mpeg'), + 'mpe' => array('video/mpeg'), + 'mpeg' => array('video/mpeg'), + 'mpg' => array('video/mpeg'), + 'mpg4' => array('video/mp4'), + 'mpga' => array('audio/mpeg'), + 'mpp' => array('application/vnd.ms-project'), + 'mpv' => array('video/x-matroska'), + 'mpv2' => array('video/mpeg'), + 'ms' => array('application/x-troff-ms'), + 'msg' => array('application/msoutlook','application/x-msg'), + 'msi' => array('application/x-msi'), + 'nws' => array('message/rfc822'), + 'oda' => array('application/oda'), + 'odb' => array('application/vnd.oasis.opendocument.database'), + 'odc' => array('application/vnd.oasis.opendocument.chart'), + 'odf' => array('application/vnd.oasis.opendocument.forumla'), + 'odg' => array('application/vnd.oasis.opendocument.graphics'), + 'odi' => array('application/vnd.oasis.opendocument.image'), + 'odm' => array('application/vnd.oasis.opendocument.text-master'), + 'odp' => array('application/vnd.oasis.opendocument.presentation'), + 'ods' => array('application/vnd.oasis.opendocument.spreadsheet'), + 'odt' => array('application/vnd.oasis.opendocument.text'), + 'oga' => array('audio/ogg'), + 'ogg' => array('application/ogg'), + 'ogv' => array('video/ogg'), + 'otg' => array('application/vnd.oasis.opendocument.graphics-template'), + 'oth' => array('application/vnd.oasis.opendocument.web'), + 'otp' => array('application/vnd.oasis.opendocument.presentation-template'), + 'ots' => array('application/vnd.oasis.opendocument.spreadsheet-template'), + 'ott' => array('application/vnd.oasis.opendocument.template'), + 'p' => array('text/x-pascal'), + 'pas' => array('text/x-pascal'), + 'patch' => array('text/x-diff'), + 'pbm' => array('image/x-portable-bitmap'), + 'pdf' => array('application/pdf', 'application/x-download'), + 'php' => array('application/x-httpd-php'), + 'php3' => array('application/x-httpd-php'), + 'php4' => array('application/x-httpd-php'), + 'php5' => array('application/x-httpd-php'), + 'phps' => array('application/x-httpd-php-source'), + 'phtml' => array('application/x-httpd-php'), + 'pl' => array('text/x-perl'), + 'pm' => array('text/x-perl'), + 'png' => array('image/png', 'image/x-png'), + 'po' => array('text/x-gettext-translation'), + 'pot' => array('application/vnd.ms-powerpoint'), + 'pps' => array('application/vnd.ms-powerpoint'), + 'ppt' => array('application/powerpoint'), + 'ps' => array('application/postscript'), + 'psd' => array('application/x-photoshop', 'image/x-photoshop'), + 'pub' => array('application/x-mspublisher'), + 'py' => array('text/x-python'), + 'qt' => array('video/quicktime'), + 'ra' => array('audio/x-realaudio'), + 'ram' => array('audio/x-realaudio', 'audio/x-pn-realaudio'), + 'rar' => array('application/rar'), + 'rgb' => array('image/x-rgb'), + 'rm' => array('audio/x-pn-realaudio'), + 'rpm' => array('audio/x-pn-realaudio-plugin', 'application/x-redhat-package-manager'), + 'rss' => array('application/rss+xml'), + 'rtf' => array('text/rtf'), + 'rtx' => array('text/richtext'), + 'rv' => array('video/vnd.rn-realvideo'), + 'sea' => array('application/octet-stream'), + 'sh' => array('text/x-sh'), + 'shtml' => array('text/html'), + 'sit' => array('application/x-stuffit'), + 'smi' => array('application/smil'), + 'smil' => array('application/smil'), + 'so' => array('application/octet-stream'), + 'src' => array('application/x-wais-source'), + 'svg' => array('image/svg+xml'), + 'swf' => array('application/x-shockwave-flash'), + 't' => array('application/x-troff'), + 'tar' => array('application/x-tar'), + 'tcl' => array('text/x-tcl'), + 'tex' => array('application/x-tex'), + 'text' => array('text/plain'), + 'texti' => array('application/x-texinfo'), + 'textinfo' => array('application/x-texinfo'), + 'tgz' => array('application/x-tar'), + 'tif' => array('image/tiff'), + 'tiff' => array('image/tiff'), + 'torrent' => array('application/x-bittorrent'), + 'tr' => array('application/x-troff'), + 'tsv' => array('text/tab-separated-values'), + 'txt' => array('text/plain'), + 'wav' => array('audio/x-wav'), + 'wax' => array('audio/x-ms-wax'), + 'wbxml' => array('application/wbxml'), + 'wm' => array('video/x-ms-wm'), + 'wma' => array('audio/x-ms-wma'), + 'wmd' => array('application/x-ms-wmd'), + 'wmlc' => array('application/wmlc'), + 'wmv' => array('video/x-ms-wmv', 'application/octet-stream'), + 'wmx' => array('video/x-ms-wmx'), + 'wmz' => array('application/x-ms-wmz'), + 'word' => array('application/msword', 'application/octet-stream'), + 'wp5' => array('application/wordperfect5.1'), + 'wpd' => array('application/vnd.wordperfect'), + 'wvx' => array('video/x-ms-wvx'), + 'xbm' => array('image/x-xbitmap'), + 'xcf' => array('image/xcf'), + 'xhtml' => array('application/xhtml+xml'), + 'xht' => array('application/xhtml+xml'), + 'xl' => array('application/excel', 'application/vnd.ms-excel'), + 'xla' => array('application/excel', 'application/vnd.ms-excel'), + 'xlc' => array('application/excel', 'application/vnd.ms-excel'), + 'xlm' => array('application/excel', 'application/vnd.ms-excel'), + 'xls' => array('application/excel', 'application/vnd.ms-excel'), + 'xlt' => array('application/excel', 'application/vnd.ms-excel'), + 'xml' => array('text/xml'), + 'xof' => array('x-world/x-vrml'), + 'xpm' => array('image/x-xpixmap'), + 'xsl' => array('text/xml'), + 'xvid' => array('video/x-xvid'), + 'xwd' => array('image/x-xwindowdump'), + 'z' => array('application/x-compress'), + 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed') +); diff --git a/kohana/config/pagination.php b/kohana/config/pagination.php new file mode 100644 index 00000000..49b115fe --- /dev/null +++ b/kohana/config/pagination.php @@ -0,0 +1,25 @@ +<?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/kohana/config/payment.php b/kohana/config/payment.php new file mode 100644 index 00000000..8476ec46 --- /dev/null +++ b/kohana/config/payment.php @@ -0,0 +1,148 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * @package Payment + * + * Settings related to the Payment library. + * This file has settings for each driver. + * You should copy the 'default' and the specific + * driver you are working with to your application/config/payment.php file. + * + * Options: + * driver - default driver to use + * test_mode - Turn TEST MODE on or off + * curl_settings - Set any custom cURL settings here. These defaults usualy work well. + * see http://us.php.net/manual/en/function.curl-setopt.php for details + */ +$config['default'] = array +( + 'driver' => 'Authorize', + 'test_mode' => TRUE, + 'curl_config' => array(CURLOPT_HEADER => FALSE, + CURLOPT_RETURNTRANSFER => TRUE, + CURLOPT_SSL_VERIFYPEER => FALSE) +); + +/** + * Authorize.net Options: + * auth_net_login_id - the transaction login ID; provided by gateway provider + * auth_net_tran_key - the transaction key; provided by gateway provider + */ +$config['Authorize'] = array +( + 'auth_net_login_id' => '', + 'auth_net_tran_key' => '' +); + +/** + * YourPay.net Options: + * merchant_id - the merchant ID number + * certificate - the location on your server of the certificate file. + */ +$config['Yourpay'] = array +( + 'merchant_id' => '', + 'certificate' => './path/to/certificate.pem' +); + +/** + * TrustCommerce Options: + * custid - the customer ID assigned to you by TrustCommerce + * password - the password assigned to you by TrustCommerce + * media - "cc" for credit card or "ach" for ACH. + * tclink_library - the location of the tclink library (relative to your index file) you need to compile to get this driver to work. + */ +$config['Trustcommerce'] = array +( + 'custid' => '', + 'password' => '', + 'media' => 'cc', + 'tclink_library' => './path/to/library.so' +); + +/** + * TridentGateway Options: + * profile_id - the profile ID assigned to you by Merchant e-Services + * profile_key - the profile password assigned to you by Merchant e-Services + * transaction_type - D=Sale, C=Credit, P=Pre-Auth, O=Offline, V-Void, S=Settle Pre-Auth, U=Refund, T= Store card data., X=Delete Card Store Data + */ +$config['Trident'] = array +( + 'profile_id' => '', + 'profile_key' => '', + 'transaction_type' => 'D' +); + +/** + * PayPal Options: + * API_UserName - the username to use + * API_Password - the password to use + * API_Signature - the api signature to use + * ReturnUrl - the URL to send the user to after they login with paypal + * CANCELURL - the URL to send the user to if they cancel the paypal transaction + * CURRENCYCODE - the Currency Code to to the transactions in (What do you want to get paid in?) + */ +$config['Paypal'] = array +( + 'USER' => '-your-paypal-api-username', + 'PWD' => '-your-paypal-api-password', + 'SIGNATURE' => '-your-paypal-api-security-signiature', + 'ENDPOINT' => 'https://api-3t.paypal.com/nvp', + + 'RETURNURL' => 'http://yoursite.com', + 'CANCELURL' => 'http://yoursite.com/canceled', + + // -- sandbox authorization details are generic + 'SANDBOX_USER' => 'sdk-three_api1.sdk.com', + 'SANDBOX_PWD' => 'QFZCWN5HZM8VBG7Q', + 'SANDBOX_SIGNATURE' => 'A.d9eRKfd1yVkRrtmMfCFLTqa6M9AyodL0SJkhYztxUi8W9pCXF6.4NI', + 'SANDBOX_ENDPOINT' => 'https://api-3t.sandbox.paypal.com/nvp', + + 'VERSION' => '3.2', + 'CURRENCYCODE' => 'USD', +); + +/** + * PayPalpro Options: + * USER - API user name to use + * PWD - API password to use + * SIGNATURE - API signature to use + * + * ENDPOINT - API url used by live transaction + * + * SANDBOX_USER - User name used in test mode + * SANDBOX_PWD - Pass word used in test mode + * SANDBOX_SIGNATURE - Security signiature used in test mode + * SANDBOX_ENDPOINT - API url used for test mode transaction + * + * VERSION - API version to use + * CURRENCYCODE - can only currently be USD + * + */ +$config['Paypalpro'] = array +( + + 'USER' => '-your-paypal-api-username', + 'PWD' => '-your-paypal-api-password', + 'SIGNATURE' => '-your-paypal-api-security-signiature', + 'ENDPOINT' => 'https://api-3t.paypal.com/nvp', + + // -- sandbox authorization details are generic + 'SANDBOX_USER' => 'sdk-three_api1.sdk.com', + 'SANDBOX_PWD' => 'QFZCWN5HZM8VBG7Q', + 'SANDBOX_SIGNATURE' => 'A.d9eRKfd1yVkRrtmMfCFLTqa6M9AyodL0SJkhYztxUi8W9pCXF6.4NI', + 'SANDBOX_ENDPOINT' => 'https://api-3t.sandbox.paypal.com/nvp', + + 'VERSION' => '3.2', + 'CURRENCYCODE' => 'USD', + + 'curl_config' => array + ( + CURLOPT_HEADER => FALSE, + CURLOPT_SSL_VERIFYPEER => FALSE, + CURLOPT_SSL_VERIFYHOST => FALSE, + CURLOPT_VERBOSE => TRUE, + CURLOPT_RETURNTRANSFER => TRUE, + CURLOPT_POST => TRUE + ) + +);
\ No newline at end of file diff --git a/kohana/config/profiler.php b/kohana/config/profiler.php new file mode 100644 index 00000000..56cd1464 --- /dev/null +++ b/kohana/config/profiler.php @@ -0,0 +1,8 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * @package Profiler + * + * Array of section names to display in the Profiler, TRUE to display all of them. + * Built in sections are benchmarks, database, session, post and cookies, custom sections can be used too. + */ +$config['show'] = TRUE; diff --git a/kohana/config/routes.php b/kohana/config/routes.php new file mode 100644 index 00000000..54fdc343 --- /dev/null +++ b/kohana/config/routes.php @@ -0,0 +1,7 @@ +<?php defined('SYSPATH') or die('No direct access allowed.'); +/** + * @package Core + * + * Sets the default route to "welcome" + */ +$config['_default'] = 'welcome'; diff --git a/kohana/config/session.php b/kohana/config/session.php new file mode 100644 index 00000000..966239b2 --- /dev/null +++ b/kohana/config/session.php @@ -0,0 +1,47 @@ +<?php defined('SYSPATH') or die('No direct access allowed.'); +/** + * @package Session + * + * Session driver name. + */ +$config['driver'] = 'cookie'; + +/** + * Session storage parameter, used by drivers. + */ +$config['storage'] = ''; + +/** + * Session name. + * It must contain only alphanumeric characters and underscores. At least one letter must be present. + */ +$config['name'] = 'kohanasession'; + +/** + * Session parameters to validate: user_agent, ip_address, expiration. + */ +$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; + +/** + * Session lifetime. Number of seconds that each session will last. + * A value of 0 will keep the session active until the browser is closed (with a limit of 24h). + */ +$config['expiration'] = 7200; + +/** + * Number of page loads before the session id is regenerated. + * A value of 0 will disable automatic session id regeneration. + */ +$config['regenerate'] = 3; + +/** + * Percentage probability that the gc (garbage collection) routine is started. + */ +$config['gc_probability'] = 2;
\ No newline at end of file diff --git a/kohana/config/sql_types.php b/kohana/config/sql_types.php new file mode 100644 index 00000000..1b63a9b3 --- /dev/null +++ b/kohana/config/sql_types.php @@ -0,0 +1,47 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * @package Database + * + * SQL data types. If there are missing values, please report them: + * + * @link http://trac.kohanaphp.com/newticket + */ +$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'), + 'boolean' => array('type' => 'boolean'), + 'time' => array('type' => 'string', 'format' => '00:00:00'), + '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'), + '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['decimal'] = $config['real'] = $config['numeric'] = $config['float']; + +// BIT +$config['bit'] = $config['boolean']; + +// TIMESTAMP +$config['timestamp'] = $config['datetime']; + +// ENUM +$config['enum'] = $config['set'] = $config['varchar']; + +// TEXT +$config['tinytext'] = $config['mediumtext'] = $config['longtext'] = $config['text']; + +// BLOB +$config['tinyblob'] = $config['mediumblob'] = $config['longblob'] = $config['clob'] = $config['blob']; diff --git a/kohana/config/upload.php b/kohana/config/upload.php new file mode 100644 index 00000000..8e42576c --- /dev/null +++ b/kohana/config/upload.php @@ -0,0 +1,17 @@ +<?php defined('SYSPATH') or die('No direct access allowed.'); +/** + * @package Core + * + * This path is relative to your index file. Absolute paths are also supported. + */ +$config['directory'] = DOCROOT.'upload'; + +/** + * Enable or disable directory creation. + */ +$config['create_directories'] = FALSE; + +/** + * Remove spaces from uploaded filenames. + */ +$config['remove_spaces'] = TRUE;
\ No newline at end of file diff --git a/kohana/config/user_agents.php b/kohana/config/user_agents.php new file mode 100644 index 00000000..8ae09b96 --- /dev/null +++ b/kohana/config/user_agents.php @@ -0,0 +1,109 @@ +<?php defined('SYSPATH') or die('No direct access allowed.'); +/** + * @package Core + * + * This file contains four arrays of user agent data. It is used by the + * User Agent library to help identify browser, platform, robot, and + * mobile device data. The array keys are used to identify the device + * and the array values are used to set the actual name of the item. + */ +$config['platform'] = array +( + 'windows nt 6.0' => 'Windows Vista', + 'windows nt 5.2' => 'Windows 2003', + 'windows nt 5.0' => 'Windows 2000', + 'windows nt 5.1' => 'Windows XP', + 'windows nt 4.0' => 'Windows NT', + 'winnt4.0' => 'Windows NT', + 'winnt 4.0' => 'Windows NT', + 'winnt' => 'Windows NT', + 'windows 98' => 'Windows 98', + 'win98' => 'Windows 98', + 'windows 95' => 'Windows 95', + 'win95' => 'Windows 95', + 'windows' => 'Unknown Windows OS', + 'os x' => 'Mac OS X', + 'intel mac' => 'Intel Mac', + 'ppc mac' => 'PowerPC Mac', + 'powerpc' => 'PowerPC', + 'ppc' => 'PowerPC', + 'cygwin' => 'Cygwin', + 'linux' => 'Linux', + 'debian' => 'Debian', + 'openvms' => 'OpenVMS', + 'sunos' => 'Sun Solaris', + 'amiga' => 'Amiga', + 'beos' => 'BeOS', + 'apachebench' => 'ApacheBench', + 'freebsd' => 'FreeBSD', + 'netbsd' => 'NetBSD', + 'bsdi' => 'BSDi', + 'openbsd' => 'OpenBSD', + 'os/2' => 'OS/2', + 'warp' => 'OS/2', + 'aix' => 'AIX', + 'irix' => 'Irix', + 'osf' => 'DEC OSF', + 'hp-ux' => 'HP-UX', + 'hurd' => 'GNU/Hurd', + 'unix' => 'Unknown Unix OS', +); + +// The order of this array should NOT be changed. Many browsers return +// multiple browser types so we want to identify the sub-type first. +$config['browser'] = array +( + 'Opera' => 'Opera', + 'MSIE' => 'Internet Explorer', + 'Internet Explorer' => 'Internet Explorer', + 'Shiira' => 'Shiira', + 'Firefox' => 'Firefox', + 'Chimera' => 'Chimera', + 'Phoenix' => 'Phoenix', + 'Firebird' => 'Firebird', + 'Camino' => 'Camino', + 'Netscape' => 'Netscape', + 'OmniWeb' => 'OmniWeb', + 'Safari' => 'Safari', + 'Konqueror' => 'Konqueror', + 'Epiphany' => 'Epiphany', + 'Galeon' => 'Galeon', + 'Mozilla' => 'Mozilla', + 'icab' => 'iCab', + 'lynx' => 'Lynx', + 'links' => 'Links', + 'hotjava' => 'HotJava', + 'amaya' => 'Amaya', + 'IBrowse' => 'IBrowse', +); + +$config['mobile'] = array +( + 'mobileexplorer' => 'Mobile Explorer', + 'openwave' => 'Open Wave', + 'opera mini' => 'Opera Mini', + 'operamini' => 'Opera Mini', + 'elaine' => 'Palm', + 'palmsource' => 'Palm', + 'digital paths' => 'Palm', + 'avantgo' => 'Avantgo', + 'xiino' => 'Xiino', + 'palmscape' => 'Palmscape', + 'nokia' => 'Nokia', + 'ericsson' => 'Ericsson', + 'blackBerry' => 'BlackBerry', + 'motorola' => 'Motorola', +); + +// There are hundreds of bots but these are the most common. +$config['robot'] = array +( + 'googlebot' => 'Googlebot', + 'msnbot' => 'MSNBot', + 'slurp' => 'Inktomi Slurp', + 'yahoo' => 'Yahoo', + 'askjeeves' => 'AskJeeves', + 'fastcrawler' => 'FastCrawler', + 'infoseek' => 'InfoSeek Robot 1.0', + 'lycos' => 'Lycos', +);
\ No newline at end of file diff --git a/kohana/config/view.php b/kohana/config/view.php new file mode 100644 index 00000000..ed6b13b1 --- /dev/null +++ b/kohana/config/view.php @@ -0,0 +1,17 @@ +<?php defined('SYSPATH') or die('No direct script access.'); +/** + * @package Core + * + * Allowed non-php view types. Most file extensions are supported. + */ +$config['allowed_filetypes'] = array +( + 'gif', + 'jpg', 'jpeg', + 'png', + 'tif', 'tiff', + 'swf', + 'htm', 'html', + 'css', + 'js' +); |