This commit is contained in:
2025-09-15 16:30:24 -06:00
parent a4ff18076a
commit 6e23de8f12
61 changed files with 1103 additions and 687 deletions

30
irpg-web/worldmap.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
include("config.php");
$irpg_page_title = "World Map";
$irpg_page_desc = "IdleRPG World Map";
include("header.php");
?>
<h1>World Map</h1>
<p>[offline users are red, online users are blue]</p>
<div id="map">
<img src="makeworldmap.php" alt="IdleRPG World Map" title="IdleRPG World Map" usemap="#world" border="0" />
<map id="world" name="world">
<?php
$file = fopen($irpg_db,"r");
fgets($file);
while($location=fgets($file)) {
list($who,,,,,,,,,,$x,$y) = explode("\t",trim($location));
echo " <area shape=\"circle\" coords=\"".$x.",".$y.",4\" alt=\"".htmlentities($who).
"\" href=\"playerview.php?player=".urlencode($who)."\" title=\"".htmlentities($who)."\" />\n";
}
fclose($file);
?>
</map>
</div>
<?php
include("footer.php");
?>