-// Redirect only to registration page when this script is installed
-if (isInstalled()) {
- // Base URL for redirection
- $URL = 'modules.php?module=index&what=sponsor_reg&refid=';
-
- // Get referal ID from ref or refid variable
- $ref = 0;
- if (REQUEST_ISSET_GET(('ref'))) $ref = bigintval(REQUEST_GET('ref'));
- elseif (REQUEST_ISSET_GET(('refid'))) $ref = bigintval(REQUEST_GET('refid'));
-
- if (!empty($ref)) {
- // We have an refid here. So we simply add it
- $URL .= $ref;
- } else {
- // No refid so we redirect to the index page
- $URL = 'index.php';
- }