From af81919412fa17e25c8159d94b51f5faeb890a55 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 7 Oct 2008 19:09:29 +0000 Subject: [PATCH] Birthday extension secured --- birthday_confirm.php | 6 ++++++ inc/databases.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/birthday_confirm.php b/birthday_confirm.php index 4d2b0058ce..cb36e954f3 100644 --- a/birthday_confirm.php +++ b/birthday_confirm.php @@ -44,6 +44,12 @@ $GLOBALS['module'] = "birthday_confirm"; $CSS = -1; // Load the required file(s) require ("inc/config.php"); +// Is the "birthday" extension active? +if (!EXT_IS_ACTIVE("birthday")) { + // Redirect to index + LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM."&ext=birthday"); +} // END - if + // Is the script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { // Script is installed so let's check for his confirmation link... diff --git a/inc/databases.php b/inc/databases.php index c7a135cf0a..f38f519064 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "478"); +define('CURR_SVN_REVISION', "479"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); -- 2.39.2