-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathworldmap.php
More file actions
34 lines (30 loc) · 1.2 KB
/
worldmap.php
File metadata and controls
34 lines (30 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?
include("config.php");
$irpg_page_title = "World Map";
include("header.php");
?>
<h1>World Map</h1>
<p>[offline users are red, online users are blue, normal items are orange, unique items are yellow]</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,1024);
$itemfile = fopen($irpg_itemdb,"r");
fgets($itemfile,1024);
while($location=fgets($file,1024)) {
list($who,,,,,,,,,,$x,$y) = explode("\t",trim($location));
print " <area shape=\"circle\" coords=\"".$x.",".$y.",".$crosssize."\" alt=\"".htmlentities($who).
"\" href=\"playerview.php?player=".urlencode($who)."\" title=\"".htmlentities($who)."\" />\n";
}
while ($line=fgets($itemfile,1024)) {
list($x,$y,$type,$level) = explode("\t",trim($line));
print " <area shape=\"circle\" coords=\"".$x.",".$y.",".$crosssize."\" alt=\"".htmlentities($type." [".$level."]").
"\" title=\"".htmlentities($type." [".$level."]")."\" />\n";
}
fclose($file);
?>
</map>
</div>
<?include("footer.php");?>