From: Roland Häder Date: Mon, 24 Nov 2008 02:07:14 +0000 (+0000) Subject: More deprecated checking boolean expressions fixed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1904897a38323335e3c93a71e6fe8c6fb82bcac4;p=mailer.git More deprecated checking boolean expressions fixed --- diff --git a/inc/databases.php b/inc/databases.php index 4b854c7b9d..64a1c7a286 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "547"); +define('CURR_SVN_REVISION', "548"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/modules/order.php b/inc/modules/order.php index d320cbddae..9d24c7d4ed 100644 --- a/inc/modules/order.php +++ b/inc/modules/order.php @@ -36,7 +36,7 @@ $URL = ""; if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} elseif ((!EXT_IS_ACTIVE("order")) && (!IS_ADMIN())) { +} elseif (!EXT_IS_ACTIVE("order")) ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "order"); return; } elseif (!IS_MEMBER()) { diff --git a/inc/modules/sponsor.php b/inc/modules/sponsor.php index f0450923b3..1067b35903 100644 --- a/inc/modules/sponsor.php +++ b/inc/modules/sponsor.php @@ -34,7 +34,7 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; require($INC); -} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) { +} elseif ((!EXT_IS_ACTIVE("sponsor")) ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE); return; } elseif (!IS_SPONSOR()) { diff --git a/inc/modules/sponsor/.php b/inc/modules/sponsor/.php index 27fcb6f39c..2fcd672091 100644 --- a/inc/modules/sponsor/.php +++ b/inc/modules/sponsor/.php @@ -34,7 +34,7 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; require($INC); -} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) { +} elseif ((!EXT_IS_ACTIVE("sponsor")) ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE); return; } elseif (!IS_SPONSOR()) { diff --git a/inc/modules/sponsor/account.php b/inc/modules/sponsor/account.php index 5032c961bc..5ef7faa807 100644 --- a/inc/modules/sponsor/account.php +++ b/inc/modules/sponsor/account.php @@ -34,7 +34,7 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; require($INC); -} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) { +} elseif ((!EXT_IS_ACTIVE("sponsor")) ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE); return; } elseif (!IS_SPONSOR()) { diff --git a/inc/modules/sponsor/settings.php b/inc/modules/sponsor/settings.php index d8b04c9c83..1db6bbdaf8 100644 --- a/inc/modules/sponsor/settings.php +++ b/inc/modules/sponsor/settings.php @@ -34,7 +34,7 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; require($INC); -} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) { +} elseif ((!EXT_IS_ACTIVE("sponsor")) ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE); return; } elseif (!IS_SPONSOR()) { diff --git a/inc/modules/sponsor/welcome.php b/inc/modules/sponsor/welcome.php index 95f0a3a4a7..49454d7c80 100644 --- a/inc/modules/sponsor/welcome.php +++ b/inc/modules/sponsor/welcome.php @@ -34,7 +34,7 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php"; require($INC); -} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) { +} elseif ((!EXT_IS_ACTIVE("sponsor")) ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE); return; } elseif (!IS_SPONSOR()) {