]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/login.php
Some language strings fixed, renamed. Copyright notice updated
[mailer.git] / inc / modules / login.php
index a37888155c6c1c87cc674cdf27dafea8d025126a..2d9f337dac961605178f980b3e1d8c08d8815c51 100644 (file)
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -41,9 +39,8 @@
 if (!defined('__SECURITY')) {
        die();
 } elseif (!isMember()) {
-       $url = 'modules.php?module=index';
-       if (checkModulePermissions('login') == 'mem_only') $url .= '&code=' . getCode('MODULE_MEMBER_ONLY') . '&mod=' . getModule();
-       redirectToUrl($url);
+       // Redirect to login form with displayed error code
+       redirectToUrl('modules.php?module=index&what=login&code=' . getCode('MODULE_MEMBER_ONLY') . '&mod=' . getModule());
 } // END - if
 
 // Disable block mode by default