blob: ee177f5adc1c2014c055decd014505685e74bc47 [file] [log] [blame]
Derek Jones37f4b9c2011-07-01 17:56:50 -05001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Derek Allard2067d1a2008-11-13 22:59:24 +00002
3/*
4|--------------------------------------------------------------------------
5| File and Directory Modes
6|--------------------------------------------------------------------------
7|
8| These prefs are used when checking and setting modes when working
Derek Jones37f4b9c2011-07-01 17:56:50 -05009| with the file system. The defaults are fine on servers with proper
Derek Allard2067d1a2008-11-13 22:59:24 +000010| security, but you may wish (or even need) to change the values in
11| certain environments (Apache running a separate process for each
Derek Jones37f4b9c2011-07-01 17:56:50 -050012| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
Derek Allard2067d1a2008-11-13 22:59:24 +000013| always be used to set the mode correctly.
14|
15*/
16define('FILE_READ_MODE', 0644);
17define('FILE_WRITE_MODE', 0666);
18define('DIR_READ_MODE', 0755);
19define('DIR_WRITE_MODE', 0777);
20
21/*
22|--------------------------------------------------------------------------
23| File Stream Modes
24|--------------------------------------------------------------------------
25|
26| These modes are used when working with fopen()/popen()
27|
28*/
29
Barry Mienydd671972010-10-04 16:33:58 +020030define('FOPEN_READ', 'rb');
Derek Allard2067d1a2008-11-13 22:59:24 +000031define('FOPEN_READ_WRITE', 'r+b');
Barry Mienydd671972010-10-04 16:33:58 +020032define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
33define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
34define('FOPEN_WRITE_CREATE', 'ab');
35define('FOPEN_READ_WRITE_CREATE', 'a+b');
36define('FOPEN_WRITE_CREATE_STRICT', 'xb');
Derek Allard2067d1a2008-11-13 22:59:24 +000037define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
38
Timothy Warren9a902cb2011-10-18 04:06:29 -040039/*
40|--------------------------------------------------------------------------
41| Display Debug backtrace
42|--------------------------------------------------------------------------
43|
Timothy Warrend609a592011-10-18 06:27:31 -040044| If set to TRUE, a backtrace will be displayed along with php errors. If
Timothy Warren9a902cb2011-10-18 04:06:29 -040045| error_reporting is disabled, the backtrace will not display, regardless
46| of this setting
47|
48*/
Timothy Warren5160cc92011-10-18 06:50:06 -040049define('SHOW_DEBUG_BACKTRACE', TRUE);
Timothy Warren9a902cb2011-10-18 04:06:29 -040050
Derek Allard2067d1a2008-11-13 22:59:24 +000051
52/* End of file constants.php */
Derek Jonesf0b39942010-03-25 10:08:20 -050053/* Location: ./application/config/constants.php */