Add project files.

This commit is contained in:
2025-09-12 19:42:46 -06:00
parent 0ffd916805
commit a4ff18076a
37 changed files with 6089 additions and 0 deletions

27
irpg/worldmap.php Normal file
View File

@@ -0,0 +1,27 @@
<?
include("config.php");
$irpg_page_title = "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">
<?
$file = fopen($irpg_db,"r");
fgets($file);
while($location=fgets($file)) {
list($who,,,,,,,,,,$x,$y) = explode("\t",trim($location));
print " <area shape=\"circle\" coords=\"".$x.",".$y.",4\" alt=\"".htmlentities($who).
"\" href=\"playerview.php?player=".urlencode($who)."\" title=\"".htmlentities($who)."\" />\n";
}
fclose($file);
?>
</map>
</div>
<?include("footer.php");?>