diff options
Diffstat (limited to 'web/lib/pkgfuncs.inc')
-rw-r--r-- | web/lib/pkgfuncs.inc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index c4a30d51..1a6b6b44 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"; |