]> git.mxchange.org Git - mailer.git/blobdiff - inc/js/js-surfbar_frame_top.php
Opps :(
[mailer.git] / inc / js / js-surfbar_frame_top.php
index 2013426452398db8242bdf715504dc3f72f5fa7a..653e013ddd91c7a54635ee64ee969c8dc7949ea9 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 (!isExtensionActive('surfbar')) {
+} elseif ((!isExtensionActive('surfbar')) || (!isGetRequestElementSet('url_id'))) {
        return;
 }
 
@@ -54,12 +54,12 @@ isSurfbarReloadFull();
 // Prepare content
 $content = array(
        'url_id' => bigintval(getRequestElement('url_id')),
-       'check'  => generateSurfbarValidationCode(getRequestElement('url_id'), gerSurfbarLastSalt()),
-       'salt'   => gerSurfbarLastSalt(),
+       'check'  => generateSurfbarValidationCode(getRequestElement('url_id'), getSurfbarLastSalt()),
+       'salt'   => getSurfbarLastSalt(),
 );
 
 // Load template
-loadTemplate('js_surfbar_frame_top', false, $content);
+loadTemplate('js_surfbar_frame_top', FALSE, $content);
 
 // [EOF]
 ?>