From 5fed074a45cb9f3a7e4ade86166a0f04d05243b7 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 22 May 2012 08:37:08 +0200 Subject: Always use 1 step as a fallback (#1488490) --- installer/index.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'installer/index.php') diff --git a/installer/index.php b/installer/index.php index e46ef19df..b5b9e4a04 100644 --- a/installer/index.php +++ b/installer/index.php @@ -130,14 +130,23 @@ if ($RCI->configured && empty($_REQUEST['_step'])) { echo ''; exit; } - + ?>

Roundcube Webmail Installer

    './check.php', + 2 => './config.php', + 3 => './test.php', + ); + + if (!in_array($RCI->step, array_keys($include_steps))) { + $RCI->step = 1; + } + foreach (array('Check environment', 'Create config', 'Test config') as $i => $item) { $j = $i + 1; $link = ($RCI->step >= $j || $RCI->configured) ? '' . Q($item) . '' : Q($item); @@ -147,15 +156,8 @@ if ($RCI->configured && empty($_REQUEST['_step'])) {
step]) { - include $include_steps[$RCI->step]; -} -else { - header("HTTP/1.0 404 Not Found"); - echo '

Invalid step

'; -} +include $include_steps[$RCI->step]; ?> -- cgit v1.2.3