From e107123780c12b4d43d0264cb9c6180fb02d9ab8 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 3 Oct 2008 20:58:23 +0000 Subject: Add methods to check and update local config files + show HTML output in installer test step --- installer/test.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'installer/test.php') diff --git a/installer/test.php b/installer/test.php index ca7c7add4..8af6a6aef 100644 --- a/installer/test.php +++ b/installer/test.php @@ -27,6 +27,50 @@ else if (!$read_db) { $RCI->fail('db.inc.php', 'Unable to read file. Did you create the config files?'); } +if ($RCI->configured && ($messages = $RCI->check_config())) { + + if (is_array($messages['missing'])) { + echo '

Missing config options

'; + echo '

The following config options are not present in the current configuration.
'; + echo 'Please check the default config files and add the missing properties to your local config files.

'; + + echo ''; + } + + if (is_array($messages['replaced'])) { + echo '

Replaced config options

'; + echo '

The following config options have been replaced or renamed. '; + echo 'Please update them accordingly in your config files.

'; + + echo ''; + } + + if (is_array($messages['obsolete'])) { + echo '

Obsolete config options

'; + echo '

You still have some obsolete or inexistent properties set. This isn\'t a problem but should be noticed.

'; + + echo ''; + } + + echo '

OK, lazy people can download the updated config files here: '; + echo html::a(array('href' => './?_mergeconfig=main'), 'main.inc.php') . '  '; + echo html::a(array('href' => './?_mergeconfig=db'), 'db.inc.php'); + echo "

"; +} + ?>

Check if directories are writable

-- cgit v1.2.3