summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorswiergot <swiergot>2005-08-05 19:22:32 +0000
committerswiergot <swiergot>2005-08-05 19:22:32 +0000
commitee664d26d6d1bc8db0df46cb5960100bd2510c9f (patch)
treeb1360f741e20b6f6ab7d18e0d35788bb64930903 /web/lib
parent63eff7db7944dd40b8d8009972d437da7a9cbd5d (diff)
downloadaurweb-ee664d26d6d1bc8db0df46cb5960100bd2510c9f.tar.xz
fixed issues with seaching for orphans ('less' and 'more' buttons, 'go back to search results' link)
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc11
1 files changed, 7 insertions, 4 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index c4a30d5..1a6b6b4 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -3,7 +3,7 @@ include_once("pkgfuncs_po.inc");
# define variables used during pkgsearch
#
-$pkgsearch_vars = array("O", "L", "C", "K", "SB", "PP", "do_MyPackages");
+$pkgsearch_vars = array("O", "L", "C", "K", "SB", "PP", "do_MyPackages", "do_Orphans");
# print out the 'return to package details' link
@@ -25,7 +25,7 @@ function pkgsearch_results_link() {
$url_data = "<a href='/packages.php?do_Search=1";
while (list($k, $var) = each($pkgsearch_vars)) {
- if ($var == "do_MyPackages" && $_REQUEST[$var]) {
+ if (($var == "do_MyPackages" || $var == "do_Orphans") && $_REQUEST[$var]) {
$url_data.="&".$var."=1";
} else {
$url_data.="&".$var."=".rawurlencode(stripslashes($_REQUEST[$var]));
@@ -374,7 +374,7 @@ function package_details($id=0, $SID="") {
while (list($k, $darr) = each($deps)) {
$url = "<a href='/packages.php?do_Details=1&ID=".$darr[0];
while(list($k, $var) = each($pkgsearch_vars)) {
- if ($var == "do_MyPackages" && $_REQUEST[$var]) {
+ if (($var == "do_MyPackages" || $var == "do_Orphans") && $_REQUEST[$var]) {
$url .= "&".$var."=1";
} else {
$url .= "&".$var."=".rawurlencode(stripslashes($_REQUEST[$var]));
@@ -946,7 +946,7 @@ function pkg_search_page($SID="") {
# php.net recommends htmlentities(urlencode(data)), but that
# doesn't work!
#
- if ($var == "do_MyPackages" && $_REQUEST[$var]) {
+ if (($var == "do_MyPackages" || $var == "do_Orphans") && $_REQUEST[$var]) {
$url .= "&".$var."=1";
} else {
$url .= "&".$var."=".rawurlencode(stripslashes($_REQUEST[$var]));
@@ -1017,6 +1017,9 @@ function pkg_search_page($SID="") {
if ($_REQUEST["do_MyPackages"]) {
print "<input type='hidden' name='do_MyPackages' value='1'>\n";
}
+ if ($_REQUEST["do_Orphans"]) {
+ print "<input type='hidden' name='do_Orphans' value='1'>\n";
+ }
print "<table width='90%' cellspacing='0' cellpadding='2'>\n";
print "<tr>\n";