]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-book_surfbar.php
Swapped all
[mailer.git] / inc / modules / member / what-book_surfbar.php
index 24cc1cee032b8c3bc5e12bfc37a052bc8bb8e454..e34bc657ea88bf91729f7ad5a98f7d6892f108fc 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 *
@@ -37,7 +37,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 } elseif (!isMember()) {
        // Redirect
        redirectToIndexMemberOnlyModule();
@@ -52,7 +52,7 @@ if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
 } // END - if
 
 // Still allowed to book more URLs?
-if (!SURFBAR_IF_USER_BOOK_MORE_URLS()) {
+if (!ifSurfbarMemberAllowedMoreUrls()) {
        // No more URLs allowed to book!
        displayMessage('{--MEMBER_SURFBAR_NO_MORE_ALLOWED--}');
 } elseif ((isFormSent()) && (isPostRequestElementSet('limited'))) {
@@ -66,10 +66,10 @@ if (!SURFBAR_IF_USER_BOOK_MORE_URLS()) {
        $message = '{--MEMBER_SURFBAR_URL_NOT_ADDED--}';
 
        // Register the new URL
-       $insertId = SURFBAR_MEMBER_ADD_URL(postRequestElement('url'), postRequestElement('limit'));
+       $insertId = doSurfbarMemberAddUrl(postRequestElement('url'), postRequestElement('limit'));
 
        // Was this fine?
-       if ($insertId > 0) {
+       if (isValidId($insertId)) {
                // URL added and waiting for unlock
                $message = '{--MEMBER_SURFBAR_URL_ADDED--}';
        } // END - if