Take two:
[www-register-wizard.git] / application / config / constants.php
1 <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\r
2 \r
3 /*\r
4 |--------------------------------------------------------------------------\r
5 | File and Directory Modes\r
6 |--------------------------------------------------------------------------\r
7 |\r
8 | These prefs are used when checking and setting modes when working\r
9 | with the file system.  The defaults are fine on servers with proper\r
10 | security, but you may wish (or even need) to change the values in\r
11 | certain environments (Apache running a separate process for each\r
12 | user, PHP under CGI with Apache suEXEC, etc.).  Octal values should\r
13 | always be used to set the mode correctly.\r
14 |\r
15 */\r
16 define('FILE_READ_MODE', 0644);\r
17 define('FILE_WRITE_MODE', 0666);\r
18 define('DIR_READ_MODE', 0755);\r
19 define('DIR_WRITE_MODE', 0777);\r
20 \r
21 /*\r
22 |--------------------------------------------------------------------------\r
23 | File Stream Modes\r
24 |--------------------------------------------------------------------------\r
25 |\r
26 | These modes are used when working with fopen()/popen()\r
27 |\r
28 */\r
29 \r
30 define('FOPEN_READ',                                                    'rb');\r
31 define('FOPEN_READ_WRITE',                                              'r+b');\r
32 define('FOPEN_WRITE_CREATE_DESTRUCTIVE',                'wb'); // truncates existing file data, use with care\r
33 define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',   'w+b'); // truncates existing file data, use with care\r
34 define('FOPEN_WRITE_CREATE',                                    'ab');\r
35 define('FOPEN_READ_WRITE_CREATE',                               'a+b');\r
36 define('FOPEN_WRITE_CREATE_STRICT',                     'xb');\r
37 define('FOPEN_READ_WRITE_CREATE_STRICT',                'x+b');\r
38 \r
39 \r
40 /* End of file constants.php */\r
41 /* Location: ./system/application/config/constants.php */