X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-booking.php;h=24bd87bf9d3f959d50206f84d5a7d7ac0ca36136;hb=9a7e55141378f5323480fcbf33b033d2750392f4;hp=af404ee4efb2891f786b5d2ab3287554a102963c;hpb=d2d53a026e13f57c3b38cbd0ff31843cffb06ad7;p=mailer.git diff --git a/inc/modules/member/what-booking.php b/inc/modules/member/what-booking.php index af404ee4ef..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, 2010 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,13 +37,22 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } elseif (!isMember()) { redirectToIndexMemberOnlyModule(); } // Add description as navigation point -addMenuDescription('member', __FILE__); +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] ?>