changeset 36:09ef92dc4439

Remove the static high score page. Don't create it, change all links, and redirect any requests.
author John "Elwin" Edwards
date Fri, 03 Jan 2014 13:02:29 -0500
parents 6592cdd1fceb
children c045d4dcf88a
files lighttpd/lighttpd.conf lighttpd/modules.conf py/recorder.py py/rlgall.py web/about/arogue5.html web/about/index.html web/about/rogue3.html web/about/rogue4.html web/about/rogue5.html web/about/srogue.html web/about/ttyrec.html web/download.html web/index.html web/scoring/index.html
diffstat 14 files changed, 20 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/lighttpd/lighttpd.conf	Fri Jan 03 11:11:07 2014 -0500
+++ b/lighttpd/lighttpd.conf	Fri Jan 03 13:02:29 2014 -0500
@@ -333,6 +333,11 @@
 #$HTTP["host"] =~ "^www\.(.*)" {
 #  url.redirect            = ( "^/(.*)" => "http://%1/$1" )
 #}
+$HTTP["host"] =~ "^(.*)$" {
+  url.redirect = ( 
+    "^/scoring/highscores.html" => "http://%1/scoring/high.cgi?l=40"
+  )
+}
 
 ##
 ## which extensions should not be handle via static-file transfer
--- a/lighttpd/modules.conf	Fri Jan 03 11:11:07 2014 -0500
+++ b/lighttpd/modules.conf	Fri Jan 03 13:02:29 2014 -0500
@@ -46,7 +46,7 @@
 #  "mod_alias",
 #  "mod_auth",
 #  "mod_evasive",
-#  "mod_redirect",
+  "mod_redirect",
 #  "mod_rewrite",
   "mod_setenv",
 #  "mod_usertrack",
--- a/py/recorder.py	Fri Jan 03 11:11:07 2014 -0500
+++ b/py/recorder.py	Fri Jan 03 13:02:29 2014 -0500
@@ -34,9 +34,8 @@
 
 # All the databases have been updated.  Now make the pages.
 
-# Currently the high scores for all the games are on the same page.  If 
-# they split up, this will have to change to a Game method.
-rlgall.highpage()
+# The high page has been replaced with a CGI script.
+#rlgall.highpage()
 
 for name in updatenames:
   rlgall.playerpage(name)
--- a/py/rlgall.py	Fri Jan 03 11:11:07 2014 -0500
+++ b/py/rlgall.py	Fri Jan 03 13:02:29 2014 -0500
@@ -45,7 +45,7 @@
 pend = """<div class="foot">
 <a href="/">rlgallery.org</a>
 <a href="/recent.cgi">Recent Games</a>
-<a href="/scoring/highscores.html">High Scores</a>
+<a href="/scoring/high.cgi">High Scores</a>
 </div>
 </body></html>
 """
--- a/web/about/arogue5.html	Fri Jan 03 11:11:07 2014 -0500
+++ b/web/about/arogue5.html	Fri Jan 03 13:02:29 2014 -0500
@@ -16,6 +16,6 @@
 <p>The <a href="http://rogue.rogueforge.net/">Roguelike Restoration Project</a> updated the game to run on modern systems.</p>
 <p>The Roguelike Gallery's version contains a few more bugfixes. <a href="/download.html">Download it here.</a></p>
 </div>
-<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/highscores.html">High Scores</a></div>
+<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/high.cgi">High Scores</a></div>
 </body>
 </html> 
--- a/web/about/index.html	Fri Jan 03 11:11:07 2014 -0500
+++ b/web/about/index.html	Fri Jan 03 13:02:29 2014 -0500
@@ -28,6 +28,6 @@
 data is stored using <a href="http://www.postgresql.org/">PostgreSQL</a>.</p>
 <p>The Web player was created with <a href="http://nodejs.org/">node.js</a>.</p>
 </div>
-<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/highscores.html">High Scores</a></div>
+<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/high.cgi">High Scores</a></div>
 </body>
 </html> 
--- a/web/about/rogue3.html	Fri Jan 03 11:11:07 2014 -0500
+++ b/web/about/rogue3.html	Fri Jan 03 13:02:29 2014 -0500
@@ -15,6 +15,6 @@
 <p>The Roguelike Gallery's version has been further modified to work with dgamelaunch and to log the results of all games.</p>
 <p>The <a href="/files/roguelike-r109-src.tgz">source code</a> can be downloaded.</p>
 </div>
