changeset 288:4e6886674e40 gmap2

Check markers.json file for latest update timestamp.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 31 May 2016 16:21:21 +0300
parents 695d01a321ec
children 07530034b221
files index.php
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/index.php	Wed Mar 09 22:41:06 2016 +0200
+++ b/index.php	Tue May 31 16:21:21 2016 +0300
@@ -10,8 +10,9 @@
 //
 // Generic settings
 //
+$lastMTime = filemtime("markers.json");
 $pageCharset = "UTF-8";
-$pageVersion = "rev:2016-01-08";
+$pageVersion = " [updated ".date("D d.m.Y H:i:s T", $lastMTime)."]";
 
 $pageTitle1 = "BatMUD: The Age of Exiles";
 $pageTitle2 = "Google Maps Hack";
@@ -73,7 +74,8 @@
       <a id="headlogo" href="http://www.bat.org/"></a>
       <div id="headcontent">
         <h1><?php echo $pageTitle1 ?></h1>
-        <h2><?php echo $pageTitle2.(isset($pageVersion) ? " ".$pageVersion : "") ?></h2>
+        <h2><?php echo $pageTitle2 ?></h2>
+        <div class="version"><?php echo $pageVersion ?></div>
         <div class="credits"><?php echo $pageBy ?></div>
         <div class="controls">
 <?php