return FALSE;
} elseif (!isset($GLOBALS['blacklist_data'][$type][$data])) {
// Check black-list for given email
- $result = SQL_QUERY_ESC("SELECT
+ $result = sqlQueryEscaped("SELECT
`id`,
`data`,
`pool_id`,
), __FUNCTION__, __LINE__);
// Is there an entry?
- if (SQL_NUMROWS($result) == 1) {
+ if (sqlNumRows($result) == 1) {
// Jupp, we got one listed
- $GLOBALS['blacklist_data'][$type][$data] = SQL_FETCHARRAY($result);
+ $GLOBALS['blacklist_data'][$type][$data] = sqlFetchArray($result);
// Mark it as listed
$listed = TRUE;
} // END - if
// Free result
- SQL_FREERESULT($result);
+ sqlFreeResult($result);
} else {
// Is found in cache -> black-listed
$listed = TRUE;
reportBug(__FUNCTION__, __LINE__, 'Blacklisting of type ' . $type . ' is disabled, data=' . $data . ',poolId=' . convertZeroToNull($poolId));
} elseif (!isUrlBlacklisted($data)) {
// Did not find a record so we can add it... :)
- SQL_QUERY_ESC("INSERT INTO
+ sqlQueryEscaped("INSERT INTO
`{?_MYSQL_PREFIX?}_blacklist`
(
`data`,
} // END - if
// Return insert id for debugging/reporting pursposes
- return SQL_INSERT_ID();
+ return getSqlInsertId();
}
// ----------------------------------------------------------------------------