ogamespec / ogame-opensource

This is revived OGame v 0.84 with old design.
Creative Commons Zero v1.0 Universal
81 stars 38 forks source link

Strange wtf in SpyArrive in fleet.php #136

Closed ogamespec closed 2 months ago

ogamespec commented 3 months ago

This:

    // Send a message to other player about spying.
    $text = va(loca_lang("FLEET_SPY_OTHER", $target_user['lang']), 
            $origin['name'],
            "<a onclick=\"showGalaxy(".$origin['g'].",".$origin['s'].",".$origin['p'].");\" href=\"#\">[".$origin['g'].":".$origin['s'].":".$origin['p']."]</a>",
            $target['name'],
            "<a onclick=\"showGalaxy(".$target['g'].",".$target['s'].",".$target['p'].");\" href=\"#\">[".$target['g'].":".$target['s'].":".$target['p']."]</a>",
            $counter ) . 
            "</td>\n";      // wtf?

What td for? Check.

ogamespec commented 2 months ago

Spy message body:

<tr>
<th>
</th>
<th>07-09 20:32:35</th>
<th>Наблюдение </th>
<th>Шпионаж </th>
</tr>
<tr>
<td class="b"> </td>
<td class="b" colspan="3">
Чужой флот с планеты VANOHEIM
<a onclick="showGalaxy(1,412,8);" href="#">[1:412:8]</a>
был обнаружен вблизи от планеты | Durance of Hate
<a onclick="showGalaxy(1,414,4);" href="#">[1:414:4]</a>
. Шанс на защиту от шпионажа: 46 %
</td>
</tr>
ogamespec commented 2 months ago

OOS:

<tr><td class="b"> </td><td class="b" colspan="3">
Чужой флот с планеты Главная планета
<a onclick="showGalaxy(1,1,4);" href="#">[1:1:4]</a>
был обнаружен вблизи от планеты PLANET_HOME
<a onclick="showGalaxy(1,1,6);" href="#">[1:1:6]</a>
. Шанс на защиту от шпионажа: 0 %
</td>
</td></tr>

Redundant </td>