diff options
author | thomascube <thomas@roundcube.net> | 2008-10-03 20:58:23 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-10-03 20:58:23 +0000 |
commit | e107123780c12b4d43d0264cb9c6180fb02d9ab8 (patch) | |
tree | 9bbdfc04828cc0f980a87b0d990020d50a1c8f47 /installer/index.php | |
parent | 2b58528f6ad14d452e7a3b3af00071a9370a92c1 (diff) |
Add methods to check and update local config files + show HTML output in installer test step
Diffstat (limited to 'installer/index.php')
-rw-r--r-- | installer/index.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/installer/index.php b/installer/index.php index d14e6ff37..6ece82385 100644 --- a/installer/index.php +++ b/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"> |