-<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/highscores.html">High Scores</a></div>
+<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/high.cgi">High Scores</a></div>
 </body>
 </html> 
--- a/web/about/rogue4.html	Fri Jan 03 11:11:07 2014 -0500
+++ b/web/about/rogue4.html	Fri Jan 03 13:02:29 2014 -0500
@@ -15,6 +15,6 @@
 <p>The Roguelike Gallery's version has been further modified to work with dgamelaunch and to log the results of all games.</p>
 <p>The <a href="/files/roguelike-r109-src.tgz">source code</a> can be downloaded.</p>
 </div>
-<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/highscores.html">High Scores</a></div>
+<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/high.cgi">High Scores</a></div>
 </body>
 </html> 
--- a/web/about/rogue5.html	Fri Jan 03 11:11:07 2014 -0500
+++ b/web/about/rogue5.html	Fri Jan 03 13:02:29 2014 -0500
@@ -15,6 +15,6 @@
 <p>The Roguelike Gallery's version has been further modified to work with dgamelaunch and to log the results of all games.</p>
 <p>The source code is <a href="/files/roguelike-r109-src.tgz">available for download</a>.</p>
 </div>
-<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/highscores.html">High Scores</a></div>
+<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/high.cgi">High Scores</a></div>
 </body>
 </html> 
--- a/web/about/srogue.html	Fri Jan 03 11:11:07 2014 -0500
+++ b/web/about/srogue.html	Fri Jan 03 13:02:29 2014 -0500
@@ -16,6 +16,6 @@
 <p>The Roguelike Gallery modified Super-Rogue to work with rlgallery.org's system, fixed a few bugs which made winning easy, and added support for the arrow keys.</p>
 <p>The source code is <a href="/files/roguelike-r109-src.tgz">available for download</a>.</p>
 </div>
-<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/highscores.html">High Scores</a></div>
+<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/high.cgi">High Scores</a></div>
 </body>
 </html> 
--- a/web/about/ttyrec.html	Fri Jan 03 11:11:07 2014 -0500
+++ b/web/about/ttyrec.html	Fri Jan 03 13:02:29 2014 -0500
@@ -25,6 +25,6 @@
 <span class="metavar">&lt;escape&gt;</span>[1;<span class="metavar">&lt;number of rows&gt;</span>r )</p>
 <p>Note: if you are using ipbt, you must also tell ipbt what size terminal to use. Check ipbt's documentation.</p>
 </div>
-<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/highscores.html">High Scores</a></div>
+<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/high.cgi">High Scores</a></div>
 </body>
 </html> 
--- a/web/download.html	Fri Jan 03 11:11:07 2014 -0500
+++ b/web/download.html	Fri Jan 03 13:02:29 2014 -0500
@@ -25,6 +25,6 @@
 <h2>Bugs?</h2>
 <p>If you find any problems, report them on <a href="https://bitbucket.org/ElwinR/rl/issues">Bitbucket</a>.</p>
 </div>
-<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/highscores.html">High Scores</a></div>
+<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/high.cgi">High Scores</a></div>
 </body>
 </html> 
--- a/web/index.html	Fri Jan 03 11:11:07 2014 -0500
+++ b/web/index.html	Fri Jan 03 13:02:29 2014 -0500
@@ -36,6 +36,6 @@
 <p><strong>Feb. 2, 2012</strong>: Everything should be recovered from the failed upgrade. Please report any problems.</p>
 <p><strong>Feb. 4, 2011</strong>: Some updates to the website. The <a href="/archive.cgi">ttyrec finder</a> is now usable.</p>
 </div>
-<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/highscores.html">High Scores</a></div>
+<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/high.cgi">High Scores</a></div>
 </body>
 </html> 
--- a/web/scoring/index.html	Fri Jan 03 11:11:07 2014 -0500
+++ b/web/scoring/index.html	Fri Jan 03 13:02:29 2014 -0500
@@ -11,10 +11,10 @@
 <div class="content">
 <p>The Guild keeps a record of all brave Rogues who venture into the Dungeons of Doom.</p>
 <ul>
-<li><a href="./highscores.html">High Scores</a></li>
+<li><a href="./high.cgi">High Scores</a></li>
 <li><a href="./players/">Explorers</a></li>
 </ul>
 </div>
-<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/highscores.html">High Scores</a></div>
+<div class="foot"><a href="/">rlgallery.org</a> <a href="/recent.cgi">Recent Games</a> <a href="/scoring/high.cgi">High Scores</a></div>
 </body>
 </html>