unsetSqlLinkUp(__FUNCTION__, __LINE__);
// Try to connect to the database
- SQL_CONNECT(postRequestElement('mysql_host'), postRequestElement('mysql_login'), postRequestElement('mysql_password1'), __FUNCTION__, __LINE__);
+ sqlConnectToDatabase(postRequestElement('mysql_host'), postRequestElement('mysql_login'), postRequestElement('mysql_password1'), __FUNCTION__, __LINE__);
// Is the link up
- if (!SQL_IS_LINK_UP()) {
+ if (!isSqlLinkUp()) {
// Cannot connect to database
$GLOBALS['installer_post_error'][$currentTab] = '{--INSTALLER_POST_DATABASE_CONNECT_ERROR--}';
array_push($GLOBALS['installer_failed_fields'][$currentTab], 'mysql_login', 'mysql_password1', 'mysql_password2');
} // END - if
// Then attempt to select the database
- if (!SQL_SELECT_DB(postRequestElement('mysql_dbase'), __FUNCTION__, __LINE__)) {
+ if (!sqlSelectDatabase(postRequestElement('mysql_dbase'), __FUNCTION__, __LINE__)) {
// Could not find database
$GLOBALS['installer_post_error'][$currentTab] = '{--INSTALLER_POST_DATABASE_SELECT_FAILED--}';
array_push($GLOBALS['installer_failed_fields'][$currentTab], 'mysql_dbase');
// Disconnect here, we don't need idle database connections laying around
- SQL_CLOSE(__FUNCTION__, __LINE__);
+ sqlCloseLink(__FUNCTION__, __LINE__);
// Abort here
return FALSE;
array_push($GLOBALS['installer_failed_fields'][$currentTab], 'mysql_engine');
// Disconnect here, we don't need idle database connections laying around
- SQL_CLOSE(__FUNCTION__, __LINE__);
+ sqlCloseLink(__FUNCTION__, __LINE__);
// Abort here
return FALSE;
array_push($GLOBALS['installer_failed_fields'][$currentTab], 'mysql_engine');
// Disconnect here, we don't need idle database connections laying around
- SQL_CLOSE(__FUNCTION__, __LINE__);
+ sqlCloseLink(__FUNCTION__, __LINE__);
// Abort here
return FALSE;
array_push($GLOBALS['installer_failed_fields'][$currentTab], 'mysql_engine');
// Disconnect here, we don't need idle database connections laying around
- SQL_CLOSE(__FUNCTION__, __LINE__);
+ sqlCloseLink(__FUNCTION__, __LINE__);
// Abort here
return FALSE;
$isValid = (count($tables) == $missingTables);
// Disconnect here, we don't need idle database connections laying around
- SQL_CLOSE(__FUNCTION__, __LINE__);
+ sqlCloseLink(__FUNCTION__, __LINE__);
// If the status is true, disconnect the database
if ($isValid === FALSE) {