mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 03:33:01 +02:00
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:
@@ -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;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user