$i) { $ids[] = $id; } } # Determine what action to do $output = ""; if ($_POST['action'] == "do_Flag" || isset($_POST['do_Flag'])) { $output = pkg_flag($atype, $ids, True); } elseif ($_POST['action'] == "do_UnFlag" || isset($_POST['do_UnFlag'])) { $output = pkg_flag($atype, $ids, False); } elseif ($_POST['action'] == "do_Adopt" || isset($_POST['do_Adopt'])) { $output = pkg_adopt($atype, $ids, True); } elseif ($_POST['action'] == "do_Disown" || isset($_POST['do_Disown'])) { $output = pkg_adopt($atype, $ids, False); } elseif ($_POST['action'] == "do_Vote" || isset($_POST['do_Vote'])) { $output = pkg_vote($atype, $ids, True); } elseif ($_POST['action'] == "do_UnVote" || isset($_POST['do_UnVote'])) { $output = pkg_vote($atype, $ids, False); } elseif ($_POST['action'] == "do_Delete" || isset($_POST['do_Delete'])) { $output = pkg_delete($atype, $ids); unset($_GET['ID']); } elseif ($_POST['action'] == "do_Notify" || isset($_POST['do_Notify'])) { $output = pkg_notify($atype, $ids); } elseif ($_POST['action'] == "do_UnNotify" || isset($_POST['do_UnNotify'])) { $output = pkg_notify($atype, $ids, False); } html_header($title); ?>
\n"; } else { package_details($_GET['ID'], $_COOKIE["AURSID"]); } } else { $_GET['SB'] = 'v'; $_GET['SO'] = 'd'; pkg_search_page($_COOKIE["AURSID"]); } html_footer(AUR_VERSION);