X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-list_surfbar.php;h=01d37234ec153036c5031e8b4f1463e03be0986b;hb=f1d0a68ef017ce2e658e8e681b8dba79b8f1b4df;hp=9955f44c1669149172efe159c5c3e100146b2fe9;hpb=2379934be6a196a54f4155bb8e24c49b20736969;p=mailer.git diff --git a/inc/modules/member/what-list_surfbar.php b/inc/modules/member/what-list_surfbar.php index 9955f44c16..01d37234ec 100644 --- a/inc/modules/member/what-list_surfbar.php +++ b/inc/modules/member/what-list_surfbar.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 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 * @@ -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,14 +77,14 @@ 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); + $OUT .= loadTemplate('member_list_surfbar_row', TRUE, $content); } // END - foreach // Load main template - loadTemplate('member_list_surfbar', false, $OUT); + loadTemplate('member_list_surfbar', FALSE, $OUT); } else { // No URLs booked so far displayMessage('{--MEMBER_SURFBAR_NO_URLS_FOUND--}');