X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-booking.php;h=24bd87bf9d3f959d50206f84d5a7d7ac0ca36136;hb=9a7e55141378f5323480fcbf33b033d2750392f4;hp=27a9d9e26656e6b8b2421b2efffde85d7ec9fcf8;hpb=2e715eb7f3f8ca8d259aacb4cbbddde7d9d18e01;p=mailer.git diff --git a/inc/modules/member/what-booking.php b/inc/modules/member/what-booking.php index 27a9d9e266..24bd87bf9d 100644 --- a/inc/modules/member/what-booking.php +++ b/inc/modules/member/what-booking.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 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 * @@ -37,7 +37,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } elseif (!isMember()) { redirectToIndexMemberOnlyModule(); } @@ -45,5 +45,14 @@ if (!defined('__SECURITY')) { // Add description as navigation point addYouAreHereLink('member', __FILE__); +// Continue only if the proper extension is active (admins can always continue) +if ((!isExtensionActive('booking')) && (!isAdmin())) { + displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=booking%}'); + return; +} // END - if + +// Load XML template +doGenericXmlTemplateCallback('member_list_booking'); + // [EOF] ?>