-if (isGetRequestParameterSet('userid')) $url_userid = bigintval(getRequestParameter('userid'));
-if (isGetRequestParameterSet('mailid')) $url_mid = bigintval(getRequestParameter('mailid'));
-if (isGetRequestParameterSet('bonusid')) $url_bid = bigintval(getRequestParameter('bonusid'));
-if (isGetRequestParameterSet('code')) $code = bigintval(getRequestParameter('code'));
-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)) && (!ifFatalErrorsDetected())) {
- // No image? Then output header
- if ($mode != 'img') loadIncludeOnce('inc/header.php');
+if (isGetRequestParameterSet('userid')) $userId = bigintval(getRequestParameter('userid'));
+if (isGetRequestParameterSet('mailid')) $mailId = bigintval(getRequestParameter('mailid'));
+if (isGetRequestParameterSet('bonusid')) $bonusId = bigintval(getRequestParameter('bonusid'));
+if (isGetRequestParameterSet('code')) $code = bigintval(getRequestParameter('code'));
+if (isGetRequestParameterSet('mode')) $mode = getRequestParameter('mode');
+
+// 01 2 21 12 2 2 21 1 2210
+if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalErrorsDetected())) {
+ // No image?
+ if ($mode != 'img') {
+ // ... then output header
+ loadIncludeOnce('inc/header.php');
+ } // END - fi