]> git.mxchange.org Git - mailer.git/blobdiff - inc/js/js-surfbar_frame_top.php
Mailer project rwritten:
[mailer.git] / inc / js / js-surfbar_frame_top.php
index cc9c63e55c73cad143e55c238f62312db75362b9..f275a778878d50871322f08837e448ee43e655e2 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * 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 *
 // 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(getRequestElement('url_id'));
+determineSurfbarNextId(getRequestElement('url_id'));
 
 // Check reload-locks
-SURFBAR_CHECK_RELOAD_FULL();
+isSurfbarReloadFull();
 
 // Prepare content
 $content = array(
        'url_id' => bigintval(getRequestElement('url_id')),
-       'check'  => SURFBAR_GENERATE_VALIDATION_CODE(getRequestElement('url_id'), SURFBAR_GET_LAST_SALT()),
-       'salt'   => SURFBAR_GET_LAST_SALT(),
+       '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]
 ?>