* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
- $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());
-loadTemplate('member_header', false, array('date_time' => generateDateTime(time(), 1)));
+loadTemplate('member_header', FALSE, array('date_time' => generateDateTime(time(), 1)));
addMenu('member', getActionFromModuleWhat('member', getWhat()), getWhat());
} // END - if
// Disable block-mode again
addMenu('member', getActionFromModuleWhat('member', getWhat()), getWhat());
} // END - if
// Disable block-mode again
if ((isIncludeReadable($inc)) && (isMenuActionValid('member', getAction(), getWhat()))) {
// Requested module is available so we load it
loadInclude($inc);
if ((isIncludeReadable($inc)) && (isMenuActionValid('member', getAction(), getWhat()))) {
// Requested module is available so we load it
loadInclude($inc);
// Right side of content (hint: a good place for 120x600 skyscraper banner!)
loadTemplate('member_content_right');
// Some advertising stuff?
loadTemplate('member_advert');
// Right side of content (hint: a good place for 120x600 skyscraper banner!)
loadTemplate('member_content_right');
// Some advertising stuff?
loadTemplate('member_advert');