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
This commit is contained in:
patdenice
2010-03-26 15:44:48 +00:00
parent 502689a319
commit 29a08d54e7
5 changed files with 62 additions and 21 deletions
+17
View File
@@ -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;
}
?>