Mercurial > hg > batmud > maputils
diff www/loc.php @ 509:622767fb509e
Added support for 'limbo'.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 17 Jan 2008 15:53:19 +0000 |
parents | 7e6ba7c5bbc3 |
children | 50ce4311214e |
line wrap: on
line diff
--- 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"]);