X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fjs%2Fjs-surfbar_frame_top.php;h=f275a778878d50871322f08837e448ee43e655e2;hb=5ab0d021f3e96722af5d96d2b9036430200c06cb;hp=14a70c75925e95e1e923f88132a87e68515734d4;hpb=c8d76610eb94093d4eed4fcd8a6cb72e74c8f6d8;p=mailer.git diff --git a/inc/js/js-surfbar_frame_top.php b/inc/js/js-surfbar_frame_top.php index 14a70c7592..f275a77887 100644 --- a/inc/js/js-surfbar_frame_top.php +++ b/inc/js/js-surfbar_frame_top.php @@ -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 * @@ -38,29 +38,28 @@ // 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] ?>