?> </td> </tr> <tr> <td>Server database name:</td> <td><?php echo InstallUtilities::installTextField('mDatabase', 'core_trans'); ?> </td> </tr> <tr> <td colspan=2> <div class="noteTxt"> Testing server connection: <?php $sql = InstallUtilities::dbTestConnect(CoreLocal::get('mServer'), CoreLocal::get('mDBMS'), CoreLocal::get('mDatabase'), CoreLocal::get('mUser'), CoreLocal::get('mPass')); if ($sql === False) { echo "<span class='fail'>Failed</span>"; echo '<div class="db_hints" style="margin-left:25px;width:350px;">'; if (!function_exists('socket_create')) { echo '<i>Try enabling PHP\'s socket extension in php.ini for better diagnostics</i>'; } elseif (@MiscLib::pingport(CoreLocal::get('mServer'), CoreLocal::get('DBMS'))) { echo '<i>Database found at ' . CoreLocal::get('mServer') . '. Verify username and password and/or database account permissions.</i>'; } else { echo '<i>Database does not appear to be listening for connections on ' . CoreLocal::get('mServer') . '. Verify host is correct, database is running and firewall is allowing connections.</i>'; } echo '</div>'; } else { echo "<span class='success'>Succeeded</span><br />";