The account editing form requires two different form action URLs
due to the fact that the same template is shared for both account
registration and account editing.
Signed-off-by: canyonknight
---
This patch assumes all previous patches. This should complete those changes
and all account
* Use AUR_URL/account/userfoo/edit format for own account editing.
* Change "Accounts" label to "My Account" for regular users.
* Add ability for Developers and Trusted Users to edit their account
without having to use the search form first.
Signed-off-by: canyonknigh
* Restructure account.php to remove redundant code.
* Remove own_account_details().
* Rework logic check to default to no access to account edit form.
* Make default account action viewing account info.
Signed-off-by: canyonknight
---
web/html/account.php | 34
The "UpdateAccount" page displays information as to whether an account
update was successful. All POST account info goes to this page, so use
it with sane URLs.
Before:
AUR_URL/account/?Action=UpdateAccount&U=userfoo
After:
AUR_URL/account/userfoo/update
Signed-off-by: canyonkn
Allows for easier account editing and saner URLs. Update account editing links
to use new URL.
Before:
AUR_URL/account/?Action=DisplayAccount&U=userfoo
After:
AUR_URL/account/userfoo/edit
Signed-off-by: canyonknight
---
web/html/index.php | 10 +-
web/temp
Signed-off-by: canyonknight
---
web/html/index.php| 6 ++
web/html/voters.php | 2 +-
web/lib/acctfuncs.inc.php | 2 +-
web/lib/pkgfuncs.inc.php | 2 +-
web/lib/routing.inc.php | 17 +
web/template/pkg_comments.php | 2 +-
6 fil
Account search page has /account/ in the address bar when it should still be
/accounts/. The only time /account/ should be used is on a specific user's
page.
Signed-off-by: canyonknight
---
web/template/account_search_results.php | 4 ++--
web/template/search_accounts_form.php | 2 +-
2
Signed-off-by: canyonknight
---
web/template/pkg_comment_form.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/template/pkg_comment_form.php
b/web/template/pkg_comment_form.php
index 95d2cb0..fb3ebff 100644
--- a/web/template/pkg_comment_form.php
+++ b/web/template
Signed-off-by: canyonknight
---
web/html/images/titlelogo.png | Bin 4502 -> 0 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
delete mode 100644 web/html/images/titlelogo.png
diff --git a/web/html/images/titlelogo.png b/web/html/images/titlelogo.png
deleted file mode 100644
in
Signed-off-by: canyonknight
---
web/html/images/new.gif | Bin 116 -> 0 bytes
web/html/images/new.png | Bin 0 -> 378 bytes
web/html/index.php | 4 ++--
web/template/stats/updates_table.php | 2 +-
4 files changed, 3 insertions(+), 3 del
This regression was introduced with d2480e8b9d3d0f946d57fa9422811cb37296b8b4.
Re-implement the functionality in a cleaner way.
Signed-off-by: canyonknight
---
web/template/stats/updates_table.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/web/template/stats/updates_table.php
b/web
Signed-off-by: canyonknight
---
web/html/logout.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/html/logout.php b/web/html/logout.php
index 835f1c9..3d059e7 100644
--- a/web/html/logout.php
+++ b/web/html/logout.php
@@ -10,7 +10,7 @@ include_once("acctfuncs.in
Signed-off-by: canyonknight
---
web/lib/acctfuncs.inc.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index 54e8381..e7dcb10 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -195,7 +195,7
be?)
- Fix undefined notice when a logged out user navigates to a package page
- The "Latest Comments" link appends "?comments=all" to URL on every click
Anything else?
canyonknight (13):
Migrate all DB code to use PDO
Adjust user directions after registering to reflect new lo
, URL, description, license, or version is too long.
Also move the resolution of full package version (including epoch) to an
earlier point in pkgsubmit.php
Signed-off-by: canyonknight
---
web/html/pkgsubmit.php | 35 +--
1 file changed, 29 insertions(+), 6
Signed-off-by: canyonknight
---
web/html/home.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/html/home.php b/web/html/home.php
index df112b8..8fecfd4 100644
--- a/web/html/home.php
+++ b/web/html/home.php
@@ -91,7 +91,7 @@ $dbh = db_connect
Signed-off-by: canyonknight
---
web/template/stats/updates_table.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/template/stats/updates_table.php
b/web/template/stats/updates_table.php
index 6e43e22..4955ddc 100644
--- a/web/template/stats/updates_table.php
+++ b/web
Currently everyone is allowed to unflag a package as out of date. This should
be limited to only the appropriate people for a specific package.
Fixes FS#27263
Signed-off-by: canyonknight
---
web/lib/pkgfuncs.inc.php | 4
web/template/actions_form.php | 3 ++-
web/template
, URL, description, license, or version is too long.
Also move the resolution of full package version (including epoch) to an
earlier point in pkgsubmit.php
Signed-off-by: canyonknight
---
web/html/pkgsubmit.php | 35 +--
1 file changed, 29 insertions(+), 6
Archive_Tar
version to avoid related issues
Fixes FS#30472
Signed-off-by: canyonknight
---
INSTALL | 2 +-
UPGRADING | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/INSTALL b/INSTALL
index ee4ed5a..ca79f10 100644
--- a/INSTALL
+++ b/INSTALL
@@ -51,7 +51,7 @@ Setup on Arch Linux
The "Required by" column already handles an empty list appropriately. Move a
tag to match that behavior in the "Dependencies" column
Signed-off-by: canyonknight
---
web/template/pkg_details.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/templa
Logged out users who navigate to /submit currently reach a page with only an
error message. This adds the full navigation bar for users who errantly reach
/submit before logging in.
Signed-off-by: canyonknight
---
web/html/pkgsubmit.php | 8
1 file changed, 4 insertions(+), 4 deletions
cases and parts
of the web interface that I may have failed at testing.
This patch series is based against Lukas' "wip" branch [1]. Those changes
and my changes in entirety can be had from my "working" branch [2].
[1] http://git.cryptocrack.de/aur.git/log/?h=wip
[2] https
A foreach() being run without checking to see if the uploaded PKGBUILD had any
sources now no longer causes an undefined index notice when there are no
sources.
Signed-off-by: canyonknight
---
web/html/pkgsubmit.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/web
Signed-off-by: canyonknight
---
web/lib/aur.inc.php | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index f82a96a..5a70e77 100644
--- a/web/lib/aur.inc.php
+++ b/web/lib/aur.inc.php
@@ -52,9 +52,7 @@ function check_sid($dbh=NULL
Signed-off-by: canyonknight
---
web/html/tu.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/web/html/tu.php b/web/html/tu.php
index 5537d3a..48cd6c1 100644
--- a/web/html/tu.php
+++ b/web/html/tu.php
@@ -34,6 +34,7 @@ if ($atype == "Trusted User" || $atype ==
Signed-off-by: canyonknight
---
web/html/pkgsubmit.php | 1 -
1 file changed, 1 deletion(-)
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index 2fd21e6..c2a7191 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -477,7 +477,6 @@ else:
endif;
?>
-
101 - 127 of 127 matches
Mail list logo