summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authoreric <eric>2004-06-29 00:56:31 +0000
committereric <eric>2004-06-29 00:56:31 +0000
commit6249c40e9417aff0ab8eb6f84c1f6693771c7b81 (patch)
tree5331d03317404d7422e5cf4ec32a348e1c2bea89 /web/html
parent4b80bc34ffb738ef3cd1a7944e8716d3e8140565 (diff)
fleshing out the package logic, renamed pkg include files for consistency
Diffstat (limited to 'web/html')
-rw-r--r--web/html/pkgsearch.php32
1 files changed, 13 insertions, 19 deletions
diff --git a/web/html/pkgsearch.php b/web/html/pkgsearch.php
index 64d229b..9ab00ca 100644
--- a/web/html/pkgsearch.php
+++ b/web/html/pkgsearch.php
@@ -1,6 +1,6 @@
<?
include("aur.inc"); # access AUR common functions
-include("pkgs.inc"); # package specific functions
+include("pkgfuncs.inc"); # package specific functions
include("search_po.inc"); # use some form of this for i18n support
set_lang(); # this sets up the visitor's language
check_sid(); # see if they're still logged in
@@ -39,14 +39,13 @@ if (isset($_REQUEST["do_Flag"])) {
# a message and give the user a link to resume where they were
# in the search
#
- pkg_search_page($_COOKIE["AURSID"], $_REQUEST["L"], $_REQUEST["C"],
- $_REQUEST["K"], $_REQUEST["SB"], $_REQUEST["M"], $_REQUEST["O"],
- $_REQUEST["PP"]);
+ pkg_search_page($_COOKIE["AURSID"]);
+
}
} elseif (isset($_REQUEST["do_Disown"])) {
- if ($atype != "User" && $atype != "") {
+ if ($atype == "User" || $atype == "") {
print __("You do not have access to disown packages.");
print "<br />\n";
@@ -59,14 +58,13 @@ if (isset($_REQUEST["do_Flag"])) {
# a message and give the user a link to resume where they were
# in the search
#
- pkg_search_page($_COOKIE["AURSID"], $_REQUEST["L"], $_REQUEST["C"],
- $_REQUEST["K"], $_REQUEST["SB"], $_REQUEST["M"], $_REQUEST["O"],
- $_REQUEST["PP"]);
+ pkg_search_page($_COOKIE["AURSID"]);
+
}
} elseif (isset($_REQUEST["do_Adopt"])) {
- if ($atype != "User" && $atype != "") {
+ if ($atype == "User" || $atype == "") {
print __("You do not have access to adopt packages.");
print "<br />\n";
@@ -79,9 +77,8 @@ if (isset($_REQUEST["do_Flag"])) {
# a message and give the user a link to resume where they were
# in the search
#
- pkg_search_page($_COOKIE["AURSID"], $_REQUEST["L"], $_REQUEST["C"],
- $_REQUEST["K"], $_REQUEST["SB"], $_REQUEST["M"], $_REQUEST["O"],
- $_REQUEST["PP"]);
+ pkg_search_page($_COOKIE["AURSID"]);
+
}
@@ -94,15 +91,14 @@ if (isset($_REQUEST["do_Flag"])) {
# vote on the packages in $ids array. 'unvote' for any packages
# listed in the $_REQUEST["All_IDs"] array.
#
- print "adopting<br />\n";
+ print "voting<br />\n";
# After voting, show the search page again (or maybe print out
# a message and give the user a link to resume where they were
# in the search
#
- pkg_search_page($_COOKIE["AURSID"], $_REQUEST["L"], $_REQUEST["C"],
- $_REQUEST["K"], $_REQUEST["SB"], $_REQUEST["M"], $_REQUEST["O"],
- $_REQUEST["PP"]);
+ pkg_search_page($_COOKIE["AURSID"]);
+
}
@@ -116,9 +112,7 @@ if (isset($_REQUEST["do_Flag"])) {
} else {
# do_More/do_Less/do_Search/do_MyPackages - just do a search
#
- pkg_search_page($_COOKIE["AURSID"], $_REQUEST["L"], $_REQUEST["C"],
- $_REQUEST["K"], $_REQUEST["SB"], $_REQUEST["M"], $_REQUEST["O"],
- $_REQUEST["PP"]);
+ pkg_search_page($_COOKIE["AURSID"]);
}