mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
added dsa's "My Packages" patch
This commit is contained in:
parent
c3380f4fd6
commit
ce505210fa
5 changed files with 21 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
<?
|
||||
include("aur.inc"); # access AUR common functions
|
||||
include("acctfuncs.inc"); # access Account specific functions
|
||||
include("pkgfuncs_po.inc"); # Add to handle the i18n of My Packages
|
||||
include("account_po.inc"); # use some form of this for i18n support
|
||||
set_lang(); # this sets up the visitor's language
|
||||
check_sid(); # see if they're still logged in
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?
|
||||
include("index_po.inc");
|
||||
include("pkgfuncs_po.inc"); # Add to handle the i18n of My Packages
|
||||
include("aur.inc");
|
||||
set_lang();
|
||||
check_sid();
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?
|
||||
include("aur.inc"); # access AUR common functions
|
||||
include("pkgfuncs_po.inc"); # Add to handle the i18n of My Packages
|
||||
include("logout_po.inc"); # use some form of this for i18n support
|
||||
set_lang(); # this sets up the visitor's language
|
||||
|
||||
|
|
|
@ -421,6 +421,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 <dsandrade@gmail.com>
|
||||
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 <dsandrade@gmail.com>
|
||||
if ($deppkgname == "#")
|
||||
break;
|
||||
|
||||
$deppkgid = create_dummy($deppkgname, $_COOKIE['AURSID']);
|
||||
$q .= $packageID.", ".$deppkgid.")";
|
||||
db_query($q, $dbh);
|
||||
|
|
|
@ -432,6 +432,12 @@ function html_header() {
|
|||
print " <span class='black'> - </span> ";
|
||||
print " <a href='http://www.archlinux.org/mailman/listinfo/tur-users'>".__("Discussion")."</a> ";
|
||||
if ($_COOKIE["AURSID"]) {
|
||||
# This is a usability change, so we can go to My Packages page
|
||||
# with just one click
|
||||
# Added by: dsa <dsandrade@gmail.com>
|
||||
print " <span class='black'> - </span> ";
|
||||
print " <a href='/packages.php?do_MyPackages=1'>".__("My Packages")."</a> ";
|
||||
|
||||
print " <span class='black'> - </span> ";
|
||||
print " <a href='/logout.php'>".__("Logout")."</a> ";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue