| | |
| | | +-----------------------------------------------------------------------+ |
| | | | program/include/iniset.php | |
| | | | | |
| | | | This file is part of the RoundCube Webmail client | |
| | | | Copyright (C) 2008-2009, RoundCube Dev, - Switzerland | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2008-2011, The Roundcube Dev Team | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | PURPOSE: | |
| | |
| | | } |
| | | |
| | | // application constants |
| | | define('RCMAIL_VERSION', '0.4-trunk'); |
| | | define('RCMAIL_VERSION', '0.6-svn'); |
| | | define('RCMAIL_CHARSET', 'UTF-8'); |
| | | define('JS_OBJECT_NAME', 'rcmail'); |
| | | define('RCMAIL_START', microtime(true)); |
| | |
| | | define('INSTALL_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/'); |
| | | } |
| | | |
| | | define('RCMAIL_CONFIG_DIR', INSTALL_PATH . 'config'); |
| | | if (!defined('RCMAIL_CONFIG_DIR')) { |
| | | define('RCMAIL_CONFIG_DIR', INSTALL_PATH . 'config'); |
| | | } |
| | | |
| | | // make sure path_separator is defined |
| | | if (!defined('PATH_SEPARATOR')) { |
| | |
| | | '/MDB2_(.+)/', |
| | | '/Mail_(.+)/', |
| | | '/Net_(.+)/', |
| | | '/Auth_(.+)/', |
| | | '/^html_.+/', |
| | | '/^utf8$/', |
| | | ), |
| | |
| | | 'MDB2/\\1', |
| | | 'Mail/\\1', |
| | | 'Net/\\1', |
| | | 'Auth/\\1', |
| | | 'html', |
| | | 'utf8.class', |
| | | ), |
| | | $classname |
| | | ); |
| | | include $filename. '.php'; |
| | | |
| | | if ($fp = @fopen("$filename.php", 'r', true)) { |
| | | fclose($fp); |
| | | include_once("$filename.php"); |
| | | return true; |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | |
| | | spl_autoload_register('rcube_autoload'); |