From 44f0139e13c64278555afcc10444304fe1f74043 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Tue, 17 Dec 2013 14:07:45 -0500 Subject: [PATCH] Cleaning up some stuff, added some rewrites --- conf/nginx.conf | 3 +++ modules/leaderboard/edit.php | 15 +++++++++++++++ templates/__shared/index.phtml | 1 + templates/leaderboards.phtml | 2 +- 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 modules/leaderboard/edit.php diff --git a/conf/nginx.conf b/conf/nginx.conf index 2fa77d2..c575337 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -42,6 +42,9 @@ server break; } + # Accommodate UID's in the URI + rewrite ^/(.+)/(\d+)$ /index.php?request=$1&uid=$2 last; + # and the rest rewrite ^/(.+)$ /index.php?request=$1 last; } diff --git a/modules/leaderboard/edit.php b/modules/leaderboard/edit.php new file mode 100644 index 0000000..bd3debf --- /dev/null +++ b/modules/leaderboard/edit.php @@ -0,0 +1,15 @@ + diff --git a/templates/__shared/index.phtml b/templates/__shared/index.phtml index 3916808..fd268d7 100644 --- a/templates/__shared/index.phtml +++ b/templates/__shared/index.phtml @@ -48,6 +48,7 @@ { $links = array( '/leaderboards' => 'My Leaderboards', + '/api' => 'API Documentation', '/contact' => 'Contact Us', '/logout' => 'Logout', ); diff --git a/templates/leaderboards.phtml b/templates/leaderboards.phtml index 441fdeb..100383c 100644 --- a/templates/leaderboards.phtml +++ b/templates/leaderboards.phtml @@ -19,7 +19,7 @@ if ($this->module['leaderboards']) ?> - module['names'][$uid]; ?> + module['names'][$uid]; ?> Delete