]> 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 9c9240b1450dde58a079d5b8b00a12031065c8d7..653e013ddd91c7a54635ee64ee969c8dc7949ea9 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * 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 *
  * 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]
 ?>