echo '</optgroup>'; } echo "</select>"; } $area = $area == 0 ? @$list['area'][0]['id'] : $area; $map = $map == -1 ? @$list['map'][0]['id'] : $map; } echo "<script type=\"text/javascript\" src=\"js/mapper.js\"></script>"; echo "<div id=mapper>"; } //============================================================================== if (isset($_REQUEST['gps'])) { renderGPSMap("GPS", $width, $pointsList->points); // echo "<script type=\"text/javascript\">cacheMap('?map=".$map.$ajaxptr."gps')</script>"; } else { if ($area > 0) { renderArea($area, $width, $pointsList->points); // echo "<script type=\"text/javascript\">cacheMap('?area=".$area.$ajaxptr."')</script>"; } else { if ($map >= 0) { renderMap($map, $width, $pointsList->points); // echo "<script type=\"text/javascript\">cacheMap('?map=".$map.$ajaxptr."')</script>"; } else { echo $lang['map_no_found']; } } } //============================================================================== if (!$ajaxmode) { echo "</div>"; }
if ($lang['www_zone']) { echo "<a href=\"" . sprintf($lang['www_zone'], $entry) . "\" target=\"_blank\"\">" . sprintf($lang['www_zone'], $entry) . "</a><br>"; } if ($zentry != $entry) { echo $area['name'] . '<br>'; } echo "<div id=mapper>"; } $pointsList = new mapPoints(); if ($npc_id) { $pointsList->addNpc($npc_id, $map); } if ($obj_id) { $pointsList->addGo($obj_id, $map); } renderArea($gZoneToAreaImage[$zentry], $width, $pointsList->points); if ($ajaxmode == 0) { echo "</div>"; echo "<script type=\"text/javascript\" src=\"js/mapper.js\"></script>"; echo "<script type=\"text/javascript\">cacheMap('{$baseLink}')</script>"; } } else { if ($map && !isset($_REQUEST['mark'])) { if ($ajaxmode == 0) { echo "<div id=mapper>"; } if ($npc_id || $obj_id) { renderMap($map, $width, createPointsList($npc_id, $obj_id)); } if ($ajaxmode == 0) { echo "</div>";
static function renderRarea($input, $params, $parser, $frame) { global $extr; try { if (!property_exists($parser, 'extR')) { throw new Exception('Rform.php: Rform is missing'); } return renderArea($input, $params, $parser, $frame); } catch (Exception $e) { $extr->exception_log($e); return '<pre style="color:red">' . htmlentities($e->getMessage()) . '</pre>in<pre>' . htmlentities(new HTMLtag('Rarea', $params)) . '</pre>'; } }
$map = @$_REQUEST['map']; if ($area) { $mob_id = @$_REQUEST['npc']; $obj_id = @$_REQUEST['obj']; $list = 0; if ($mob_id) { $list = $dDB->select("SELECT * FROM `creature` WHERE `id` = ?d", $mob_id); } else { if ($obj_id) { $list = $dDB->select("SELECT * FROM `gameobject` WHERE `id` = ?d", $obj_id); } } if ($area == 0 && $list) { $area = getAreaIdFromPoint($list[0]['map'], $list[0]['position_x'], $list[0]['position_y'], $list[0]['position_z']); } renderArea($area, @$_REQUEST['width'], $list); } else { if ($map) { $mob_id = @$_REQUEST['npc']; $obj_id = @$_REQUEST['obj']; $list = 0; if ($mob_id) { $list = $dDB->select("SELECT * FROM `creature` WHERE `id` = ?d", $mob_id); } else { if ($obj_id) { $list = $dDB->select("SELECT * FROM `gameobject` WHERE `id` = ?d", $obj_id); } } renderMap($map, @$_REQUEST['width'], $list); } }