// Kami Multi Browser Window Attack Fix if (array_key_exists('planet_selected', $_SESSION) === false || $_SESSION['planet_selected'] != $planet_id) { Tki\AdminLog::writeLog($pdo_db, LOG_MULTI_BROWSER, "{$request->server->get('REMOTE_ADDR')}|{$playerinfo['ship_id']}|Tried to Attack without clicking on the Planet."); echo "You need to Click on the planet first.<br><br>"; Tki\Text::gotomain($pdo_db, $lang); Tki\Footer::display($pdo_db, $lang, $tkireg, $template); die; } unset($_SESSION['planet_selected']); $retOwnerInfo = null; $owner_found = Tki\Planet::getOwner($pdo_db, $planetinfo['planet_id'], $retOwnerInfo); if ($owner_found === true && $retOwnerInfo !== null) { if ($retOwnerInfo['team'] == $playerinfo['team'] && ($playerinfo['team'] != 0 || $retOwnerInfo['team'] != 0)) { echo "<div style='color:#f00;'>Look we have told you, You cannot attack a Friendly Owned Private Planet!</div>\n"; } else { Planet::planetCombat($pdo_db, $db, $lang, $langvars, $tkireg, $template, $playerinfo, $ownerinfo, $planetinfo); } } } elseif ($command == "bom") { // Check to see if sure... if ($planetinfo['sells'] == "Y" && $tkireg->allow_sofa) { $langvars['l_planet_buy_link'] = "<a href=planet.php?planet_id={$planet_id}&command=buy>" . $langvars['l_planet_buy_link'] . "</a>"; $langvars['l_planet_buy'] = str_replace("[buy]", $langvars['l_planet_buy_link'], $langvars['l_planet_buy']); echo $langvars['l_planet_buy'] . "<br>"; } else { echo $langvars['l_planet_not_selling'] . "<br>"; } $langvars['l_planet_att_link'] = "<a href=planet.php?planet_id={$planet_id}&command=attac>" . $langvars['l_planet_att_link'] . "</a>"; $langvars['l_planet_att'] = str_replace("[attack]", $langvars['l_planet_att_link'], $langvars['l_planet_att']); $langvars['l_planet_scn_link'] = "<a href=planet.php?planet_id={$planet_id}&command=scan>" . $langvars['l_planet_scn_link'] . "</a>"; $langvars['l_planet_scn'] = str_replace("[scan]", $langvars['l_planet_scn_link'], $langvars['l_planet_scn']);