X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-unlock_surfbar_urls.php;h=bd6542d0b46c2ab7ba53c1a33924feae8ad05617;hb=8ce32e702f3caa76b8d446902948e83e1e6854c8;hp=5b0d0066e3086643c375d5ac862b1e956c3cf7a9;hpb=db0c6702086eea2c44d0aae1702dc2e77a0afc4e;p=mailer.git diff --git a/inc/modules/admin/what-unlock_surfbar_urls.php b/inc/modules/admin/what-unlock_surfbar_urls.php index 5b0d0066e3..bd6542d0b4 100644 --- a/inc/modules/admin/what-unlock_surfbar_urls.php +++ b/inc/modules/admin/what-unlock_surfbar_urls.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * @@ -44,18 +44,18 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Is the form sent? -if ((isPostRequestParameterSet('unlock')) && (is_array(postRequestParameter('url_id'))) && (count(postRequestParameter('url_id')) > 0)) { +if ((isPostRequestElementSet('unlock')) && (is_array(postRequestElement('url_id'))) && (count(postRequestElement('url_id')) > 0)) { // Unlock selected URLs - if (SURFBAR_ADMIN_UNLOCK_URL_IDS(postRequestParameter('url_id'))) { + if (SURFBAR_ADMIN_UNLOCK_URL_IDS(postRequestElement('url_id'))) { // Unlock done! :-) displayMessage('{--ADMIN_SURFBAR_UNLOCK_DONE--}'); } else { // Unlock failed! displayMessage('{--ADMIN_SURFBAR_UNLOCK_FAILED--}'); } -} elseif ((isPostRequestParameterSet('reject')) && (is_array(postRequestParameter('url_id'))) && (count(postRequestParameter('url_id')) > 0)) { +} elseif ((isPostRequestElementSet('reject')) && (is_array(postRequestElement('url_id'))) && (count(postRequestElement('url_id')) > 0)) { // Reject selected URLs - if (SURFBAR_ADMIN_REJECT_URL_IDS(postRequestParameter('url_id'))) { + if (SURFBAR_ADMIN_REJECT_URL_IDS(postRequestElement('url_id'))) { // Unlock done! :-) displayMessage('{--ADMIN_SURFBAR_UNLOCK_DONE--}'); } else { @@ -64,40 +64,8 @@ if ((isPostRequestParameterSet('unlock')) && (is_array(postRequestParameter('url } } -// List all URLs -$result = SQL_QUERY("SELECT - `url_id`, - `url_userid`, - `url`, - UNIX_TIMESTAMP(`url_registered`) AS `url_registered` -FROM - `{?_MYSQL_PREFIX?}_surfbar_urls` -WHERE - `url_status`='PENDING' -ORDER BY - `url_id` ASC", __FILE__, __LINE__); - -// Do we have some URLs left? -if (!SQL_HASZERONUMS($result)) { - // List all URLs - $OUT = ''; - while ($content = SQL_FETCHARRAY($result)) { - // "Translate"/add content - $content['url_registered'] = generateDateTime($content['url_registered'], 2); - - // Load row template - $OUT .= loadTemplate('admin_unlock_surfbar_urls_row', true, $content); - } // END - while - - // Load main template - loadTemplate('admin_unlock_surfbar_urls', false, $OUT); -} else { - // No URLs in surfbar - displayMessage('{--ADMIN_SURFBAR_NO_URLS_FOUND--}'); -} - -// Free result -SQL_FREERESULT($result); +// List all pendingURLs +showEntriesByXmlCallback('admin_unlock_surfbar_urls'); // [EOF] ?>