[aur-dev] [PATCH 0/6] [RFC] Virtual path feature

Lukas Fleischer archlinux at cryptocrack.de
Sun Jul 15 17:23:49 EDT 2012


This implements nicer looking URLs, such as "/packages/" instead of
"/packages.php", "/packages/$pkgname/" instead of "/packages.php?ID=$id"
etc.

Note that these patches are not ready to be merged yet but I'd like to
get some comments. We'd probably also have to add rewrite rules to our
AUR setup on sigurd or add legacy rules to the routing back end to
ensure old URLs still work.

Lukas Fleischer (6):
  Add routing front/back ends
  Use absolute URIs for style sheets and images
  Use virtual path feature for links
  Use virtual paths for package details
  Redirect to the home page after successful login
  web/html/pkgsubmit.php: Remove stray "</div>"

 web/html/addvote.php                    |   2 +-
 web/html/home.php                       | 123 ++++++++++++++++++++++++
 web/html/index.php                      | 160 ++++++++------------------------
 web/html/login.php                      |   4 +-
 web/html/logout.php                     |   2 +-
 web/html/passreset.php                  |   6 +-
 web/html/pkgsubmit.php                  |   6 +-
 web/html/tu.php                         |   8 +-
 web/html/voters.php                     |   4 +-
 web/lib/acctfuncs.inc.php               |   6 +-
 web/lib/config.inc.php.proto            |   4 +
 web/lib/pkgfuncs.inc.php                |   7 +-
 web/lib/routing.inc.php                 |  57 ++++++++++++
 web/template/account_details.php        |   2 +-
 web/template/account_edit_form.php      |   2 +-
 web/template/account_search_results.php |   8 +-
 web/template/actions_form.php           |   2 +-
 web/template/header.php                 |  26 +++---
 web/template/pkg_comments.php           |   8 +-
 web/template/pkg_details.php            |  14 +--
 web/template/pkg_search_form.php        |   2 +-
 web/template/pkg_search_results.php     |  10 +-
 web/template/search_accounts_form.php   |   2 +-
 web/template/stats/updates_table.php    |   2 +-
 web/template/stats/user_table.php       |   4 +-
 web/template/tu_details.php             |   4 +-
 web/template/tu_list.php                |   4 +-
 27 files changed, 291 insertions(+), 188 deletions(-)
 create mode 100644 web/html/home.php
 create mode 100644 web/lib/routing.inc.php

-- 
1.7.11.2



More information about the aur-dev mailing list