Remove the static high score page.

Don't create it, change all links, and redirect any requests.
This commit is contained in:
John "Elwin" Edwards 2014-01-03 13:02:29 -05:00
parent d34e211a3f
commit dfd8098844
14 changed files with 20 additions and 16 deletions

View file

@ -333,6 +333,11 @@ $HTTP["url"] =~ "\.pdf$" {
#$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

View file

@ -46,7 +46,7 @@ server.modules = (
# "mod_alias",
# "mod_auth",
# "mod_evasive",
# "mod_redirect",
"mod_redirect",
# "mod_rewrite",
"mod_setenv",
# "mod_usertrack",

View file

@ -34,9 +34,8 @@ for game in rlgall.gamelist:
# 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)

View file

@ -45,7 +45,7 @@ tblend = '</div>\n'
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>
"""

View file

@ -16,6 +16,6 @@ up and down levels.</p>
<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>

View file

@ -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>

View file

@ -15,6 +15,6 @@ and distributed with BSD. This was the first widely-played version of Rogue.</p>
<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>

View file

@ -15,6 +15,6 @@ and distributed with BSD. It is called V4 because it has more in common with the
<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>

View file

@ -15,6 +15,6 @@ created for Unix.</p>
<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>

View file

@ -16,6 +16,6 @@ final version, numbered 9.0, was completed in 1984.</p>
<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>

View file

@ -25,6 +25,6 @@ wrong places, try making your terminal bigger. Unfortunately, ttyrecs don't tell
<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>

View file

@ -25,6 +25,6 @@ free MacBook and $100 for an Apple Developer account.</p>
<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>

View file

@ -36,6 +36,6 @@ of historical roguelikes is being restored and made available for play on this s
<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>

View file

@ -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>