-if (isBooleanConstantAndTrue('mxchange_installed')) {
- // Base URL for redirection
- switch ($_CONFIG['refid_target'])
- {
- case "register":
- $URL = URL."/modules.php?module=index&what=register&refid=";
+if (!isInstalled()) {
+ // You have to install first!
+ redirectToUrl('install.php');
+} // END - if
+
+// Base URL for redirection
+switch (getConfig('refid_target')) {
+ case 'register':
+ $URL = 'modules.php?module=index&what=register&refid=';