Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 2 | /** |
| 3 | * CodeIgniter |
| 4 | * |
Phil Sturgeon | 07c1ac8 | 2012-03-09 17:03:37 +0000 | [diff] [blame^] | 5 | * An open source application development framework for PHP 5.2.4 or newer |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 6 | * |
| 7 | * NOTICE OF LICENSE |
| 8 | * |
| 9 | * Licensed under the Academic Free License version 3.0 |
| 10 | * |
Derek Jones | 61df906 | 2011-10-21 09:55:40 -0500 | [diff] [blame] | 11 | * This source file is subject to the Academic Free License (AFL 3.0) that is |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 12 | * 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 Aker | 0defe5d | 2012-01-01 18:46:41 -0600 | [diff] [blame] | 21 | * @copyright Copyright (c) 2008 - 2012, EllisLab, Inc. (http://ellislab.com/) |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 22 | * @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 Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 27 | |
| 28 | /* |
| 29 | |-------------------------------------------------------------------------- |
| 30 | | File and Directory Modes |
| 31 | |-------------------------------------------------------------------------- |
| 32 | | |
| 33 | | These prefs are used when checking and setting modes when working |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 34 | | with the file system. The defaults are fine on servers with proper |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 35 | | security, but you may wish (or even need) to change the values in |
| 36 | | certain environments (Apache running a separate process for each |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 37 | | user, PHP under CGI with Apache suEXEC, etc.). Octal values should |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 38 | | always be used to set the mode correctly. |
| 39 | | |
| 40 | */ |
| 41 | define('FILE_READ_MODE', 0644); |
| 42 | define('FILE_WRITE_MODE', 0666); |
| 43 | define('DIR_READ_MODE', 0755); |
| 44 | define('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 Mieny | dd67197 | 2010-10-04 16:33:58 +0200 | [diff] [blame] | 55 | define('FOPEN_READ', 'rb'); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 56 | define('FOPEN_READ_WRITE', 'r+b'); |
Barry Mieny | dd67197 | 2010-10-04 16:33:58 +0200 | [diff] [blame] | 57 | define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care |
| 58 | define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care |
| 59 | define('FOPEN_WRITE_CREATE', 'ab'); |
| 60 | define('FOPEN_READ_WRITE_CREATE', 'a+b'); |
| 61 | define('FOPEN_WRITE_CREATE_STRICT', 'xb'); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 62 | define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b'); |
| 63 | |
Timothy Warren | 9a902cb | 2011-10-18 04:06:29 -0400 | [diff] [blame] | 64 | /* |
| 65 | |-------------------------------------------------------------------------- |
| 66 | | Display Debug backtrace |
| 67 | |-------------------------------------------------------------------------- |
| 68 | | |
Timothy Warren | d609a59 | 2011-10-18 06:27:31 -0400 | [diff] [blame] | 69 | | If set to TRUE, a backtrace will be displayed along with php errors. If |
Timothy Warren | 9a902cb | 2011-10-18 04:06:29 -0400 | [diff] [blame] | 70 | | error_reporting is disabled, the backtrace will not display, regardless |
| 71 | | of this setting |
| 72 | | |
| 73 | */ |
Timothy Warren | 5160cc9 | 2011-10-18 06:50:06 -0400 | [diff] [blame] | 74 | define('SHOW_DEBUG_BACKTRACE', TRUE); |
Timothy Warren | 9a902cb | 2011-10-18 04:06:29 -0400 | [diff] [blame] | 75 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 76 | |
| 77 | /* End of file constants.php */ |
Derek Jones | f0b3994 | 2010-03-25 10:08:20 -0500 | [diff] [blame] | 78 | /* Location: ./application/config/constants.php */ |