Commit 99e65b28 authored by Simo Leone's avatar Simo Leone
Browse files

Revamped pkg_search_page()



- Reduced database hits
- Improved speed
- Improved sanity (slightly)
- Fixed searches,buttons,gizmos

Signed-off-by: default avatarSimo Leone <simo@archlinux.org>
parent da3b397a
......@@ -18,8 +18,6 @@ if (isset($_GET['ID'])) {
}
} else if (!empty($_GET['K'])) {
$title = "Search: " . $_GET['K'];
} else if (!empty($_GET['do_MyPackages'])) {
$title = __("My Packages");
} else {
$title = __("Packages");
}
......@@ -520,7 +518,7 @@ if ($_POST['action'] == "do_Flag" || isset($_POST['do_Flag'])) {
}
}
} else {
# do_More/do_Less/do_Search/do_MyPackages - just do a search
# just do a search
#
pkg_search_page($_COOKIE["AURSID"]);
......
This diff is collapsed.
......@@ -48,7 +48,7 @@ if (isset($_COOKIE["AURSID"])) {
?>
<li><a href="/logout.php"><?php print __("Logout"); ?></a></li>
<li><a href="/pkgsubmit.php"><?php print __("Submit"); ?></a></li>
<li><a href="/packages.php?do_MyPackages=1"><?php print __("My Packages"); ?></a></li>
<li><a href="/packages.php?SeB=m&K=<?php print username_from_sid($_COOKIE["AURSID"]); ?>"><?php print __("My Packages"); ?></a></li>
<?php
if (account_from_sid($_COOKIE["AURSID"]) == "Trusted User"
|| account_from_sid($_COOKIE["AURSID"]) == "Developer") {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment