1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
4 |--------------------------------------------------------------------------
5 | File and Directory Modes
6 |--------------------------------------------------------------------------
8 | These prefs are used when checking and setting modes when working
9 | with the file system. The defaults are fine on servers with proper
10 | security, but you may wish (or even need) to change the values in
11 | certain environments (Apache running a separate process for each
12 | user, PHP under CGI with Apache suEXEC, etc.). Octal values should
13 | always be used to set the mode correctly.
16 define('FILE_READ_MODE', 0644);
17 define('FILE_WRITE_MODE', 0666);
18 define('DIR_READ_MODE', 0755);
19 define('DIR_WRITE_MODE', 0777);
22 |--------------------------------------------------------------------------
24 |--------------------------------------------------------------------------
26 | These modes are used when working with fopen()/popen()
29 define('FOPEN_READ', 'rb');
30 define('FOPEN_READ_WRITE', 'r+b');
31 define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
32 define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
33 define('FOPEN_WRITE_CREATE', 'ab');
34 define('FOPEN_READ_WRITE_CREATE', 'a+b');
35 define('FOPEN_WRITE_CREATE_STRICT', 'xb');
36 define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
39 |--------------------------------------------------------------------------
41 |--------------------------------------------------------------------------
43 | Define bits significance in user roles bit mask.
46 define('USER_ROLE_STANDARD', 0);
47 define('USER_ROLE_ADMIN', 1);
49 /* End of file constants.php */
50 /* Location: ./application/config/constants.php */