X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-unlock_emails.php;h=09af56904d4d48b99c3be3651817e7f9ff11a837;hb=49248176a5638be80b148ef55d0dc8c334522bf3;hp=7411003f73633a4828db2c27dd3ae6aa0a0fbf50;hpb=81bfbcd72e424060ea1223b49ad92fcfa150f361;p=mailer.git diff --git a/inc/modules/admin/what-unlock_emails.php b/inc/modules/admin/what-unlock_emails.php index 7411003f73..09af56904d 100644 --- a/inc/modules/admin/what-unlock_emails.php +++ b/inc/modules/admin/what-unlock_emails.php @@ -79,7 +79,7 @@ INNER JOIN `{!_MYSQL_PREFIX!}_payments` AS pay ON po.payment_id=pay.id WHERE po.id=%s LIMIT 1", - array($id), __FILE__, __LINE__); + array($id), __FILE__, __LINE__); // Update wents fine? if (SQL_NUMROWS($result) == 1) { @@ -99,7 +99,7 @@ LIMIT 1", if ((GET_EXT_VERSION('bonus') >= '0.4.4') && (getConfig('bonus_active') == 'Y')) { // Add points directly SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET bonus_order=bonus_order+".getConfig('bonus_order')." WHERE userid=%s LIMIT 1", - array(bigintval($DATA['sender'])), __FILE__, __LINE__); + array(bigintval($DATA['sender'])), __FILE__, __LINE__); // Subtract bonus points from system BONUS_POINTS_HANDLER(getConfig('bonus_order')); @@ -113,7 +113,7 @@ LIMIT 1", // Unlock selected email SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_pool` SET data_type='NEW' WHERE `id`=%s AND data_type='ADMIN' LIMIT 1", - array($id), __FILE__, __LINE__); + array($id), __FILE__, __LINE__); } // END - if } // END - foreach @@ -136,7 +136,7 @@ LIMIT 1", // Load URL and subject from pool $result = SQL_QUERY_ESC("SELECT url, subject, sender FROM `{!_MYSQL_PREFIX!}_pool` WHERE `id`=%s LIMIT 1", - array($id), __FILE__, __LINE__); + array($id), __FILE__, __LINE__); // Load data $DATA = SQL_FETCHARRAY($result); @@ -149,11 +149,11 @@ LIMIT 1", sendEmail($DATA['sender'], getMessage('MEMBER_ORDER_REJECTED'), $msg_user); // If you do not enter an URL to redirect to, your URL will be set! - if ((!REQUEST_ISSET_POST(('redirect'))) || (REQUEST_POST('redirect') == "http://")) REQUEST_SET_POST('redirect', constant('URL')); + if ((!REQUEST_ISSET_POST(('redirect'))) || (REQUEST_POST('redirect') == 'http://')) REQUEST_SET_POST('redirect', constant('URL')); // Redirect URL SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_pool` SET url='%s', data_type='NEW' WHERE `id`=%s LIMIT 1", - array(REQUEST_POST('redirect'), $id),__FILE__, __LINE__); + array(REQUEST_POST('redirect'), $id),__FILE__, __LINE__); // Prepare data for the row template $content = array( @@ -182,11 +182,11 @@ LIMIT 1", // Lookup in blacklist $result = SQL_QUERY_ESC("SELECT `id` FROM `{!_MYSQL_PREFIX!}_url_blacklist` WHERE `url`='%s' LIMIT 1", - array($url), __FILE__, __LINE__); + array($url), __FILE__, __LINE__); if (SQL_NUMROWS($result) == 0) { // Did not find a record so we can add it... :) SQL_QUERY_ESC("INSERT INTO `{!_MYSQL_PREFIX!}_url_blacklist` (`url`,`pool_id`) VALUES ('%s',%s)", - array($url, $id), __FILE__, __LINE__); + array($url, $id), __FILE__, __LINE__); } // END - if // Free memory @@ -226,7 +226,7 @@ LIMIT 1", define('__UNLOCK_ROWS', $OUT); // Prepare rejection URL - $REJECT = "http://"; + $REJECT = 'http://'; if (GET_EXT_VERSION('other') >= '0.1.6') $REJECT = getConfig('reject_url'); define('__REJECT_URL', $REJECT);