* -------------------------------------------------------------------- *
* 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());
-if ((getConfig('member_menu') == 'Y') || (!isExtensionActive('sql_patches', true))) {
- addMenu('member', getModeAction('member', getWhat()), getWhat());
+if ((getConfig('member_menu') == 'Y') || (!isExtensionActive('sql_patches', TRUE))) {
+ addMenu('member', getActionFromModuleWhat('member', getWhat()), getWhat());
$inc = sprintf("inc/modules/member/action-%s.php", $action);
if ((isIncludeReadable($inc)) && (isMenuActionValid('member', getAction(), getWhat()))) {
$inc = sprintf("inc/modules/member/action-%s.php", $action);
if ((isIncludeReadable($inc)) && (isMenuActionValid('member', getAction(), getWhat()))) {
// 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');