-// Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) )
-require_once("inc/libs/security_functions.php");
+// Load security stuff here
+require('inc/libs/security_functions.php');
+
+// Init start time
+$GLOBALS['__start_time'] = microtime(TRUE);
+
+// Set module / output mode
+$GLOBALS['__module'] = 'sponsor_confirm';
+$GLOBALS['__output_mode'] = -1;
+
+// Initialize application
+require('inc/init.php');
+
+// Set content type for e.g. search engines
+setContentType('text/html');
+
+// No hash provided by default
+$url = 'modules.php?module=index';
+
+// Is there a hash?
+if (isGetRequestElementSet('hash')) {
+ // We have an refid here. So we simply add it
+ $url = 'modules.php?module=index&what=sponsor_login&hash=' . getRequestElement('hash');
+} // END - if