blob: fce1013202963748e162a355be0bc91cde1badae [file] [log] [blame]
Derek Jones37f4b9c2011-07-01 17:56:50 -05001<?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
8 *
9 * Licensed under the Academic Free License version 3.0
10 *
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
Greg Aker0defe5d2012-01-01 18:46:41 -060021 * @copyright Copyright (c) 2008 - 2012, 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
Barry Mienydd671972010-10-04 16:33:58 +020055define('FOPEN_READ', 'rb');
Derek Allard2067d1a2008-11-13 22:59:24 +000056define('FOPEN_READ_WRITE', 'r+b');
Barry Mienydd671972010-10-04 16:33:58 +020057define('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');
Derek Allard2067d1a2008-11-13 22:59:24 +000062define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
63
Timothy Warren9a902cb2011-10-18 04:06:29 -040064/*
65|--------------------------------------------------------------------------
66| Display Debug backtrace
67|--------------------------------------------------------------------------
68|
Timothy Warrend609a592011-10-18 06:27:31 -040069| If set to TRUE, a backtrace will be displayed along with php errors. If
Timothy Warren9a902cb2011-10-18 04:06:29 -040070| error_reporting is disabled, the backtrace will not display, regardless
71| 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
Derek Allard2067d1a2008-11-13 22:59:24 +000076
77/* End of file constants.php */
Derek Jonesf0b39942010-03-25 10:08:20 -050078/* Location: ./application/config/constants.php */