From b3f9dfb54e46e63d14e605ea88605b6bc1ffa17d Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 27 Feb 2008 03:11:17 -0500
Subject: [PATCH] Allow to skip the config step if config files already exist

---
 installer/check.php |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/installer/check.php b/installer/check.php
index 9f54d8f..06eae42 100644
--- a/installer/check.php
+++ b/installer/check.php
@@ -1,3 +1,4 @@
+<form action="index.php" method="get">
 <?php
 
 $required_php_exts = array('PCRE' => 'pcre', 'Session' => 'session', 'Sockets' => 'sockets');
@@ -28,10 +29,8 @@
     'Mail_mime' => 'http://pear.php.net/package/Mail_mime'
 );
 
+echo '<input type="hidden" name="_step" value="' . ($RCI->configured ? 2 : 3) . '" />';
 ?>
-
-<form action="index.php" method="get">
-<input type="hidden" name="_step" value="2" />
 
 <h3>Checking PHP version</h3>
 <?php

--
Gitblit v1.9.1