From: Roland Häder Date: Wed, 28 Oct 2009 04:11:19 +0000 (+0000) Subject: All JavaScript files can now secured against calls without proper installation of... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d676b8ce57da4e5fc1de16f55aacbeb5dcef8e75;p=mailer.git All JavaScript files can now secured against calls without proper installation of required extension --- diff --git a/inc/js/js- b/inc/js/js- index 56b4ffdacc..037857acdd 100644 --- a/inc/js/js- +++ b/inc/js/js- @@ -39,7 +39,9 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} // END - if +} elseif (!isExtensionActive('')) { + return; +} // [EOF] ?> diff --git a/inc/js/js-order_send.php b/inc/js/js-order_send.php index b44d43d8fe..916faaba60 100644 --- a/inc/js/js-order_send.php +++ b/inc/js/js-order_send.php @@ -39,7 +39,9 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} // END - if +} elseif (!isExtensionActive('order')) { + return; +} // Simply load the JavaScript here loadTemplate('js_order_sent'); diff --git a/inc/js/js-surfbar_member_book.php b/inc/js/js-surfbar_member_book.php index 1b74ecc5f1..33085a33c8 100644 --- a/inc/js/js-surfbar_member_book.php +++ b/inc/js/js-surfbar_member_book.php @@ -39,7 +39,9 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} // END - if +} elseif (!isExtensionActive('surfbar')) { + return; +} // Simply load the JavaScript here loadTemplate('js_surfbar_member_book'); diff --git a/inc/js/js-surfbar_member_edit.php b/inc/js/js-surfbar_member_edit.php index 6d0c53a54a..cffc6b92e5 100644 --- a/inc/js/js-surfbar_member_edit.php +++ b/inc/js/js-surfbar_member_edit.php @@ -39,7 +39,9 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} // END - if +} elseif (!isExtensionActive('surfbar')) { + return; +} // Prepare content $content = array( diff --git a/inc/js/js-surfbar_stopped.php b/inc/js/js-surfbar_stopped.php index 69c25416f8..2f3c987b21 100644 --- a/inc/js/js-surfbar_stopped.php +++ b/inc/js/js-surfbar_stopped.php @@ -39,7 +39,9 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} // END - if +} elseif (!isExtensionActive('surfbar')) { + return; +} // Prepare content $content = array( diff --git a/inc/js/js-uberwach.php b/inc/js/js-uberwach.php index bf07a96fcc..e85f11e284 100644 --- a/inc/js/js-uberwach.php +++ b/inc/js/js-uberwach.php @@ -39,7 +39,9 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} // END - if +} elseif (!isExtensionActive('uberwach')) { + return; +} // Simply load the JavaScript here loadTemplate('js_uberwach');