diff --git a/web/html/pkgsearch.php b/web/html/pkgsearch.php index 64d229bc..9ab00ca9 100644 --- a/web/html/pkgsearch.php +++ b/web/html/pkgsearch.php @@ -1,6 +1,6 @@ \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 "
\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
\n"; + print "voting
\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"]); } diff --git a/web/lang/index_po.inc b/web/lang/index_po.inc index d96cd67a..13c50339 100644 --- a/web/lang/index_po.inc +++ b/web/lang/index_po.inc @@ -111,4 +111,9 @@ $_t["en"]["Logged-in as: %h%s%h"] = "Logged-in as: %h%s%h"; # $_t["fr"]["Logged-in as: %h%s%h"] = "--> Traduction française ici. <--"; # $_t["de"]["Logged-in as: %h%s%h"] = "--> Deutsche Übersetzung hier. <--"; +$_t["en"]["Error looking up username, %s."] = "Error looking up username, %s."; +# $_t["es"]["Error looking up username, %s."] = "--> Traducción española aquí. <--"; +# $_t["fr"]["Error looking up username, %s."] = "--> Traduction française ici. <--"; +# $_t["de"]["Error looking up username, %s."] = "--> Deutsche Übersetzung hier. <--"; + ?> \ No newline at end of file diff --git a/web/lang/mgmnt_po.inc b/web/lang/mgmnt_po.inc index 438f50df..824ef500 100644 --- a/web/lang/mgmnt_po.inc +++ b/web/lang/mgmnt_po.inc @@ -16,4 +16,9 @@ $_t["en"]["Under construction..."] = "Under construction..."; # $_t["fr"]["Under construction..."] = "--> Traduction française ici. <--"; # $_t["de"]["Under construction..."] = "--> Deutsche Übersetzung hier. <--"; +$_t["en"]["Manage package ID: %s"] = "Manage package ID: %s"; +# $_t["es"]["Manage package ID: %s"] = "--> Traducción española aquí. <--"; +# $_t["fr"]["Manage package ID: %s"] = "--> Traduction française ici. <--"; +# $_t["de"]["Manage package ID: %s"] = "--> Deutsche Übersetzung hier. <--"; + ?> \ No newline at end of file diff --git a/web/lang/pkgs_po.inc b/web/lang/pkgfuncs_po.inc similarity index 100% rename from web/lang/pkgs_po.inc rename to web/lang/pkgfuncs_po.inc diff --git a/web/lang/search_po.inc b/web/lang/search_po.inc index 438f50df..01527c4c 100644 --- a/web/lang/search_po.inc +++ b/web/lang/search_po.inc @@ -16,4 +16,24 @@ $_t["en"]["Under construction..."] = "Under construction..."; # $_t["fr"]["Under construction..."] = "--> Traduction française ici. <--"; # $_t["de"]["Under construction..."] = "--> Deutsche Übersetzung hier. <--"; +$_t["en"]["You must be logged in before you can vote for packages."] = "You must be logged in before you can vote for packages."; +# $_t["es"]["You must be logged in before you can vote for packages."] = "--> Traducción española aquí. <--"; +# $_t["fr"]["You must be logged in before you can vote for packages."] = "--> Traduction française ici. <--"; +# $_t["de"]["You must be logged in before you can vote for packages."] = "--> Deutsche Übersetzung hier. <--"; + +$_t["en"]["You do not have access to disown packages."] = "You do not have access to disown packages."; +# $_t["es"]["You do not have access to disown packages."] = "--> Traducción española aquí. <--"; +# $_t["fr"]["You do not have access to disown packages."] = "--> Traduction française ici. <--"; +# $_t["de"]["You do not have access to disown packages."] = "--> Deutsche Übersetzung hier. <--"; + +$_t["en"]["You must be logged in before you can flag packages."] = "You must be logged in before you can flag packages."; +# $_t["es"]["You must be logged in before you can flag packages."] = "--> Traducción española aquí. <--"; +# $_t["fr"]["You must be logged in before you can flag packages."] = "--> Traduction française ici. <--"; +# $_t["de"]["You must be logged in before you can flag packages."] = "--> Deutsche Übersetzung hier. <--"; + +$_t["en"]["You do not have access to adopt packages."] = "You do not have access to adopt packages."; +# $_t["es"]["You do not have access to adopt packages."] = "--> Traducción española aquí. <--"; +# $_t["fr"]["You do not have access to adopt packages."] = "--> Traduction française ici. <--"; +# $_t["de"]["You do not have access to adopt packages."] = "--> Deutsche Übersetzung hier. <--"; + ?> \ No newline at end of file diff --git a/web/lib/acctfuncs.inc b/web/lib/acctfuncs.inc index 9cd7fab2..d27b96f4 100644 --- a/web/lib/acctfuncs.inc +++ b/web/lib/acctfuncs.inc @@ -464,6 +464,7 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="", } $search_vars[] = "SB"; $q.= "LIMIT ". $OFFSET . ", " . $HITS_PER_PAGE; + $result = db_query($q, $dbh); if (!$result) { print __("No results matched your search criteria."); diff --git a/web/lib/pkgs.inc b/web/lib/pkgfuncs.inc similarity index 87% rename from web/lib/pkgs.inc rename to web/lib/pkgfuncs.inc index 9fd70cbf..c8427ab8 100644 --- a/web/lib/pkgs.inc +++ b/web/lib/pkgfuncs.inc @@ -1,5 +1,5 @@ \n"; - + $K = str_replace("\"", "", $_REQUEST["K"]); # TODO better testing for + # SQL trickery... print "
\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; print "\n"; - print "\n"; + print "\n"; print "\n"; print "
\n"; @@ -101,7 +105,7 @@ function pkg_search_page($SID="",$L="",$C="",$K="",$SB="",$M=0,$O=0,$PP=25, print " \n"; print "