Файл: gamele.ru/modules/api/map.php
Строк: 126
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
session_start();
include($_SERVER["DOCUMENT_ROOT"]."/includes/config.inc.php");
include(DROOT."/includes/functions.php");
include(DROOT."/includes/database/BotsGroup.php");
$pers = GetUser();
echo'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>GameLE - Карта земель</title>
<link type="text/css" rel="stylesheet" href="/css/mapinfo.css" />
</head>
<body style="margin:0;">
<table border=0 cellpadding="0" cellspacing="0" align="center" width=600 height=20>
<tr align=center><td align=right width=49%><a href="?map=1" style="color:#cc0000"><b>Окрестность Асгарда</b></a></td><td width=2%> | </td><td width=49% align=left><a href="?map=2" style="color:#cc0000"><b>Окрестность Эринграда</b></a></td></tr>
</table>';
if($_GET['map']==1){
echo'<table border="1" cellpadding="0" cellspacing="0" align="center" width="2890" height="1890">';
for($y=992;$y<=1010;$y++){
echo'<tr>';
for($x=982;$x<=1010;$x++){
$i++;
$location = mysql_fetch_assoc(mysql_query("SELECT * FROM `nature` WHERE `x` = '".$x."' AND `y` = '".$y."'"));
$bots = mysql_fetch_assoc(mysql_query("SELECT * FROM `nature_bots` WHERE `x` = '".$x."' AND `y` = '".$y."' AND `group`<'100'"));
echo'<td background="http://image.gamele.ru/map/world/'.(($location)?'day':'night').'/'.$y.'/'.$x.'_'.$y.'.jpg" valign="top" width="100" height="100"><b class="go-'.(($location)?(($bots)?'bots':'yes'):'no').'"> 8-'.$i.' </b><br />'.(($bots)?'<font class="Bot-info">'.preg_replace("/, /","<br />",$BotGroup[$bots['group']]['1']).'</font>':'').'<br/><br/><br/>'.(($location['x']=='1000' and $location['y']=='1000' or $location['x']=='996' and $location['y']=='997' or $location['x']=='1008' and $location['y']=='1009')?'<font class="loc">'.$location['city'].'</font>':'').' '.(($location['x']=='995' and $location['y']=='999')?'<font class="loc">Озеро</font>':'').'</td>';
}
echo'</tr>';
}
echo'</table>';
}
if($_GET['map']==2){
echo'<table border="1" cellpadding="0" cellspacing="0" align="center" width="2890" height="1890">';
for($y=973;$y<=991;$y++){
echo'<tr>';
for($x=952;$x<=981;$x++){
$i++;
$location = mysql_fetch_assoc(mysql_query("SELECT * FROM `nature` WHERE `x` = '".$x."' AND `y` = '".$y."'"));
$bots = mysql_fetch_assoc(mysql_query("SELECT * FROM `nature_bots` WHERE `x` = '".$x."' AND `y` = '".$y."' AND `group`<'100'"));
echo'<td background="http://image.gamele.ru/map/world/'.(($location)?'day':'night').'/'.$y.'/'.$x.'_'.$y.'.jpg" valign="top" width="100" height="100"><b class="go-'.(($location)?(($bots)?'bots':'yes'):'no').'"> 4-'.$i.' </b><br />'.(($bots)?'<font class="Bot-info">'.preg_replace("/, /","<br />",$BotGroup[$bots['group']]['1']).'</font>':'').'</td>';
}
echo'</tr>';
}
echo'</table>';
}
if($_GET['map']==3){
echo'<table border="1" cellpadding="0" cellspacing="0" align="center" width="2890" height="1890">';
for($y=954;$y<=972;$y++){
echo'<tr>';
for($x=952;$x<=979;$x++){
$i++;
$location = mysql_fetch_assoc(mysql_query("SELECT * FROM `nature` WHERE `x` = '".$x."' AND `y` = '".$y."'"));
$bots = mysql_fetch_assoc(mysql_query("SELECT * FROM `nature_bots` WHERE `x` = '".$x."' AND `y` = '".$y."' AND `group`<'100'"));
echo'<td background="http://image.gamele.ru/map/world/'.(($location)?'day':'night').'/'.$y.'/'.$x.'_'.$y.'.jpg" valign="top" width="100" height="100"><b class="go-'.(($location)?(($bots)?'bots':'yes'):'no').'"> 4-'.$i.' </b><br />'.(($bots)?'<font class="Bot-info">'.preg_replace("/, /","<br />",$BotGroup[$bots['group']]['1']).'</font>':'').'</td>';
}
echo'</tr>';
}
echo'</table>';
}
if($_GET['map']==4){
echo'<table border="1" cellpadding="0" cellspacing="0" align="center" width="2890" height="1890">';
for($y=1011;$y<=1029;$y++){
echo'<tr>';
for($x=1000;$x<=1030;$x++){
$i++;
$location = mysql_fetch_assoc(mysql_query("SELECT * FROM `nature` WHERE `x` = '".$x."' AND `y` = '".$y."'"));
$bots = mysql_fetch_assoc(mysql_query("SELECT * FROM `nature_bots` WHERE `x` = '".$x."' AND `y` = '".$y."' AND `group`<'100'"));
echo'<td background="http://image.gamele.ru/map/world/'.(($location)?'day':'night').'/'.$y.'/'.$x.'_'.$y.'.jpg" valign="top" width="100" height="100"><b class="go-'.(($location)?(($bots)?'bots':'yes'):'no').'"> 4-'.$i.' </b><br />'.(($bots)?'<font class="Bot-info">'.preg_replace("/, /","<br />",$BotGroup[$bots['group']]['1']).'</font>':'').'</td>';
}
echo'</tr>';
}
echo'</table>';
}
echo'
</body>
</HTML>';
?>