From f181103181616718cd00cbc5793e633cf7baafad Mon Sep 17 00:00:00 2001 From: thomasb Date: Sat, 5 Apr 2008 12:53:47 +0000 Subject: Add hint for saving config files + stop DB initialization if en error occurs git-svn-id: https://svn.roundcube.net/trunk@1256 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/installer/config.php | 3 ++- roundcubemail/installer/rcube_install.php | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/roundcubemail/installer/config.php b/roundcubemail/installer/config.php index 9845bb3f3..dc85faa6c 100644 --- a/roundcubemail/installer/config.php +++ b/roundcubemail/installer/config.php @@ -26,7 +26,8 @@ $_SESSION['allowinstaller'] = true; if (!empty($_POST['submit'])) { echo '

Copy the following configurations and save them in two files (names above the text box)'; - echo ' within the config/ directory of your RoundCube installation.

'; + echo ' within the config/ directory of your RoundCube installation.
'; + echo ' Make sure that there are no characters outside the <?php ?> brackets when saving the files.

'; $textbox = new textarea(array('rows' => 16, 'cols' => 60, 'class' => "configfile")); diff --git a/roundcubemail/installer/rcube_install.php b/roundcubemail/installer/rcube_install.php index 07a9922b7..12cd5c10d 100644 --- a/roundcubemail/installer/rcube_install.php +++ b/roundcubemail/installer/rcube_install.php @@ -305,6 +305,8 @@ class rcube_install if (eregi(';$', trim($line))) { $DB->query($buff); $buff = ''; + if ($this->get_error()) + break; } } } -- cgit v1.2.3