From d6f89f97c08d7eeb805246dc94a835057d53243d Mon Sep 17 00:00:00 2001 From: canyonknight Date: Sat, 15 Sep 2012 10:02:10 -0400 Subject: Use URL rewriting for user account update page 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: canyonknight Signed-off-by: Lukas Fleischer --- web/html/index.php | 2 ++ web/template/account_edit_form.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/html/index.php b/web/html/index.php index 8013362b..0e368834 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -55,6 +55,8 @@ if (isset($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) { if (isset($tokens[3])) { if ($tokens[3] == 'edit') { $_REQUEST['Action'] = "DisplayAccount"; + } elseif ($tokens[3] == 'update') { + $_REQUEST['Action'] = "UpdateAccount"; } else { $_REQUEST['Action'] = "AccountInfo"; } diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php index 7da8e337..9b5b1d8b 100644 --- a/web/template/account_edit_form.php +++ b/web/template/account_edit_form.php @@ -1,4 +1,4 @@ -
+
-- cgit v1.2.3-24-g4f1b