-// Redirect only to registration page when this script is installed
-if (defined('mxchange_installed') && (mxchange_installed))
-{
- // Base URL for redirection
- $URL = URL."/modules.php?module=index&what=sponsor_reg&refid=";
+// Set module / output mode
+$GLOBALS['__module'] = 'sponsor_ref';
+$GLOBALS['__output_mode'] = -1;
+
+// Load the required file(s)
+require('inc/config-global.php');