From dcf9f262958a1b910b6fe59d02b3339dbf52f2b2 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Sun, 4 Jan 2015 23:36:21 -0500 Subject: [PATCH] Closes #103 Install errors should be displayed in the main install area, not in the panel --- install/install_functions.inc.php | 63 +++++++++++++++++-------------- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/install/install_functions.inc.php b/install/install_functions.inc.php index 2deee5ec..67269a74 100644 --- a/install/install_functions.inc.php +++ b/install/install_functions.inc.php @@ -347,35 +347,7 @@ function hesk_iDatabase($problem=0)

Summary

-
Double-check all the information below. Contact your hosting company for the correct information to use!

MySQL said: '.$mysql_log.'

', 'Database connection failed'; - } - elseif ($problem == 2) - { - echo 'Database tables already exist!

- HESK database tables with '.$hesk_settings['db_pfix'].' prefix already exist in this database!

- To upgrade an existing HESK installation select Update existing install instead.

- To install a new copy of HESK in use a unique table prefix.'; - } - elseif ($problem == 3) - { - echo 'Old database tables not found!

- HESK database tables have not been found in this database!

- To install HESK use the New install option instead.'; - } - elseif ($problem == 4) - { - echo 'Version '.HESK_NEW_VERSION.' tables already exist!

- Your database seems to be compatible with HESK version '.HESK_NEW_VERSION.'

- To install a new copy of HESK use the New install option instead.'; - } - else - { - echo '

To complete setup HESK needs to connect to your database. You can get this information from your hosting control panel.

'; - } - ?> +

To complete setup HESK needs to connect to your database. You can get this information from your hosting control panel.

@@ -384,6 +356,39 @@ function hesk_iDatabase($problem=0)
Database Settings
+ '; + echo '

Double-check all the information below. Contact your hosting company for the correct information to use!

MySQL said: '.$mysql_log.'

', 'Database connection failed'; + echo ''; + } + elseif ($problem == 2) + { + echo '
'; + echo 'Database tables already exist!

+ HESK database tables with '.$hesk_settings['db_pfix'].' prefix already exist in this database!

+ To upgrade an existing HESK installation select Update existing install instead.

+ To install a new copy of HESK in use a unique table prefix.'; + echo '
'; + } + elseif ($problem == 3) + { + echo '
'; + echo 'Old database tables not found!

+ HESK database tables have not been found in this database!

+ To install HESK use the New install option instead.'; + echo '
'; + } + elseif ($problem == 4) + { + echo '
'; + echo 'Version '.HESK_NEW_VERSION.' tables already exist!

+ Your database seems to be compatible with HESK version '.HESK_NEW_VERSION.'

+ To install a new copy of HESK use the New install option instead.'; + echo '
'; + } + ?>