$url = 'modules.php?module=index';
// Do we have a referal id?
-if (isValidUserId($GLOBALS['refid'])) {
+if (isReferalIdValid()) {
// We have an refid here. So we simply add it
- $url .= '&what=sponsor_reg&refid=' . $GLOBALS['refid'];
+ $url .= '&what=sponsor_reg&refid=' . determineReferalId();
} // END - if
// Load the URL