query("update $wpdb->links SET link_category='$category' WHERE link_id IN ($all_links)"); header('Location: '.$this_file); break; case 'add' : check_admin_referer('add-bookmark'); add_link(); header('Location: '.$_SERVER['HTTP_REFERER'].'?added=true'); break; case 'save' : $link_id = (int) $_POST['link_id']; check_admin_referer('update-bookmark' . $link_id); edit_link($link_id); wp_redirect($this_file); exit; break; case 'delete' : $link_id = (int) $_GET['link_id']; check_admin_referer('delete-bookmark' . $link_id); if (!current_user_can('manage_links')) die(__("Cheatin' uh ?")); wp_delete_link($link_id); wp_redirect($this_file); break; case 'edit' : $xfn_js = true; $editing = true; $parent_file = 'link-manager.php'; $submenu_file = 'link-manager.php'; $title = __('Edit Bookmark'); include_once ('admin-header.php'); if (!current_user_can('manage_links')) die(__('You do not have sufficient permissions to edit the bookmarks for this blog.')); $link_id = (int) $_GET['link_id']; if (!$link = get_link_to_edit($link_id)) die(__('Link not found.')); include ('edit-link-form.php'); break; default : break; } include ('admin-footer.php'); ?>