summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-18 08:23:27 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-18 08:23:27 +0200
commit7ad4bc352d678ec011af50d7be8e159d26a8a749 (patch)
treedb117fd508a9e4d58af85a6f1f46a6d43dd3fa1e /web/html
parent51b8213ff1ba1f4db8396684f2afb82f0e38a90f (diff)
downloadaurweb-7ad4bc352d678ec011af50d7be8e159d26a8a749.tar.xz
Use virtual paths for voters page
Link to "/packages/$pkgname/voters/" instead of using "/voters/" and a get parameter to request a specific package by ID. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/html/index.php b/web/html/index.php
index 3539c5a..df0d133 100644
--- a/web/html/index.php
+++ b/web/html/index.php
@@ -13,6 +13,12 @@ if (isset($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
$_GET['N'] = $tokens[2];
if (isset($tokens[3])) {
+ if ($tokens[3] == 'voters') {
+ $_GET['ID'] = pkgid_from_name($tokens[2]);
+ include('voters.php');
+ return;
+ }
+
/* TODO: Remove support for legacy URIs and move these
* actions to separate modules. */
switch ($tokens[3]) {