* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* *
* 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_MEM_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)));
-if ((getConfig('member_menu') == 'Y') || (!isExtensionActive('sql_patches', true))) {
- addMenu('member', getModeAction('member', getWhat()), getWhat());
+if ((isMemberMenuEnabled()) || (!isExtensionActive('sql_patches', TRUE))) {
+ addMenu('member', getActionFromModuleWhat('member', getWhat()), getWhat());
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');