]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-unlock_surfbar_urls.php
mailer project continued:
[mailer.git] / inc / modules / admin / what-unlock_surfbar_urls.php
index bd6542d0b46c2ab7ba53c1a33924feae8ad05617..ba10c41ae6a04b4dd70217b9574796a7572b8f8b 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 *
@@ -44,18 +44,18 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 // Is the form sent?
-if ((isPostRequestElementSet('unlock')) && (is_array(postRequestElement('url_id'))) && (count(postRequestElement('url_id')) > 0)) {
+if ((isPostRequestElementSet('unlock')) && (ifPostContainsSelections('url_id'))) {
        // Unlock selected URLs
-       if (SURFBAR_ADMIN_UNLOCK_URL_IDS(postRequestElement('url_id'))) {
+       if (doSurfbaradminUnlockUrlIds(postRequestElement('url_id'))) {
                // Unlock done! :-)
                displayMessage('{--ADMIN_SURFBAR_UNLOCK_DONE--}');
        } else {
                // Unlock failed!
                displayMessage('{--ADMIN_SURFBAR_UNLOCK_FAILED--}');
        }
-} elseif ((isPostRequestElementSet('reject')) && (is_array(postRequestElement('url_id'))) && (count(postRequestElement('url_id')) > 0)) {
+} elseif ((isPostRequestElementSet('reject')) && (ifPostContainsSelections('url_id'))) {
        // Reject selected URLs
-       if (SURFBAR_ADMIN_REJECT_URL_IDS(postRequestElement('url_id'))) {
+       if (doSurfbaradminRejectUrlIds(postRequestElement('url_id'))) {
                // Unlock done! :-)
                displayMessage('{--ADMIN_SURFBAR_UNLOCK_DONE--}');
        } else {