blob: 32a71595212eb5f06681ea181577432ad99ec714 [file] [log] [blame]
Andrey Andreeve734b382012-03-26 13:42:36 +03001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Derek Jonesf4a4bd82011-10-20 12:18:42 -05002/**
3 * CodeIgniter
4 *
Phil Sturgeon07c1ac82012-03-09 17:03:37 +00005 * An open source application development framework for PHP 5.2.4 or newer
Derek Jonesf4a4bd82011-10-20 12:18:42 -05006 *
7 * NOTICE OF LICENSE
Andrey Andreeve734b382012-03-26 13:42:36 +03008 *
Derek Jonesf4a4bd82011-10-20 12:18:42 -05009 * Licensed under the Academic Free License version 3.0
Andrey Andreeve734b382012-03-26 13:42:36 +030010 *
Derek Jones61df9062011-10-21 09:55:40 -050011 * This source file is subject to the Academic Free License (AFL 3.0) that is
Derek Jonesf4a4bd82011-10-20 12:18:42 -050012 * bundled with this package in the files license_afl.txt / license_afl.rst.
13 * It is also available through the world wide web at this URL:
14 * http://opensource.org/licenses/AFL-3.0
15 * If you did not receive a copy of the license and are unable to obtain it
16 * through the world wide web, please send an email to
17 * licensing@ellislab.com so we can send you a copy immediately.
18 *
19 * @package CodeIgniter
20 * @author EllisLab Dev Team
Andrey Andreev80500af2013-01-01 08:16:53 +020021 * @copyright Copyright (c) 2008 - 2013, EllisLab, Inc. (http://ellislab.com/)
Derek Jonesf4a4bd82011-10-20 12:18:42 -050022 * @license http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
23 * @link http://codeigniter.com
24 * @since Version 1.0
25 * @filesource
26 */
Derek Allard2067d1a2008-11-13 22:59:24 +000027
28/*
29|--------------------------------------------------------------------------
30| File and Directory Modes
31|--------------------------------------------------------------------------
32|
33| These prefs are used when checking and setting modes when working
Derek Jones37f4b9c2011-07-01 17:56:50 -050034| with the file system. The defaults are fine on servers with proper
Derek Allard2067d1a2008-11-13 22:59:24 +000035| security, but you may wish (or even need) to change the values in
36| certain environments (Apache running a separate process for each
Derek Jones37f4b9c2011-07-01 17:56:50 -050037| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
Derek Allard2067d1a2008-11-13 22:59:24 +000038| always be used to set the mode correctly.
39|
40*/
41define('FILE_READ_MODE', 0644);
42define('FILE_WRITE_MODE', 0666);
43define('DIR_READ_MODE', 0755);
44define('DIR_WRITE_MODE', 0777);
45
46/*
47|--------------------------------------------------------------------------
48| File Stream Modes
49|--------------------------------------------------------------------------
50|
51| These modes are used when working with fopen()/popen()
52|
53*/
54
D. Marshall Lemcoe Jr.88dabf12012-09-03 01:46:30 -030055define('FOPEN_READ', 'rb');
56define('FOPEN_READ_WRITE', 'r+b');
57define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
58define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
59define('FOPEN_WRITE_CREATE', 'ab');
60define('FOPEN_READ_WRITE_CREATE', 'a+b');
61define('FOPEN_WRITE_CREATE_STRICT', 'xb');
62define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
Derek Allard2067d1a2008-11-13 22:59:24 +000063
Timothy Warren9a902cb2011-10-18 04:06:29 -040064/*
65|--------------------------------------------------------------------------
66| Display Debug backtrace
67|--------------------------------------------------------------------------
68|
Andrey Andreeve734b382012-03-26 13:42:36 +030069| If set to TRUE, a backtrace will be displayed along with php errors. If
70| error_reporting is disabled, the backtrace will not display, regardless
Timothy Warren9a902cb2011-10-18 04:06:29 -040071| of this setting
72|
73*/
Timothy Warren5160cc92011-10-18 06:50:06 -040074define('SHOW_DEBUG_BACKTRACE', TRUE);
Timothy Warren9a902cb2011-10-18 04:06:29 -040075
Daniel Hunsaker3b5b7f42013-02-22 19:17:56 -070076/*
77|--------------------------------------------------------------------------
78| Exit Status Codes
79|--------------------------------------------------------------------------
80|
81| Used to indicate the conditions under which the script is exit()ing.
82| While there is no universal standard for error codes, there are some
83| broad conventions. Three such conventions are presented below, for
84| those who wish to make use of them. The CodeIgniter defaults were
85| chosen for the least overlap with these conventions, while still
86| leaving room for others to be defined in future versions and user
87| applications. The CodeIgniter values are defined last so you can
88| set them to values used by any of the other conventions, and do so
89| by name instead of value.
90|
91*/
92
93/*
94 * standard C/C++ library (stdlibc):
95 */
96/*
97define('LIBC_EXIT_SUCCESS', 0);
98define('LIBC_EXIT_FAILURE', 1); // generic errors
99*/
100
101/*
102 * BSD sysexits.h
103 */
104/*
105define('SYS_EX_OK', 0); // successful termination
106define('SYS_EX_USAGE', 64); // command line usage error
107define('SYS_EX_DATAERR', 65); // data format error
108define('SYS_EX_NOINPUT', 66); // cannot open input
109define('SYS_EX_NOUSER', 67); // specified user unknown
110define('SYS_EX_NOHOST', 68); // specified host name unknown
111define('SYS_EX_UNAVAILABLE', 69); // service unavailable
112define('SYS_EX_SOFTWARE', 70); // internal software error
113define('SYS_EX_OSERR', 71); // system error (e.g., can't fork)
114define('SYS_EX_OSFILE', 72); // critical OS file missing
115define('SYS_EX_CANTCREAT', 73); // can't create (user) output file
116define('SYS_EX_IOERR', 74); // input/output error
117define('SYS_EX_TEMPFAIL', 75); // temporary failure; user is invited to retry
118define('SYS_EX_PROTOCOL', 76); // remote error in protocol
119define('SYS_EX_NOPERM', 77); // permission denied
120define('SYS_EX_CONFIG', 78); // configuration error
121*/
122
123/*
124 * Bash scripting
125 */
126/*
127define('BASH_EXIT_SUCCESS', 0);
128define('BASH_EXIT_ERROR', 1);
129define('BASH_EXIT_BUILTIN_MISUSE', 2);
130define('BASH_EXIT_CANT_EXEC', 126);
131define('BASH_EXIT_CMD_NOT_FOUND', 127);
132define('BASH_EXIT_INVALID_EXIT', 128);
133define('BASH_EXIT_SIG_HUP', 129);
134define('BASH_EXIT_SIG_INT', 130);
135define('BASH_EXIT_SIG_QUIT', 131);
136define('BASH_EXIT_SIG_ILL', 132);
137define('BASH_EXIT_SIG_TRAP', 133);
138define('BASH_EXIT_SIG_ABRT', 134);
139define('BASH_EXIT_SIG_BUS', 135);
140define('BASH_EXIT_SIG_FPE', 136);
141define('BASH_EXIT_SIG_KILL', 137);
142define('BASH_EXIT_SIG_USR1', 138);
143define('BASH_EXIT_SIG_SEGV', 139);
144define('BASH_EXIT_SIG_USR2', 140);
145define('BASH_EXIT_SIG_PIPE', 141);
146define('BASH_EXIT_SIG_ALRM', 142);
147define('BASH_EXIT_SIG_TERM', 143);
148define('BASH_EXIT_SIG_STKFLT', 144);
149define('BASH_EXIT_SIG_CHLD', 145);
150define('BASH_EXIT_SIG_CONT', 146);
151define('BASH_EXIT_SIG_STOP', 147);
152define('BASH_EXIT_SIG_TSTP', 148);
153define('BASH_EXIT_SIG_TTIN', 149);
154define('BASH_EXIT_SIG_TTOU', 150);
155define('BASH_EXIT_SIG_URG', 151);
156define('BASH_EXIT_SIG_XCPU', 152);
157define('BASH_EXIT_SIG_XFSZ', 153);
158define('BASH_EXIT_SIG_VTALRM', 154);
159define('BASH_EXIT_SIG_PROF', 155);
160define('BASH_EXIT_SIG_WINCH', 156);
161define('BASH_EXIT_SIG_IO', 157);
162define('BASH_EXIT_SIG_PWR', 158);
163define('BASH_EXIT_SIG_SYS', 159);
164*/
165/*
166 * BASH_EXIT_OUTOFRANGE would be 255, and mean an exit status code beyond
167 * the range of 0-255 was given. However, this code CANNOT BE USED IN PHP,
168 * so it isn't actually defined, even in a comment.
169 */
170
171/*
172 * CodeIgniter defaults
173 */
174define('EXIT_SUCCESS', 0); // no errors
175define('EXIT_FAILURE', 1); // generic error
176define('EXIT_CONFIG', 3); // configuration error
177define('EXIT_404', 4); // file not found; convenience value
178define('EXIT_UNK_FILE', 4); // file not found
179define('EXIT_UNK_CLASS', 5); // unknown class
180define('EXIT_UNK_MEMBER', 6); // unknown class member
181define('EXIT_USER_INPUT', 7); // invalid user input
182define('EXIT_DATABASE', 8); // database error
183define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
184define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
185
Derek Allard2067d1a2008-11-13 22:59:24 +0000186
187/* End of file constants.php */
Derek Jonesf0b39942010-03-25 10:08:20 -0500188/* Location: ./application/config/constants.php */