-// Edit or delete button hit?
-if (isset($_POST['edit'])) {
- // Delete entries (with confirmation)
- ADMIN_EDIT_ENTRIES_CONFIRM(
- $_POST['id'],
- "surfbar_urls",
- array("id", "userid", "url", "reward", "costs"),
- array("bigintval", "", "", "TRANSLATE_COMMA", "TRANSLATE_COMMA"),
- array("", "", "", "")
- );
- $show = false;
-} elseif (isset($_POST['do_edit'])) {
- // Delete entries (with confirmation)
- ADMIN_EDIT_ENTRIES_CONFIRM($_POST['id'], "surfbar_urls", array(), array(), array(), true);
-} elseif (isset($_POST['delete'])) {
- // Delete entries (with confirmation)
- ADMIN_DELETE_ENTRIES_CONFIRM($_POST['id'], "surfbar_urls", array("id", "userid", "url", "registered"), array("bigintval", "ADMIN_USER_PROFILE_LINK", "", "MAKE_DATETIME"), array("", "", "", "2"));
- $show = false;
-} elseif (isset($_POST['remove'])) {
- // Delete entries (with confirmation)
- ADMIN_DELETE_ENTRIES_CONFIRM($_POST['id'], "surfbar_urls", array(), array(), array(), true);
-}
+// Check for 'url_id' element
+if ((countRequestPost() > 0) && ((!isPostRequestParameterSet('url_id')) || (!is_array(postRequestParameter('url_id'))) || (count(postRequestParameter('url_id')) == 0))) {
+ // Not found so output message
+ displayMessage('{--ADMIN_SURFBAR_NO_SELECTIONS--}');