Mercurial > hg > batmud > maputils
changeset 1710:88c371ceebe1
Show last changed timestamp for HCBat map/locations.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 12 Oct 2017 12:33:15 +0300 |
parents | 5adf497ffcbf |
children | fed7522d4b03 |
files | www/index.php |
diffstat | 1 files changed, 13 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/www/index.php Thu Oct 12 12:32:32 2017 +0300 +++ b/www/index.php Thu Oct 12 12:33:15 2017 +0300 @@ -175,17 +175,23 @@ mpPrintLine($n++, "batcity", "Old BatCity map", TRUE); mpPrintTR($n++); +$filename = "hcbat"; echo " <td>". - mpGetURLLink("hcbat.html", "HCBat map"). + mpGetURLLink($filename.".html", "HCBat map"). " ". - mpGetURLLink("hcbat.htm", "(*)"). - " [".mpGetURLLink("hcbat.ansi", "ANSI")."]". + mpGetURLLink($filename.".htm", "(*)"). + " [".mpGetURLLink($filename.".ansi", "ANSI")."]". "</td>\n". - " <td>[<a href=\"loc.php?n=hcbat\">Locations</a>] ". - "[<a href=\"loc.php?n=hcbat&c\">PCities</a>] ". - "[<a href=\"quests.php?hcbat\">Quests</a>] ". - "</td>\n". + " <td>[<a href=\"loc.php?n=".$filename."\">Locations</a>] ". + "[<a href=\"loc.php?n=".$filename."&c\">PCities</a>] ". + "[<a href=\"quests.php?".$filename."\">Quests</a>] ". + "</td>\n"; + +if (($mtime = mpCheckMTime($filename.".loc")) > 0) + echo " <td>".mpGetMTimeStr($mtime)."</td>\n"; + +echo " </tr>\n". "</table>\n". "<div>\n".