]> git.mxchange.org Git - mailer.git/blobdiff - inc/js/js-admin_ajax.php
Updated copyright notice as there are changes in this year
[mailer.git] / inc / js / js-admin_ajax.php
index b1bc377d2c4b8e3c1c08b9e768f492dc8fb06d3e..a91dc1a7edb1d1c7178441a3ba574be5af665096 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -38,7 +38,7 @@
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-} elseif (!isAdmin()) {
+} elseif ((!isAdmin()) || (!isGetRequestElementSet('admin_page'))) {
        return;
 }
 
@@ -48,7 +48,7 @@ $content = array(
 );
 
 // Simply load the JavaScript here
-loadTemplate('js_admin_ajax', false, $content);
+loadTemplate('js_admin_ajax', FALSE, $content);
 
 // [EOF]
 ?>