}
// Get referral ID from ref or refid variable
- if (!empty($_GET['ref'])) $ref = strip_tags(htmlentities($_GET['ref']));
+ if (!empty($_GET['ref'])) $ref = secureString($_GET['ref']);
elseif (!empty($_GET['refid'])) $ref = bigintval($_GET['refid']);
if (!empty($ref))
list($ref) = SQL_FETCHROW($result);
SQL_FREERESULT($result);
}
+
// Also edit this 0 !
if (empty($ref)) $ref = "0";