- // Redirection should be done here
-}
- else
-{
- // You have to configure first!
- LOAD_URL(URL."/install.php");
+// Do we have a referal id?
+if (!empty($GLOBALS['refid'])) {
+ // We have an refid here. So we simply add it
+ $URL .= $GLOBALS['refid'];
+} else {
+ // No refid so we redirect to the index page
+ $URL = 'index.php';