]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-list_surfbar.php
mailer project continued:
[mailer.git] / inc / modules / member / what-list_surfbar.php
index 39c79cbbba3fe4135af8533020514800152f3ac5..b783520296a91f7b65660d5b3aac8f5ce3378c23 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()) {
        redirectToIndexMemberOnlyModule();
 }
@@ -51,15 +51,15 @@ if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
 } // END - if
 
 // Load user URLs
-$urlArray = SURFBAR_GET_USER_URLS();
+$urlArray = getSurfbarUserUrls();
 
 // Are there entries or form is submitted?
-if ((isFormSent()) && (isPostRequestElementSet('action')) && (isPostRequestElementSet('id'))) {
+if ((isFormSent()) && (isPostRequestElementSet('action')) && (isPostRequestElementSet('url_id'))) {
        // Process the form
-       if (SURFBAR_MEMBER_DO_FORM(postRequestArray(), $urlArray)) {
+       if (doSurfbarMemberByFormData(postRequestArray(), $urlArray)) {
                // Action performed but shall we display it?
                if (((postRequestElement('action') != 'edit') && (postRequestElement('action') != 'delete')) || (isPostRequestElementSet('execute'))) {
-                       // Display "action done" message if action is wether 'edit' nor 'delete' or has been executed
+                       // Display "action done" message if action is whether 'edit' nor 'delete' or has been executed
                        displayMessage('{--MEMBER_SURFBAR_ACTION_DONE--}');
                } // END - if
        } else {
@@ -77,7 +77,7 @@ if ((isFormSent()) && (isPostRequestElementSet('action')) && (isPostRequestEleme
                } // END - if
                $content['url_registered']  = generateDateTime($content['url_registered'], '2');
                $content['url_last_locked'] = generateDateTime($content['url_last_locked'], '2');
-               $content['actions']         = SURFBAR_MEMBER_ACTIONS($content['url_id'], $content['url_status']);
+               $content['actions']         = generateSurfbarMemberActions($content['url_id'], $content['url_status']);
 
                // Load row template
                $OUT .= loadTemplate('member_list_surfbar_row', true, $content);