From fb573d4c3d981d52fd969a6d7167d8dc839be688 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 11 Aug 2011 22:37:09 +0000 Subject: [PATCH] 'what' files should be loaded only once --- inc/modules/admin/action- | 2 +- inc/modules/admin/action-admins.php | 2 +- inc/modules/admin/action-bank.php | 2 +- inc/modules/admin/action-country.php | 2 +- inc/modules/admin/action-coupon.php | 2 +- inc/modules/admin/action-doubler.php | 2 +- inc/modules/admin/action-email.php | 2 +- inc/modules/admin/action-forced.php | 2 +- inc/modules/admin/action-funcoins.php | 2 +- inc/modules/admin/action-grade.php | 2 +- inc/modules/admin/action-holiday.php | 2 +- inc/modules/admin/action-login.php | 2 +- inc/modules/admin/action-menu.php | 2 +- inc/modules/admin/action-misc.php | 2 +- inc/modules/admin/action-mods.php | 2 +- inc/modules/admin/action-network.php | 2 +- inc/modules/admin/action-newsletter.php | 2 +- inc/modules/admin/action-payouts.php | 2 +- inc/modules/admin/action-primera.php | 2 +- inc/modules/admin/action-rallye.php | 2 +- inc/modules/admin/action-repair.php | 2 +- inc/modules/admin/action-setup.php | 2 +- inc/modules/admin/action-sponsor.php | 2 +- inc/modules/admin/action-stats.php | 2 +- inc/modules/admin/action-surfbar.php | 2 +- inc/modules/admin/action-task.php | 2 +- inc/modules/admin/action-theme.php | 2 +- inc/modules/admin/action-transfer.php | 2 +- inc/modules/admin/action-user.php | 2 +- inc/modules/admin/action-wernis.php | 2 +- inc/modules/guest/action- | 2 +- inc/modules/guest/action-admin.php | 2 +- inc/modules/guest/action-main.php | 2 +- inc/modules/guest/action-members.php | 2 +- inc/modules/guest/action-sponsor.php | 2 +- inc/modules/member/action- | 2 +- inc/modules/member/action-account.php | 2 +- inc/modules/member/action-bank.php | 2 +- inc/modules/member/action-coupon.php | 2 +- inc/modules/member/action-earn.php | 2 +- inc/modules/member/action-extras.php | 2 +- inc/modules/member/action-logout.php | 2 +- inc/modules/member/action-main.php | 2 +- inc/modules/member/action-order.php | 2 +- inc/modules/member/action-rals.php | 2 +- inc/modules/member/action-stats.php | 2 +- inc/modules/member/action-surfbar.php | 2 +- 47 files changed, 47 insertions(+), 47 deletions(-) diff --git a/inc/modules/admin/action- b/inc/modules/admin/action- index ea3f1ceae6..c2fd484e5f 100644 --- a/inc/modules/admin/action- +++ b/inc/modules/admin/action- @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-admins.php b/inc/modules/admin/action-admins.php index 91ee4ccb81..1fc5202128 100644 --- a/inc/modules/admin/action-admins.php +++ b/inc/modules/admin/action-admins.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-bank.php b/inc/modules/admin/action-bank.php index d8955cde38..c45a6e6272 100644 --- a/inc/modules/admin/action-bank.php +++ b/inc/modules/admin/action-bank.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-country.php b/inc/modules/admin/action-country.php index 5e49c0c8c1..9b05efbcda 100644 --- a/inc/modules/admin/action-country.php +++ b/inc/modules/admin/action-country.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-coupon.php b/inc/modules/admin/action-coupon.php index bf59ca68bf..c46aadc8d1 100644 --- a/inc/modules/admin/action-coupon.php +++ b/inc/modules/admin/action-coupon.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-doubler.php b/inc/modules/admin/action-doubler.php index ff2a0b9678..38cec6ab01 100644 --- a/inc/modules/admin/action-doubler.php +++ b/inc/modules/admin/action-doubler.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { // "what file" not found addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); diff --git a/inc/modules/admin/action-email.php b/inc/modules/admin/action-email.php index bdc4ee714f..52ce5e4b63 100644 --- a/inc/modules/admin/action-email.php +++ b/inc/modules/admin/action-email.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-forced.php b/inc/modules/admin/action-forced.php index f3398a21be..702ba8ca99 100644 --- a/inc/modules/admin/action-forced.php +++ b/inc/modules/admin/action-forced.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-funcoins.php b/inc/modules/admin/action-funcoins.php index 6a3d778778..8fe81f5652 100644 --- a/inc/modules/admin/action-funcoins.php +++ b/inc/modules/admin/action-funcoins.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-grade.php b/inc/modules/admin/action-grade.php index 5b1941cd81..dee21d9a1c 100644 --- a/inc/modules/admin/action-grade.php +++ b/inc/modules/admin/action-grade.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-holiday.php b/inc/modules/admin/action-holiday.php index d85316b1bc..655756ff76 100644 --- a/inc/modules/admin/action-holiday.php +++ b/inc/modules/admin/action-holiday.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-login.php b/inc/modules/admin/action-login.php index 640cddb78c..ea0ad36f94 100644 --- a/inc/modules/admin/action-login.php +++ b/inc/modules/admin/action-login.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-menu.php b/inc/modules/admin/action-menu.php index b9a973b643..8935f93e54 100644 --- a/inc/modules/admin/action-menu.php +++ b/inc/modules/admin/action-menu.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-misc.php b/inc/modules/admin/action-misc.php index 1fe04775ae..4c4657c20a 100644 --- a/inc/modules/admin/action-misc.php +++ b/inc/modules/admin/action-misc.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-mods.php b/inc/modules/admin/action-mods.php index 28a741c0d0..4f4f67cb07 100644 --- a/inc/modules/admin/action-mods.php +++ b/inc/modules/admin/action-mods.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-network.php b/inc/modules/admin/action-network.php index f3bc2d7d5f..c58120631f 100644 --- a/inc/modules/admin/action-network.php +++ b/inc/modules/admin/action-network.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-newsletter.php b/inc/modules/admin/action-newsletter.php index 69972ce57c..8016991c32 100644 --- a/inc/modules/admin/action-newsletter.php +++ b/inc/modules/admin/action-newsletter.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-payouts.php b/inc/modules/admin/action-payouts.php index d2adb7f789..5980ffee50 100644 --- a/inc/modules/admin/action-payouts.php +++ b/inc/modules/admin/action-payouts.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-primera.php b/inc/modules/admin/action-primera.php index 14f44bfb13..b437bc1dd9 100644 --- a/inc/modules/admin/action-primera.php +++ b/inc/modules/admin/action-primera.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-rallye.php b/inc/modules/admin/action-rallye.php index 797689a374..868b27ea3e 100644 --- a/inc/modules/admin/action-rallye.php +++ b/inc/modules/admin/action-rallye.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-repair.php b/inc/modules/admin/action-repair.php index 3dc95a041c..2b7cbcbb78 100644 --- a/inc/modules/admin/action-repair.php +++ b/inc/modules/admin/action-repair.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-setup.php b/inc/modules/admin/action-setup.php index 622cdd8873..31f86585cd 100644 --- a/inc/modules/admin/action-setup.php +++ b/inc/modules/admin/action-setup.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-sponsor.php b/inc/modules/admin/action-sponsor.php index 36c0787753..e3fddaf700 100644 --- a/inc/modules/admin/action-sponsor.php +++ b/inc/modules/admin/action-sponsor.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-stats.php b/inc/modules/admin/action-stats.php index d00ead7db4..f4234e77dd 100644 --- a/inc/modules/admin/action-stats.php +++ b/inc/modules/admin/action-stats.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-surfbar.php b/inc/modules/admin/action-surfbar.php index d1acbb3f7f..53faa29346 100644 --- a/inc/modules/admin/action-surfbar.php +++ b/inc/modules/admin/action-surfbar.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-task.php b/inc/modules/admin/action-task.php index a16134e896..f4267c41b0 100644 --- a/inc/modules/admin/action-task.php +++ b/inc/modules/admin/action-task.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-theme.php b/inc/modules/admin/action-theme.php index 5cae86c8e1..65eb3c2857 100644 --- a/inc/modules/admin/action-theme.php +++ b/inc/modules/admin/action-theme.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-transfer.php b/inc/modules/admin/action-transfer.php index d33539e958..cc193c9d62 100644 --- a/inc/modules/admin/action-transfer.php +++ b/inc/modules/admin/action-transfer.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-user.php b/inc/modules/admin/action-user.php index 2b64d84059..605e38d4d4 100644 --- a/inc/modules/admin/action-user.php +++ b/inc/modules/admin/action-user.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/admin/action-wernis.php b/inc/modules/admin/action-wernis.php index cff2ef087e..b518380549 100644 --- a/inc/modules/admin/action-wernis.php +++ b/inc/modules/admin/action-wernis.php @@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__); $inc = sprintf("inc/modules/admin/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the admin action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}'); } diff --git a/inc/modules/guest/action- b/inc/modules/guest/action- index ea497eb316..dab55af94c 100644 --- a/inc/modules/guest/action- +++ b/inc/modules/guest/action- @@ -55,7 +55,7 @@ if ((!isExtensionActive('')) && (!isAdmin())) { $inc = sprintf("inc/modules/guest/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the guest action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--GUEST_WHAT_404--}'); } diff --git a/inc/modules/guest/action-admin.php b/inc/modules/guest/action-admin.php index 77d8e1de7c..07060b2c1a 100644 --- a/inc/modules/guest/action-admin.php +++ b/inc/modules/guest/action-admin.php @@ -50,7 +50,7 @@ addYouAreHereLink('guest', __FILE__); $inc = sprintf("inc/modules/guest/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the guest action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--GUEST_WHAT_404--}'); } diff --git a/inc/modules/guest/action-main.php b/inc/modules/guest/action-main.php index c18a7eafc7..500698e450 100644 --- a/inc/modules/guest/action-main.php +++ b/inc/modules/guest/action-main.php @@ -50,7 +50,7 @@ addYouAreHereLink('guest', __FILE__); $inc = sprintf("inc/modules/guest/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the guest action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--GUEST_WHAT_404--}'); } diff --git a/inc/modules/guest/action-members.php b/inc/modules/guest/action-members.php index 1b51d4843c..2672040b3f 100644 --- a/inc/modules/guest/action-members.php +++ b/inc/modules/guest/action-members.php @@ -50,7 +50,7 @@ addYouAreHereLink('guest', __FILE__); $inc = sprintf("inc/modules/guest/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the guest action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--GUEST_WHAT_404--}'); } diff --git a/inc/modules/guest/action-sponsor.php b/inc/modules/guest/action-sponsor.php index 4a7824a240..ad6c42e52a 100644 --- a/inc/modules/guest/action-sponsor.php +++ b/inc/modules/guest/action-sponsor.php @@ -54,7 +54,7 @@ if ((!isExtensionActive('sponsor')) && (!isAdmin())) { $inc = sprintf("inc/modules/guest/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the guest action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--GUEST_WHAT_404--}'); } diff --git a/inc/modules/member/action- b/inc/modules/member/action- index ad49231161..b8acbcf2a2 100644 --- a/inc/modules/member/action- +++ b/inc/modules/member/action- @@ -57,7 +57,7 @@ if ((!isExtensionActive('')) && (!isAdmin())) { $inc = sprintf("inc/modules/member/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}'); } diff --git a/inc/modules/member/action-account.php b/inc/modules/member/action-account.php index b1b0510aa5..aa2e72f0bc 100644 --- a/inc/modules/member/action-account.php +++ b/inc/modules/member/action-account.php @@ -52,7 +52,7 @@ addYouAreHereLink('member', __FILE__); $inc = sprintf("inc/modules/member/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}'); } diff --git a/inc/modules/member/action-bank.php b/inc/modules/member/action-bank.php index 35892aec9b..8e151921d5 100644 --- a/inc/modules/member/action-bank.php +++ b/inc/modules/member/action-bank.php @@ -57,7 +57,7 @@ if ((!isExtensionActive('bank')) && (!isAdmin())) { $inc = sprintf("inc/modules/member/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}'); } diff --git a/inc/modules/member/action-coupon.php b/inc/modules/member/action-coupon.php index 568644eb2e..326da6372a 100644 --- a/inc/modules/member/action-coupon.php +++ b/inc/modules/member/action-coupon.php @@ -57,7 +57,7 @@ if ((!isExtensionActive('coupon')) && (!isAdmin())) { $inc = sprintf("inc/modules/member/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}', getWhat()); } diff --git a/inc/modules/member/action-earn.php b/inc/modules/member/action-earn.php index 5d24cdf3d6..e1092c19cd 100644 --- a/inc/modules/member/action-earn.php +++ b/inc/modules/member/action-earn.php @@ -52,7 +52,7 @@ addYouAreHereLink('member', __FILE__); $inc = sprintf("inc/modules/member/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}', getWhat()); } diff --git a/inc/modules/member/action-extras.php b/inc/modules/member/action-extras.php index b24b652396..fc00eb7965 100644 --- a/inc/modules/member/action-extras.php +++ b/inc/modules/member/action-extras.php @@ -52,7 +52,7 @@ addYouAreHereLink('member', __FILE__); $inc = sprintf("inc/modules/member/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}'); } diff --git a/inc/modules/member/action-logout.php b/inc/modules/member/action-logout.php index 10b1f0e3ba..0ce73a6416 100644 --- a/inc/modules/member/action-logout.php +++ b/inc/modules/member/action-logout.php @@ -52,7 +52,7 @@ addYouAreHereLink('member', __FILE__); $inc = sprintf("inc/modules/member/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}'); } diff --git a/inc/modules/member/action-main.php b/inc/modules/member/action-main.php index 04f3b7c04d..b5f87a2172 100644 --- a/inc/modules/member/action-main.php +++ b/inc/modules/member/action-main.php @@ -52,7 +52,7 @@ addYouAreHereLink('member', __FILE__); $inc = sprintf("inc/modules/member/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}'); } diff --git a/inc/modules/member/action-order.php b/inc/modules/member/action-order.php index 35e0e23be8..a20bc016b3 100644 --- a/inc/modules/member/action-order.php +++ b/inc/modules/member/action-order.php @@ -57,7 +57,7 @@ if ((!isExtensionActive('order')) && (!isAdmin())) { $inc = sprintf("inc/modules/member/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}'); } diff --git a/inc/modules/member/action-rals.php b/inc/modules/member/action-rals.php index ea9ce55c44..c5042d4880 100644 --- a/inc/modules/member/action-rals.php +++ b/inc/modules/member/action-rals.php @@ -52,7 +52,7 @@ addYouAreHereLink('member', __FILE__); $inc = sprintf("inc/modules/member/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}'); } diff --git a/inc/modules/member/action-stats.php b/inc/modules/member/action-stats.php index 281b4e6fd0..d343e01c00 100644 --- a/inc/modules/member/action-stats.php +++ b/inc/modules/member/action-stats.php @@ -52,7 +52,7 @@ addYouAreHereLink('member', __FILE__); $inc = sprintf("inc/modules/member/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}'); } diff --git a/inc/modules/member/action-surfbar.php b/inc/modules/member/action-surfbar.php index 09bc3a02c7..ab9b4dd1e8 100644 --- a/inc/modules/member/action-surfbar.php +++ b/inc/modules/member/action-surfbar.php @@ -57,7 +57,7 @@ if ((!isExtensionActive('surfbar')) && (!isAdmin())) { $inc = sprintf("inc/modules/member/what-%s.php", getWhat()); if (isIncludeReadable($inc)) { // Ok, we finally load the member action module - loadInclude($inc); + loadIncludeOnce($inc); } else { addFatalMessage(__FILE__, __LINE__, '{--MEMBER_WHAT_404--}'); } -- 2.39.5