X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fblacklist_functions.php;h=9097b417720d9411e4070dc855403ba0d2ed20e5;hb=18e3de7e5fc69d4d2a9f99e51b9f0ad516250744;hp=ab92566791f08f1cdec04675c557cb91a804b247;hpb=fc741216b12245da56b5de93d1f967586b0848d7;p=mailer.git diff --git a/inc/libs/blacklist_functions.php b/inc/libs/blacklist_functions.php index ab92566791..9097b41772 100644 --- a/inc/libs/blacklist_functions.php +++ b/inc/libs/blacklist_functions.php @@ -69,7 +69,7 @@ function isGenericBlacklisted ($type, $data) { 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`, @@ -88,16 +88,16 @@ LIMIT 1", ), __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; @@ -133,7 +133,7 @@ function insertGenericInBlacklist ($type, $data, $poolId = NULL, $provider = 'BL 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`, @@ -155,7 +155,7 @@ function insertGenericInBlacklist ($type, $data, $poolId = NULL, $provider = 'BL } // END - if // Return insert id for debugging/reporting pursposes - return SQL_INSERT_ID(); + return getSqlInsertId(); } // ----------------------------------------------------------------------------