// No refid by default
$URL = 'index.php';
+// Invalid request by default
+$ref = 0;
+
// Base URL for redirection
switch (getConfig('refid_target')) {
case 'register':
case 'index':
$URL = 'index.php?refid=';
break;
-}
+} // END - switch
// Get referal ID from ref or refid variable
if (isGetRequestElementSet('ref')) $ref = getRequestElement('ref');
elseif (isGetRequestElementSet('refid')) $ref = getRequestElement('refid');
if (!empty($ref)) {
- // Invalid request by default
- $ref = 0;
-
// Test if nickname or numeric id
if (isExtensionActive('nickname')) {
// Nickname in URL, so load the ID