From 29a08d54e79a49661ab17184b40c4ae872e1976e Mon Sep 17 00:00:00 2001 From: patdenice Date: Fri, 26 Mar 2010 15:44:48 +0000 Subject: Fix php5 apache configuration with install. Fix php5 apache configuration display. git-svn-id: http://piwigo.org/svn/trunk@5384 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions_install.inc.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'admin') diff --git a/admin/include/functions_install.inc.php b/admin/include/functions_install.inc.php index 8d00a4d36..d55f4e057 100644 --- a/admin/include/functions_install.inc.php +++ b/admin/include/functions_install.inc.php @@ -138,4 +138,21 @@ function activate_all_themes() $themes->perform_action('activate', $theme_id); } } + +function try_db_connection(&$infos, &$errors) +{ + try + { + $pwg_db_link = pwg_db_connect($_POST['dbhost'], $_POST['dbuser'], + $_POST['dbpasswd'], $_POST['dbname']); + + array_push( $infos, l10n('Parameters are correct') ); + return true; + } + catch (Exception $e) + { + array_push( $errors, l10n($e->getMessage())); + } + return false; +} ?> \ No newline at end of file -- cgit v1.2.3