summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorpjmattal <pjmattal>2006-08-01 07:50:48 +0200
committerpjmattal <pjmattal>2006-08-01 07:50:48 +0200
commitce505210fabef5b3b6f3d10c3a7f73dffa6a5823 (patch)
treecbf69eb436178fd07f215f2eaca02fc4105daa3a /web
parentc3380f4fd663bf55734ec5b9a445b3cd978f44d7 (diff)
downloadaur-ce505210fabef5b3b6f3d10c3a7f73dffa6a5823.tar.gz
aur-ce505210fabef5b3b6f3d10c3a7f73dffa6a5823.tar.xz
added dsa's "My Packages" patch
Diffstat (limited to 'web')
-rw-r--r--web/html/account.php1
-rw-r--r--web/html/index.php1
-rw-r--r--web/html/logout.php1
-rw-r--r--web/html/pkgsubmit.php12
-rw-r--r--web/lib/aur.inc6
5 files changed, 21 insertions, 0 deletions
diff --git a/web/html/account.php b/web/html/account.php
index 841ed66a..40a17593 100644
--- a/web/html/account.php
+++ b/web/html/account.php
@@ -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
diff --git a/web/html/index.php b/web/html/index.php
index 4d90cb44..62528143 100644
--- a/web/html/index.php
+++ b/web/html/index.php
@@ -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();
diff --git a/web/html/logout.php b/web/html/logout.php
index 66e49023..c34cd1c6 100644
--- a/web/html/logout.php
+++ b/web/html/logout.php
@@ -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
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index a3ac9ef7..6bcaf113 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -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);
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index 7c64cd67..43a724f2 100644
--- a/web/lib/aur.inc
+++ b/web/lib/aur.inc
@@ -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> ";
}