From d676b8ce57da4e5fc1de16f55aacbeb5dcef8e75 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 28 Oct 2009 04:11:19 +0000 Subject: [PATCH] All JavaScript files can now secured against calls without proper installation of required extension --- inc/js/js- | 4 +++- inc/js/js-order_send.php | 4 +++- inc/js/js-surfbar_member_book.php | 4 +++- inc/js/js-surfbar_member_edit.php | 4 +++- inc/js/js-surfbar_stopped.php | 4 +++- inc/js/js-uberwach.php | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) 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'); -- 2.39.5