Ignore:
Timestamp:
Mar 26, 2010, 4:44:48 PM (14 years ago)
Author:
patdenice
Message:

Fix php5 apache configuration with install.
Fix php5 apache configuration display.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_install.inc.php

    r5340 r5384  
    139139  }
    140140}
     141
     142function try_db_connection(&$infos, &$errors)
     143{
     144  try
     145  {
     146    $pwg_db_link = pwg_db_connect($_POST['dbhost'], $_POST['dbuser'],
     147                                  $_POST['dbpasswd'], $_POST['dbname']);
     148 
     149    array_push( $infos, l10n('Parameters are correct') );
     150    return true;
     151  }
     152  catch (Exception $e)
     153  {
     154    array_push( $errors, l10n($e->getMessage()));
     155  }
     156  return false;
     157}
    141158?>
Note: See TracChangeset for help on using the changeset viewer.