]> git.mxchange.org Git - mailer.git/blobdiff - inc/js/js-surfbar_frame_top.php
Introduced new extension ext-blacklist:
[mailer.git] / inc / js / js-surfbar_frame_top.php
index 14a70c75925e95e1e923f88132a87e68515734d4..f275a778878d50871322f08837e448ee43e655e2 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-} elseif (!isExtensionActive('surfbar')) {
+} elseif ((!isExtensionActive('surfbar')) || (!isGetRequestElementSet('url_id'))) {
        return;
 }
 
 // Init surfbar
-SURFBAR_INIT();
+initSurfbar();
 
 // Init data
-SURFBAR_DETERMINE_NEXT_ID(getRequestParameter('url_id'));
+determineSurfbarNextId(getRequestElement('url_id'));
 
 // Check reload-locks
-SURFBAR_CHECK_RELOAD_FULL();
-
-// Update stats
-SURFBAR_UPDATE_SALT_STATS();
+isSurfbarReloadFull();
 
 // Prepare content
 $content = array(
-       'url_id' => bigintval(getRequestParameter('url_id'))
+       'url_id' => bigintval(getRequestElement('url_id')),
+       '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]
 ?>