X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=mailid_top.php;h=29a08b5f24b4a4a7bcbc0dd8f7fedab7bf4e7274;hp=38349b669cc7db5bfd3d73eb2df37f0d5659c1a6;hb=d9f35786166902b9bc3f402d4f2abeed5ae0528d;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa diff --git a/mailid_top.php b/mailid_top.php index 38349b669c..29a08b5f24 100644 --- a/mailid_top.php +++ b/mailid_top.php @@ -74,7 +74,7 @@ if (isGetRequestParameterSet('code')) $code = bigintval(getRequestParam if (isGetRequestParameterSet('mode')) $mode = getRequestParameter('mode'); // 01 1 12 2 2 21 1 22 10 -if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErrors() == '0')) { +if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (!ifFatalErrorsDetected())) { // No image? Then output header if ($mode != 'img') loadIncludeOnce('inc/header.php'); @@ -194,7 +194,7 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr array($url_mid), __FILE__, __LINE__); // Update mediadata as well - if (getExtensionVersion('mediadata') >= '0.0.4') { + if (isExtensionInstalledAndNewer('mediadata', '0.0.4')) { // Update database updateMediadataEntry(array('total_clicks', 'normal_clicks'), 'add', 1); } // END - if @@ -206,7 +206,7 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr array($url_bid), __FILE__, __LINE__); // Update mediadata as well - if (getExtensionVersion('mediadata') >= '0.0.4') { + if (isExtensionInstalledAndNewer('mediadata', '0.0.4')) { // Update database updateMediadataEntry(array('total_clicks', 'bonus_clicks'), 'add', 1); } // END - if @@ -224,13 +224,13 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr // Only when user extension = v0.1.2: Update mails-confirmed counter // @TODO Rewrite these blocks to filter - if (getExtensionVersion('user') >= '0.1.2') { + if (isExtensionInstalledAndNewer('user', '0.1.2')) { // Update counter SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET mails_confirmed=mails_confirmed + 1 WHERE `userid`=%s LIMIT 1", array($url_userid), __FILE__, __LINE__); // Update random confirmed as well? - if (getExtensionVersion('user') >= '0.3.4') { + if (isExtensionInstalledAndNewer('user', '0.3.4')) { // Update second counter SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET rand_confirmed=rand_confirmed + 1 WHERE `userid`=%s LIMIT 1", array($url_userid), __FILE__, __LINE__); @@ -263,7 +263,7 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr addPointsThroughReferalSystem('mailid_okay', $url_userid, $payment, false, 0, $locked); // Shall I add bonus points for "turbo clickers" ? - if (getExtensionVersion('bonus') >= '0.2.2') { + if (isExtensionInstalledAndNewer('bonus', '0.2.2')) { // Is an active-rallye running and this is not a notification mail? if ((getConfig('bonus_active') == 'Y') && ($notify != 'Y')) { // Shall I exclude the webmaster's own userid from the active-rallye?