| | |
| | | } |
| | | } |
| | | |
| | | // application constants |
| | | define('RCMAIL_VERSION', '0.9-git'); |
| | | define('RCMAIL_CHARSET', 'UTF-8'); |
| | | define('RCMAIL_START', microtime(true)); |
| | | // framework constants |
| | | define('RCUBE_VERSION', '0.9-git'); |
| | | define('RCUBE_CHARSET', 'UTF-8'); |
| | | |
| | | if (!defined('RCUBE_LIB_DIR')) { |
| | | define('RCUBE_LIB_DIR', dirname(__FILE__).'/'); |
| | |
| | | } |
| | | |
| | | if (!defined('RCUBE_CONFIG_DIR')) { |
| | | define('RCUBE_CONFIG_DIR', RCUBE_INSTALL_PATH . 'config'); |
| | | define('RCUBE_CONFIG_DIR', RCUBE_INSTALL_PATH . 'config/'); |
| | | } |
| | | |
| | | if (!defined('RCUBE_PLUGINS_DIR')) { |
| | |
| | | |
| | | // set internal encoding for mbstring extension |
| | | if (extension_loaded('mbstring')) { |
| | | mb_internal_encoding(RCMAIL_CHARSET); |
| | | @mb_regex_encoding(RCMAIL_CHARSET); |
| | | mb_internal_encoding(RCUBE_CHARSET); |
| | | @mb_regex_encoding(RCUBE_CHARSET); |
| | | } |
| | | |
| | | // Register autoloader |