diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-03 20:58:23 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-03 20:58:23 +0000 |
| commit | 8e04c36d7d0d1212d5b53a78780088ff8be3bef7 (patch) | |
| tree | 08f8cdad11c1a56236973c6f4d523c219646b254 /roundcubemail/installer/index.php | |
| parent | 69e4a83f3c2fee1b6e9b7d3bc1031715c70bbf33 (diff) | |
Add methods to check and update local config files + show HTML output in installer test step
git-svn-id: https://svn.roundcube.net/trunk@1933 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/installer/index.php')
| -rw-r--r-- | roundcubemail/installer/index.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roundcubemail/installer/index.php b/roundcubemail/installer/index.php index d14e6ff37..6ece82385 100644 --- a/roundcubemail/installer/index.php +++ b/roundcubemail/installer/index.php @@ -45,6 +45,23 @@ if (isset($_GET['_getfile']) && in_array($_GET['_getfile'], array('main', 'db')) } } +if (isset($_GET['_mergeconfig']) && in_array($_GET['_mergeconfig'], array('main', 'db'))) { + $filename = $_GET['_mergeconfig'] . '.inc.php'; + + header('Content-type: text/plain'); + header('Content-Disposition: attachment; filename="'.$filename.'"'); + + $RCI->merge_config(); + echo $RCI->create_config($_GET['_mergeconfig'], true); + exit; +} + +// go to 'test' step if we have a local configuration +if ($RCI->configured && empty($_REQUEST['_step'])) { + header("Location: ./?_step=3"); + exit; +} + ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
