-// Is the script installed?
-if (defined('mxchange_installed') && (mxchange_installed))
-{
- // Simply redirect... :-)
- LOAD_URL(URL."/modules.php?module=index&what=login");
- // Redirection should be done here
+// Is this a member?
+if (isMember()) {
+ // Then redirect into login area
+ redirectToUrl('modules.php?module=login');
+} else {
+ // Guests will be redirected to login form
+ redirectToUrl('modules.php?module=index&what=login');