| 1 | <?php
 | 
|---|
| 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 | <?php
 | 
|---|
| 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 | <?php include("footer.php");?>
 | 
|---|