| | |
| | | <?php |
| | | |
| | | ini_set('error_reporting', E_ALL&~E_NOTICE); |
| | | ini_set('display_errors', 1); |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/../').'/'); |
| | | $include_path = INSTALL_PATH . 'program/lib' . PATH_SEPARATOR . INSTALL_PATH . 'program' . PATH_SEPARATOR . INSTALL_PATH . 'program/include' . PATH_SEPARATOR . ini_get('include_path'); |
| | | $include_path = INSTALL_PATH . 'program/lib' . PATH_SEPARATOR; |
| | | $include_path .= INSTALL_PATH . 'program' . PATH_SEPARATOR; |
| | | $include_path .= INSTALL_PATH . 'program/include' . PATH_SEPARATOR; |
| | | $include_path .= ini_get('include_path'); |
| | | |
| | | set_include_path($include_path); |
| | | |
| | | session_start(); |
| | |
| | | $classname |
| | | ); |
| | | include_once $filename. '.php'; |
| | | } |
| | | |
| | | $RCI = rcube_install::get_instance(); |
| | | $RCI->load_config(); |
| | | |
| | | if (isset($_GET['_getfile']) && in_array($_GET['_getfile'], array('main', 'db'))) |
| | | { |
| | | header('Content-type: text/plain'); |
| | | header('Content-Disposition: attachment; filename="'.$_GET['_getfile'].'.inc.php"'); |
| | | echo $RCI->create_config($_GET['_getfile']); |
| | | exit; |
| | | } |
| | | |
| | | ?> |
| | |
| | | <div id="content"> |
| | | |
| | | <?php |
| | | |
| | | $RCI = rcube_install::get_instance(); |
| | | $RCI->load_config(); |
| | | |
| | | // exit if installation is complete |
| | | if ($RCI->configured && !$RCI->getprop('enable_installer') && !$_SESSION['allowinstaller']) { |