X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=mailid_top.php;h=b31eedf9348888cc34506db1e6e65d2680ca5e89;hp=6a4e32f4a5430ae5b546c96d2062b8a0bfbc24be;hb=9750e22712b32936b061694db37e5c9188aef73e;hpb=9f6c30cc0e06098171d773d671292081ecee3d29 diff --git a/mailid_top.php b/mailid_top.php index 6a4e32f4a5..b31eedf934 100644 --- a/mailid_top.php +++ b/mailid_top.php @@ -59,10 +59,10 @@ redirectOnUninstalledExtension('mailid'); redirectOnUninstalledExtension('other'); // Init variables -$url_userid = 0; -$url_bid = 0; -$url_mid = 0; -$code = 0; +$url_userid = '0'; +$url_bid = '0'; +$url_mid = '0'; +$code = '0'; $mode = ''; // Secure all data @@ -73,7 +73,7 @@ if (isGetRequestElementSet('code')) $code = bigintval(getRequestElement if (isGetRequestElementSet('mode')) $mode = getRequestElement('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)) && (getTotalFatalErrors() == '0')) { // No image? Then output header if ($mode != 'img') loadIncludeOnce('inc/header.php'); @@ -125,10 +125,10 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr SQL_FREERESULT($result_mailid); // Set sender to 0 when we have a bonus mail - if ($ltype == 'BONUS') $sender = 0; + if ($ltype == 'BONUS') $sender = '0'; // Is the user id valid? - if (fetchUserData($url_userId) === true) { + if (fetchUserData($url_userid) === true) { // Is the user status CONFIRMED? if (getUserData('status') == 'CONFIRMED') { // User has confirmed his account so we can procede... @@ -171,9 +171,9 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr // Is this entry valid? if ($isValid === true) { - if (($time == 0) && ($payment > 0)) $time = 1; + if (($time == '0') && ($payment > 0)) $time = 1; if (($time > 0) && ($payment > 0)) { - $img_code = 0; + $img_code = '0'; if (!empty($code)) { // Generate code $img_code = generateRandomCode(getConfig('code_length'), $code, $url_userid, $urlId); @@ -183,7 +183,7 @@ if (($url_userid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErr switch ($mode) { case 'add': // Init stats data - $stats_data = 0; + $stats_data = '0'; // Count clicks // @TODO Rewrite this to a filter