[aur-dev] [PATCH] Make account registration work with recent account editing changes

2012-09-16 Thread canyonknight
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

[aur-dev] [PATCH 13/13] header.php: Update account editing link

2012-09-15 Thread canyonknight
* 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

[aur-dev] [PATCH 12/13] Overhaul ability to edit own account

2012-09-15 Thread canyonknight
* 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

[aur-dev] [PATCH 11/13] Use URL rewriting for user account update page

2012-09-15 Thread canyonknight
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

[aur-dev] [PATCH 10/13] Use URL rewriting for user editing page

2012-09-15 Thread canyonknight
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

[aur-dev] [PATCH 09/13] Use URL rewriting for user info page

2012-09-15 Thread canyonknight
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

[aur-dev] [PATCH 08/13] Fix account search page results routing to /account/

2012-09-15 Thread canyonknight
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

[aur-dev] [PATCH 07/13] pkg_comment_form.php: Fix PHP undefined variable notice for package "ID"

2012-09-15 Thread canyonknight
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

[aur-dev] [PATCH 06/13] Remove unused image "titlelogo.png"

2012-09-15 Thread canyonknight
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

[aur-dev] [PATCH 05/13] Use the "new" icon from archweb for the recent updates table

2012-09-15 Thread canyonknight
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

[aur-dev] [PATCH 04/13] Add the new package icon back to the front page

2012-09-15 Thread canyonknight
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

[aur-dev] [PATCH 03/13] logout.php: Fix PHP undefined variable notice

2012-09-15 Thread canyonknight
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

[aur-dev] [PATCH 02/13] Adjust user directions after registering to reflect new login page

2012-09-15 Thread canyonknight
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

[aur-dev] [PATCH 00/13] Status Update

2012-09-15 Thread canyonknight
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

[aur-dev] [PATCH v2 4/8] Print error message when maximum DB character length is exceeded

2012-08-23 Thread canyonknight
, 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

[aur-dev] [PATCH 7/8] Fix broken package search on front page

2012-08-09 Thread canyonknight
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

[aur-dev] [PATCH 6/8] Fix broken RSS feed link on front page

2012-08-09 Thread canyonknight
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

[aur-dev] [PATCH 5/8] Allow only Trusted Users, Developers, and Maintainers to unflag packages

2012-08-09 Thread canyonknight
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

[aur-dev] [PATCH 4/8] Print error message when maximum DB character length is exceeded

2012-08-09 Thread canyonknight
, 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

[aur-dev] [PATCH 3/8] Update docs to require Archive_Tar version greater than 1.3.7

2012-08-09 Thread canyonknight
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

[aur-dev] [PATCH 2/8] pkg_details.php: Fix broken HTML for package page with no dependencies

2012-08-09 Thread canyonknight
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

[aur-dev] [PATCH 1/8] pkgsubmit.php: Make page friendlier for logged out users

2012-08-09 Thread canyonknight
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

[aur-dev] [PATCH 0/8] Assorted working branch changes

2012-08-09 Thread canyonknight
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

[aur-dev] [PATCH] pkgsubmit.php: Refactor source processing to fix PHP notice

2012-07-14 Thread canyonknight
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

[aur-dev] [PATCH] aur.inc.php: Use delete_session_id() where appropriate

2012-07-14 Thread canyonknight
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

[aur-dev] [PATCH] tu.php: Fix PHP notice for "hasvoted" variable

2012-07-09 Thread canyonknight
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 ==

[aur-dev] [PATCH] pkgsubmit.php: Remove stray "" tag

2012-07-09 Thread canyonknight
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; ?> -

<    1   2