| | |
| | | } |
| | | |
| | | // application constants |
| | | define('RCMAIL_VERSION', '0.3-trunk'); |
| | | define('RCMAIL_VERSION', '0.4-trunk'); |
| | | define('RCMAIL_CHARSET', 'UTF-8'); |
| | | define('JS_OBJECT_NAME', 'rcmail'); |
| | | define('RCMAIL_START', microtime(true)); |
| | |
| | | $include_path.= ini_get('include_path'); |
| | | |
| | | if (set_include_path($include_path) === false) { |
| | | die('Fatal error: ini_set/set_include_path does not work.'); |
| | | die("Fatal error: ini_set/set_include_path does not work."); |
| | | } |
| | | |
| | | ini_set('error_reporting', E_ALL&~E_NOTICE); |
| | |
| | | // set internal encoding for mbstring extension |
| | | if(extension_loaded('mbstring')) |
| | | mb_internal_encoding(RCMAIL_CHARSET); |
| | | |
| | | |
| | | |
| | | /** |
| | | * Use PHP5 autoload for dynamic class loading |
| | |
| | | '/Net_(.+)/', |
| | | '/^html_.+/', |
| | | '/^utf8$/', |
| | | '/html2text/' |
| | | ), |
| | | array( |
| | | 'MDB2/\\1', |
| | |
| | | 'Net/\\1', |
| | | 'html', |
| | | 'utf8.class', |
| | | 'lib/html2text' // see #1485505 |
| | | ), |
| | | $classname |
| | | ); |