Mercurial > hg > batmud > maputils
changeset 509:622767fb509e
Added support for 'limbo'.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 17 Jan 2008 15:53:19 +0000 |
parents | 5671c25788c2 |
children | 7166c5f8831d |
files | www/config.inc.php www/index.php www/loc.php |
diffstat | 3 files changed, 18 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/www/config.inc.php Thu Jan 17 15:37:04 2008 +0000 +++ b/www/config.inc.php Thu Jan 17 15:53:19 2008 +0000 @@ -10,7 +10,11 @@ "roth" => "Rothikgen", "luc" => "Lucentium", "furn" => "Furnachia", - "deso" => "Desolathya" + "deso" => "Desolathya", +); + +$specialList = array( + "limbo" => "Limbo" ); function printURL($url)
--- a/www/index.php Thu Jan 17 15:37:04 2008 +0000 +++ b/www/index.php Thu Jan 17 15:53:19 2008 +0000 @@ -87,6 +87,9 @@ <li>List of <a href="latest.php">latest added locations</a>.</li> <li><a href="loc.php?c">A listing of player cities</a>, includes some player guild (secret society) info.</li> + + <li>List of <a href="http://tnsp.org/maps/loc.php?c&n=limbo">player cities still in "limbo"</a> (aka cities + that have not been placed in the new world.)</li> <li><a href="info.php">List of Wizards</a> - the incomplete "who is who" database of BatMUD immortals.</li>
--- a/www/loc.php Thu Jan 17 15:37:04 2008 +0000 +++ b/www/loc.php Thu Jan 17 15:53:19 2008 +0000 @@ -45,7 +45,7 @@ if (isset($_GET["n"])) { $setName = strtolower(basename($_GET["n"])); - if (isset($continentList[$setName]) && file_exists($setName.".loc")) { + if (file_exists($setName.".loc")) { readLocations($setName, $locTable, $onlyPCities); } else { echo "<h1>No such continent ID!</h1>"; @@ -69,6 +69,9 @@ echo " of "; if (isset($continentList[$setName])) echo $continentList[$setName]." continent in "; +else +if (isset($specialList[$setName])) + echo $specialList[$setName]." in "; echo "BatMUD"; if (isset($coderName)) echo " by ".$coderName; @@ -183,10 +186,13 @@ printf(" <td width=\"%d%%\" class=\"%s\">", (100 / $maxRow), $iv["continent"]); - - printURL($iv["continent"].".html#loc".$iv["x"]."_".$iv["y"]); - echo htmlentities($iv["name"])."</a>"; + if (isset($specialList[$iv["continent"]])) { + echo "<b>".htmlentities($iv["name"])."</b>"; + } else { + printURL($iv["continent"].".html#loc".$iv["x"]."_".$iv["y"]); + echo htmlentities($iv["name"])."</a>"; + } if (count($iv["coders"]) > 0 && $showCoders) { $isSG = preg_match("/[SG]/", $iv["flags"]);