* -------------------------------------------------------------------- *
* Kurzbeschreibung : JavaScript-Tag fuer ext-surfbar.php *
* -------------------------------------------------------------------- *
- * $Revision:: 1910 $ *
- * $Date:: 2010-06-29 06:00:23 +0200 (Tue, 29 Jun 2010) $ *
+ * $Revision:: $ *
+ * $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
- * $Author:: quix0r $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
+ * $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 - 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]
?>