X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-unlock_surfbar_urls.php;h=8ce2a2a8a0d9e8e14dbc40aa38db8c6a4f175712;hp=78af53c22b9b0aba767bcfeb83eb03760b4770a5;hb=d8148e3f1f3a6762b2e786dbe99ada269dcf2ea0;hpb=5bdeaf8b452206598b6c6cd4f941145b11a0eccc diff --git a/inc/modules/admin/what-unlock_surfbar_urls.php b/inc/modules/admin/what-unlock_surfbar_urls.php index 78af53c22b..8ce2a2a8a0 100644 --- a/inc/modules/admin/what-unlock_surfbar_urls.php +++ b/inc/modules/admin/what-unlock_surfbar_urls.php @@ -41,18 +41,18 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { ADD_DESCR("admin", __FILE__); // Is the form sent? -if ((isset($_POST['unlock'])) && (is_array($_POST['id'])) && (count($_POST['id']) > 0)) { +if ((REQUEST_ISSET_POST(('unlock'))) && (is_array(REQUEST_POST('id'))) && (count(REQUEST_POST('id')) > 0)) { // Unlock selected URLs - if (SURFBAR_ADMIN_UNLOCK_URL_IDS($_POST['id'])) { + if (SURFBAR_ADMIN_UNLOCK_URL_IDS(REQUEST_POST('id'))) { // Unlock done! :-) LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_SURFBAR_UNLOCK_DONE')); } else { // Unlock failed! LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_SURFBAR_UNLOCK_FAILED')); } -} elseif ((isset($_POST['reject'])) && (is_array($_POST['id'])) && (count($_POST['id']) > 0)) { +} elseif ((REQUEST_ISSET_POST(('reject'))) && (is_array(REQUEST_POST('id'))) && (count(REQUEST_POST('id')) > 0)) { // Reject selected URLs - if (SURFBAR_ADMIN_REJECT_URL_IDS($_POST['id'])) { + if (SURFBAR_ADMIN_REJECT_URL_IDS(REQUEST_POST('id'))) { // Unlock done! :-) LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_SURFBAR_UNLOCK_DONE')); } else { @@ -64,7 +64,7 @@ if ((isset($_POST['unlock'])) && (is_array($_POST['id'])) && (count($_POST['id'] // List all URLs $result = SQL_QUERY("SELECT id, userid, url, UNIX_TIMESTAMP(registered) AS registered FROM `{!_MYSQL_PREFIX!}_surfbar_urls` -WHERE status='PENDING' +WHERE `status`='PENDING' ORDER BY `id` ASC", __FILE__, __LINE__); // Do we have some URLs left?