From ce505210fabef5b3b6f3d10c3a7f73dffa6a5823 Mon Sep 17 00:00:00 2001 From: pjmattal Date: Tue, 1 Aug 2006 05:50:48 +0000 Subject: added dsa's "My Packages" patch --- web/html/account.php | 1 + web/html/index.php | 1 + web/html/logout.php | 1 + web/html/pkgsubmit.php | 12 ++++++++++++ web/lib/aur.inc | 6 ++++++ 5 files changed, 21 insertions(+) diff --git a/web/html/account.php b/web/html/account.php index 841ed66..40a1759 100644 --- a/web/html/account.php +++ b/web/html/account.php @@ -1,6 +1,7 @@ ]?=.*/", "", $v); + + # Solve the problem with comments and deps + # added by: dsa + if ($deppkgname == "#") + break; + $deppkgid = create_dummy($deppkgname, $_COOKIE['AURSID']); $q .= $pdata["ID"].", ".$deppkgid.")"; db_query($q, $dbh); @@ -492,6 +498,12 @@ if ($_COOKIE["AURSID"]) { while (list($k, $v) = each($depends)) { $q = "INSERT INTO PackageDepends (PackageID, DepPkgID) VALUES ("; $deppkgname = preg_replace("/[<>]?=.*/", "", $v); + + # Solve the problem with comments and deps + # added by: dsa + if ($deppkgname == "#") + break; + $deppkgid = create_dummy($deppkgname, $_COOKIE['AURSID']); $q .= $packageID.", ".$deppkgid.")"; db_query($q, $dbh); diff --git a/web/lib/aur.inc b/web/lib/aur.inc index 7c64cd6..43a724f 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -432,6 +432,12 @@ function html_header() { print " - "; print " ".__("Discussion")." "; if ($_COOKIE["AURSID"]) { + # This is a usability change, so we can go to My Packages page + # with just one click + # Added by: dsa + print " - "; + print " ".__("My Packages")." "; + print " - "; print " ".__("Logout")." "; } -- cgit v1.2.3-70-g09d2