source: irpg/trunk/htdocs/worldmap.php@ 1452

Last change on this file since 1452 was 1451, checked in by skalpette, 19 years ago

Import initial

File size: 1.2 KB
Line 
1<?
2 include("config.php");
3 $irpg_page_title = "Carte du monde";
4 include("header.php");
5?>
6
7<h1>Carte du monde</h1>
8<p>[Les joueurs offline sont en rouge, les online en bleu, les objets normaux en orange et les objets uniques en jaune]</p>
9
10
11<div id="map">
12 <img src="makeworldmap.php" alt="Carte du monde de IdleRPG" title="Carte du monde de IdleRPG" usemap="#world" border="0" />
13 <map id="world" name="world">
14<?
15 $file = fopen($irpg_db,"r");
16 fgets($file,1024);
17 $itemfile = fopen($irpg_itemdb,"r");
18 fgets($itemfile,1024);
19 while($location=fgets($file,1024)) {
20 list($who,,,,,,,,,,$x,$y) = explode("\t",trim($location));
21 print " <area shape=\"circle\" coords=\"".$x.",".$y.",".$crosssize."\" alt=\"".htmlentities($who).
22 "\" href=\"playerview.php?player=".urlencode($who)."\" title=\"".htmlentities($who)."\" />\n";
23 }
24 while ($line=fgets($itemfile,1024)) {
25 list($x,$y,$type,$level) = explode("\t",trim($line));
26 print " <area shape=\"circle\" coords=\"".$x.",".$y.",".$crosssize."\" alt=\"".htmlentities($type." [".$level."]").
27 "\" title=\"".htmlentities($type." [".$level."]")."\" />\n";
28 }
29 fclose($file);
30?>
31 </map>
32</div>
33
34<?include("footer.php");?>
Note: See TracBrowser for help on using the repository browser.