diff --git a/admin/bans_editor.php b/admin/bans_editor.php index e938b8567..ec4a0cf4b 100644 --- a/admin/bans_editor.php +++ b/admin/bans_editor.php @@ -313,7 +313,7 @@ Tki\Db::logDbErrors($pdo_db, $db, $resx, __LINE__, __FILE__); } - $query_string = "ip_address LIKE '" . $bans[0]['ban_mask'] ."'"; + $query_string = "ip_address LIKE '" . $bans[0]['ban_mask'] . "'"; for ($i = 1; $i < $nbbans; $i++) { $query_string = $query_string . " OR ip_address LIKE '" . $bans[$i]['ban_mask'] . "'"; diff --git a/attack.php b/attack.php index f102cf75b..ba0016f21 100644 --- a/attack.php +++ b/attack.php @@ -421,7 +421,7 @@ else { $targetarmor = $targetarmor - $playerbeams; - echo $targetinfo['character_name'] . $langvars['l_att_ashit'] ." " . $playerbeams . " " . $langvars['l_att_dmg'] . ".
"; + echo $targetinfo['character_name'] . $langvars['l_att_ashit'] . " " . $playerbeams . " " . $langvars['l_att_dmg'] . ".
"; } } @@ -549,7 +549,7 @@ if ($targetfighters > $playerfighters) { - echo $langvars['l_att_ylostf'] ."
"; + echo $langvars['l_att_ylostf'] . "
"; $tempplayfighters = 0; } else @@ -572,7 +572,7 @@ else { $targetarmor = $targetarmor - $playerfighters; - echo $targetinfo['character_name'] . " " . $langvars['l_att_ashit'] ." " . $playerfighters . " " . $langvars['l_att_dmg'] . ".
"; + echo $targetinfo['character_name'] . " " . $langvars['l_att_ashit'] . " " . $playerfighters . " " . $langvars['l_att_dmg'] . ".
"; } } diff --git a/bounty.php b/bounty.php index 788c6568c..d6847ba5b 100644 --- a/bounty.php +++ b/bounty.php @@ -332,7 +332,7 @@ Tki\Db::logDbErrors($pdo_db, $db, $someres, __LINE__, __FILE__); $details = $someres->fields; echo ""; - echo "". $details['character_name'] .""; + echo "". $details['character_name'] . ""; echo "" . $bounties[$i]['total_bounty'] . ""; echo ""; diff --git a/classes/Db.php b/classes/Db.php index b2a75d23f..f78963f0c 100644 --- a/classes/Db.php +++ b/classes/Db.php @@ -138,7 +138,7 @@ public function initDb($db_layer) { $err_msg = 'The Kabal Invasion - General error: Unable to connect to the ' . $db_type . ' Database.
Database Error: '. - $e->getMessage() ."
\n"; + $e->getMessage() . "
\n"; die ($err_msg); } diff --git a/classes/Ibank.php b/classes/Ibank.php index 66f4c71fc..7f5bbbc9c 100644 --- a/classes/Ibank.php +++ b/classes/Ibank.php @@ -69,7 +69,7 @@ public static function ibankBorrow(\PDO $pdo_db, $lang, $langvars, \Tki\Reg $tki "" . "" . $langvars['l_ibank_amountowned'] . " :" . number_format($amount3, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " C
" . "" . - "---------------------------------

" . $langvars['l_ibank_loanreminder'] . "

\"" . $langvars['l_ibank_loanreminder2'] ."\"" . + "---------------------------------

" . $langvars['l_ibank_loanreminder'] . "

\"" . $langvars['l_ibank_loanreminder2'] . "\"" . "" . "" . $langvars['l_ibank_back'] . " " . $langvars['l_ibank_logout'] . "" . ""; @@ -105,7 +105,7 @@ public static function ibankWithdraw($langvars, $account) echo "" . $langvars['l_ibank_withdrawfunds'] . "
---------------------------------" . "" . "" . $langvars['l_ibank_fundsavailable'] . ":" . - "" . number_format($account['balance'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) ." C
" . + "" . number_format($account['balance'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " C
" . "" . "" . $langvars['l_ibank_selwithdrawamount'] . ":" . "
" . @@ -140,7 +140,7 @@ public static function ibankWithdraw2(\PDO $pdo_db, $lang, $langvars, $playerinf echo "" . $langvars['l_ibank_operationsuccessful'] . "
---------------------------------" . "" . - "" . number_format($amount, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) ." " . $langvars['l_ibank_creditstoyourship'] . "" . + "" . number_format($amount, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_ibank_creditstoyourship'] . "" . "" . $langvars['l_ibank_accounts'] . "
---------------------------------" . "" . "Ship Account :
" . $langvars['l_ibank_ibankaccount'] . " :" . @@ -799,7 +799,7 @@ public static function ibankDeposit2(\PDO $pdo_db, $lang, $langvars, $playerinfo echo "" . $langvars['l_ibank_operationsuccessful'] . "
---------------------------------" . "" . - "" . number_format($amount, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) ." " . $langvars['l_ibank_creditstoyou'] . "" . + "" . number_format($amount, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_ibank_creditstoyou'] . "" . "" . $langvars['l_ibank_accounts'] . "
---------------------------------" . "" . "" . $langvars['l_ibank_shipaccount'] . " :
" . $langvars['l_ibank_ibankaccount'] . " :" . @@ -957,7 +957,7 @@ public static function ibankDeposit(\PDO $pdo_db, $lang, $account, $playerinfo) echo "" . $langvars['l_ibank_depositfunds'] . "
---------------------------------" . "" . "" . $langvars['l_ibank_fundsavailable'] . " :" . - "" . number_format($playerinfo['credits'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) ." C
" . + "" . number_format($playerinfo['credits'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " C
" . "" . "" . $langvars['l_ibank_seldepositamount'] . " :" . "" . @@ -967,7 +967,7 @@ public static function ibankDeposit(\PDO $pdo_db, $lang, $account, $playerinfo) "" . "" . " " . - " You can deposit only ". number_format($credit_space, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." credits.
" . + " You can deposit only ". number_format($credit_space, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " credits.
" . " " . "" . "" . diff --git a/classes/Planet.php b/classes/Planet.php index b94cf96b3..1c9f8c89b 100644 --- a/classes/Planet.php +++ b/classes/Planet.php @@ -582,7 +582,7 @@ public static function planetCombat($pdo_db, $db, $lang, $langvars, \Tki\Reg $tk } else { - $langvars['l_cmb_youmaycapture'] = str_replace("[capture]", "" . $langvars['l_planet_capture1'] . "", $langvars['l_cmb_youmaycapture']); + $langvars['l_cmb_youmaycapture'] = str_replace("[capture]", "" . $langvars['l_planet_capture1'] . "", $langvars['l_cmb_youmaycapture']); echo "
" . $langvars['l_cmb_youmaycapture'] . "


"; \Tki\PlayerLog::writeLog($pdo_db, $db, $ownerinfo['ship_id'], LOG_PLANET_DEFEATED, "$planetinfo[name]|$playerinfo[sector]|$playerinfo[character_name]"); \Tki\Score::updateScore($pdo_db, $ownerinfo['ship_id'], $tkireg, $playerinfo); @@ -592,7 +592,7 @@ public static function planetCombat($pdo_db, $db, $lang, $langvars, \Tki\Reg $tk } else { - $langvars['l_cmb_youmaycapture'] = str_replace("[capture]", "" . $langvars['l_planet_capture1'] . "", $langvars['l_cmb_youmaycapture']); + $langvars['l_cmb_youmaycapture'] = str_replace("[capture]", "" . $langvars['l_planet_capture1'] . "", $langvars['l_cmb_youmaycapture']); echo "
" . $langvars['l_cmb_youmaycapture'] . "


"; \Tki\PlayerLog::writeLog($pdo_db, $db, $ownerinfo['ship_id'], LOG_PLANET_DEFEATED, "$planetinfo[name]|$playerinfo[sector]|$playerinfo[character_name]"); \Tki\Score::updateScore($pdo_db, $ownerinfo['ship_id'], $tkireg, $playerinfo); diff --git a/classes/PlanetReport.php b/classes/PlanetReport.php index 24e869ca1..cbf025afa 100644 --- a/classes/PlanetReport.php +++ b/classes/PlanetReport.php @@ -115,7 +115,7 @@ public static function standardReport($pdo_db, $db, $langvars, $playerinfo, $sor echo "" . $langvars['l_sector'] . ""; echo "" . $langvars['l_name'] . ""; echo "" . $langvars['l_ore'] . ""; - echo "" . $langvars['l_organics'] .""; + echo "" . $langvars['l_organics'] . ""; echo "" . $langvars['l_goods'] . ""; echo "" . $langvars['l_energy'] . ""; echo "" . $langvars['l_colonists'] . ""; @@ -172,7 +172,7 @@ public static function standardReport($pdo_db, $db, $langvars, $playerinfo, $sor } echo ""; - echo "". $planet[$i]['sector_id'] .""; + echo "". $planet[$i]['sector_id'] . ""; echo "" . $planet[$i]['name'] . ""; echo "" . number_format($planet[$i]['ore'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . ""; echo "" . number_format($planet[$i]['organics'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . ""; @@ -333,7 +333,7 @@ public static function planetProductionChange($pdo_db, $db, $langvars, $playerin } echo "\n"; - echo "". $planet[$i]['sector_id'] ."\n"; + echo "". $planet[$i]['sector_id'] . "\n"; echo "" . $planet[$i]['name'] . "\n"; echo "" . "" . "\n"; echo "" . "" . "\n"; diff --git a/classes/Traderoute.php b/classes/Traderoute.php index 37c4fbcb4..c9212d587 100644 --- a/classes/Traderoute.php +++ b/classes/Traderoute.php @@ -343,22 +343,22 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki // Determine if Source is Planet or Port if ($traderoute['source_type'] == 'P') { - echo $langvars['l_tdr_portin']." ".$source['sector_id']; + echo $langvars['l_tdr_portin'] . " " . $source['sector_id']; } elseif (($traderoute['source_type'] == 'L') || ($traderoute['source_type'] == 'C')) { - echo $langvars['l_tdr_planet']." ".$source['name']." in ".$sourceport['sector_id']; + echo $langvars['l_tdr_planet'] . " " . $source['name'] . " in " . $sourceport['sector_id']; } self::traderouteResultsSource(); // Determine if Destination is Planet or Port if ($traderoute['dest_type'] == 'P') { - echo $langvars['l_tdr_portin']." ".$dest['sector_id']; + echo $langvars['l_tdr_portin'] . " " . $dest['sector_id']; } elseif (($traderoute['dest_type'] == 'L') || ($traderoute['dest_type'] == 'C')) { - echo $langvars['l_tdr_planet']." ".$dest['name']." in ".$destport['sector_id']; + echo $langvars['l_tdr_planet'] . " " . $dest['name'] . " in " . $destport['sector_id']; } self::traderouteResultsDestination($tkireg); @@ -384,7 +384,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($colonists_buy != 0) { - echo $langvars['l_tdr_bought']." ".number_format($colonists_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_colonists']."
"; + echo $langvars['l_tdr_bought'] . " " . number_format($colonists_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_colonists'] . "
"; } $sourcecost -= $colonists_buy * $tkireg->colonist_price; @@ -407,7 +407,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($fighters_buy != 0) { - echo $langvars['l_tdr_bought']." ".number_format($fighters_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_fighters']."
"; + echo $langvars['l_tdr_bought'] . " " . number_format($fighters_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_fighters'] . "
"; } $sourcecost -= $fighters_buy * $tkireg->fighter_price; @@ -430,7 +430,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($torps_buy != 0) { - echo $langvars['l_tdr_bought']." ".number_format($torps_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_torps']."
"; + echo $langvars['l_tdr_bought'] . " " . number_format($torps_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_torps'] . "
"; } $sourcecost -= $torps_buy * $tkireg->torpedo_price; @@ -442,7 +442,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($torps_buy == 0 && $colonists_buy == 0 && $fighters_buy == 0) { - echo $langvars['l_tdr_nothingtotrade']."
"; + echo $langvars['l_tdr_nothingtotrade'] . "
"; } if ($traderoute['circuit'] == '1') @@ -479,11 +479,11 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki { if ($portfull == 1) { - echo $langvars['l_tdr_sold']." ".number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_ore']." (".$langvars['l_tdr_portisfull'].")
"; + echo $langvars['l_tdr_sold'] . " " . number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_ore'] . " (" . $langvars['l_tdr_portisfull'] . ")
"; } else { - echo $langvars['l_tdr_sold']." ".number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_ore']."
"; + echo $langvars['l_tdr_sold'] . " " . number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_ore'] . "
"; } } $playerinfo['ship_ore'] -= $ore_buy; @@ -508,11 +508,11 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki { if ($portfull == 1) { - echo $langvars['l_tdr_sold']." ".number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_goods']." (".$langvars['l_tdr_portisfull'].")
"; + echo $langvars['l_tdr_sold'] . " " . number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_goods'] . " (" . $langvars['l_tdr_portisfull'] . ")
"; } else { - echo $langvars['l_tdr_sold']." ".number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_goods']."
"; + echo $langvars['l_tdr_sold'] . " " . number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_goods'] . "
"; } } $playerinfo['ship_goods'] -= $goods_buy; @@ -537,11 +537,11 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki { if ($portfull == 1) { - echo $langvars['l_tdr_sold']." ".number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_organics']." (".$langvars['l_tdr_portisfull'].")
"; + echo $langvars['l_tdr_sold'] . " " . number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_organics'] . " (" . $langvars['l_tdr_portisfull'] . ")
"; } else { - echo $langvars['l_tdr_sold']." ".number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_organics']."
"; + echo $langvars['l_tdr_sold'] . " " . number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_organics'] . "
"; } } $playerinfo['ship_organics'] -= $organics_buy; @@ -565,11 +565,11 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki { if ($portfull == 1) { - echo $langvars['l_tdr_sold']." ".number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_energy']." (".$langvars['l_tdr_portisfull'].")
"; + echo $langvars['l_tdr_sold'] . " " . number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_energy'] . " (" . $langvars['l_tdr_portisfull'] . ")
"; } else { - echo $langvars['l_tdr_sold']." ".number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_energy']."
"; + echo $langvars['l_tdr_sold'] . " " . number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_energy'] . "
"; } } $playerinfo['ship_energy'] -= $energy_buy; @@ -592,13 +592,13 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $ore_buy = $source['port_ore']; if ($source['port_ore'] == 0) { - echo $langvars['l_tdr_bought']." ".number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_ore']."(".$langvars['l_tdr_portisempty'].")
"; + echo $langvars['l_tdr_bought'] . " " . number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_ore'] . "(" . $langvars['l_tdr_portisempty'] . ")
"; } } if ($ore_buy != 0) { - echo $langvars['l_tdr_bought']." ".number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_ore']."
"; + echo $langvars['l_tdr_bought'] . " " . number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_ore'] . "
"; } $playerinfo['ship_ore'] += $ore_buy; $sourcecost -= $ore_buy * $tkireg->ore_price1; @@ -620,13 +620,13 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $goods_buy = $source['port_goods']; if ($source['port_goods'] == 0) { - echo $langvars['l_tdr_bought']." ".number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_goods']." (".$langvars['l_tdr_portisempty'].")
"; + echo $langvars['l_tdr_bought'] . " " . number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_goods'] . " (" . $langvars['l_tdr_portisempty'] . ")
"; } } if ($goods_buy != 0) { - echo $langvars['l_tdr_bought']." ".number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_goods']."
"; + echo $langvars['l_tdr_bought'] . " " . number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_goods'] . "
"; } $playerinfo['ship_goods'] += $goods_buy; @@ -651,13 +651,13 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $organics_buy = $source['port_organics']; if ($source['port_organics'] == 0) { - echo $langvars['l_tdr_bought']." ".number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_organics']." (".$langvars['l_tdr_portisempty'].")
"; + echo $langvars['l_tdr_bought'] . " " . number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_organics'] . " (" . $langvars['l_tdr_portisempty'] . ")
"; } } if ($organics_buy != 0) { - echo $langvars['l_tdr_bought']." ".number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_organics']."
"; + echo $langvars['l_tdr_bought'] . " " . number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_organics'] . "
"; } $playerinfo['ship_organics'] += $organics_buy; @@ -681,13 +681,13 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $energy_buy = $source['port_energy']; if ($source['port_energy'] == 0) { - echo $langvars['l_tdr_bought']." ".number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_energy']." (".$langvars['l_tdr_portisempty'].")
"; + echo $langvars['l_tdr_bought'] . " " . number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_energy'] . " (" . $langvars['l_tdr_portisempty'] . ")
"; } } if ($energy_buy != 0) { - echo $langvars['l_tdr_bought']." ".number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_energy']."
"; + echo $langvars['l_tdr_bought'] . " " . number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_energy'] . "
"; } $playerinfo['ship_energy'] += $energy_buy; $sourcecost -= $energy_buy * $tkireg->energy_price1; @@ -706,7 +706,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($ore_buy == 0 && $goods_buy == 0 && $energy_buy == 0 && $organics_buy == 0) { - echo $langvars['l_tdr_nothingtotrade']."
"; + echo $langvars['l_tdr_nothingtotrade'] . "
"; } if ($traderoute['circuit'] == '1') @@ -738,7 +738,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $free_holds -= $goods_buy; $playerinfo['ship_goods'] += $goods_buy; - echo $langvars['l_tdr_loaded']." ".number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_goods']."
"; + echo $langvars['l_tdr_loaded'] . " " . number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_goods'] . "
"; } else { @@ -758,7 +758,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $free_holds -= $ore_buy; $playerinfo['ship_ore'] += $ore_buy; - echo $langvars['l_tdr_loaded']." ".number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_ore']."
"; + echo $langvars['l_tdr_loaded'] . " " . number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_ore'] . "
"; } else { @@ -778,7 +778,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $free_holds -= $organics_buy; $playerinfo['ship_organics'] += $organics_buy; - echo $langvars['l_tdr_loaded']." ".number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_organics']."
"; + echo $langvars['l_tdr_loaded'] . " " . number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_organics'] . "
"; } else { @@ -787,7 +787,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($ore_buy == 0 && $goods_buy == 0 && $organics_buy == 0) { - echo $langvars['l_tdr_nothingtoload']."
"; + echo $langvars['l_tdr_nothingtoload'] . "
"; } if ($traderoute['circuit'] == '1') @@ -816,7 +816,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $free_holds -= $colonists_buy; $playerinfo['ship_colonists'] += $colonists_buy; - echo $langvars['l_tdr_loaded']." ".number_format($colonists_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_colonists']."
"; + echo $langvars['l_tdr_loaded'] . " " . number_format($colonists_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_colonists'] . "
"; } else { @@ -837,7 +837,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $free_torps -= $torps_buy; $playerinfo['torps'] += $torps_buy; - echo $langvars['l_tdr_loaded']." ".number_format($torps_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_torps']."
"; + echo $langvars['l_tdr_loaded'] . " " . number_format($torps_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_torps'] . "
"; } else { @@ -858,7 +858,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $free_fighters -= $fighters_buy; $playerinfo['ship_fighters'] += $fighters_buy; - echo $langvars['l_tdr_loaded']." ".number_format($fighters_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_fighters']."
"; + echo $langvars['l_tdr_loaded'] . " " . number_format($fighters_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_fighters'] . "
"; } else { @@ -867,7 +867,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($fighters_buy == 0 && $torps_buy == 0 && $colonists_buy == 0) { - echo $langvars['l_tdr_nothingtoload']."
"; + echo $langvars['l_tdr_nothingtoload'] . "
"; } if ($traderoute['circuit'] == '1') @@ -883,7 +883,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($dist['scooped1'] != 0) { - echo $langvars['l_tdr_scooped']." ".number_format($dist['scooped1'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_energy']."
"; + echo $langvars['l_tdr_scooped'] . " " . number_format($dist['scooped1'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_energy'] . "
"; } self::traderouteResultsCloseCell(); @@ -921,11 +921,11 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki { if ($portfull == 1) { - echo $langvars['l_tdr_sold']." ".number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_ore']." (".$langvars['l_tdr_portisfull'].")
"; + echo $langvars['l_tdr_sold'] . " " . number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_ore'] . " (" . $langvars['l_tdr_portisfull'] . ")
"; } else { - echo $langvars['l_tdr_sold']." ".number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_ore']."
"; + echo $langvars['l_tdr_sold'] . " " . number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_ore'] . "
"; } } $playerinfo['ship_ore'] -= $ore_buy; @@ -950,11 +950,11 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki { if ($portfull == 1) { - echo $langvars['l_tdr_sold']." ".number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_goods']." (".$langvars['l_tdr_portisfull'].")
"; + echo $langvars['l_tdr_sold'] . " " . number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_goods'] . " (" . $langvars['l_tdr_portisfull'] . ")
"; } else { - echo $langvars['l_tdr_sold']." ".number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_goods']."
"; + echo $langvars['l_tdr_sold'] . " " . number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_goods'] . "
"; } } $playerinfo['ship_goods'] -= $goods_buy; @@ -979,11 +979,11 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki { if ($portfull == 1) { - echo $langvars['l_tdr_sold']." ".number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_organics']." (".$langvars['l_tdr_portisfull'].")
"; + echo $langvars['l_tdr_sold'] . " " . number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_organics'] . " (" . $langvars['l_tdr_portisfull'] . ")
"; } else { - echo $langvars['l_tdr_sold']." ".number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_organics']."
"; + echo $langvars['l_tdr_sold'] . " " . number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_organics'] . "
"; } } $playerinfo['ship_organics'] -= $organics_buy; @@ -1008,11 +1008,11 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki { if ($portfull == 1) { - echo $langvars['l_tdr_sold']." ".number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_energy']." (".$langvars['l_tdr_portisfull'].")
"; + echo $langvars['l_tdr_sold'] . " " . number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_energy'] . " (" . $langvars['l_tdr_portisfull'] . ")
"; } else { - echo $langvars['l_tdr_sold']." ".number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_energy']."
"; + echo $langvars['l_tdr_sold'] . " " . number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_energy'] . "
"; } } $playerinfo['ship_energy'] -= $energy_buy; @@ -1045,13 +1045,13 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $ore_buy = $dest['port_ore']; if ($dest['port_ore'] == 0) { - echo $langvars['l_tdr_bought']." ".number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_ore']." (".$langvars['l_tdr_portisempty'].")
"; + echo $langvars['l_tdr_bought'] . " " . number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_ore'] . " (" . $langvars['l_tdr_portisempty'] . ")
"; } } if ($ore_buy != 0) { - echo $langvars['l_tdr_bought']." ".number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_ore']."
"; + echo $langvars['l_tdr_bought'] . " " . number_format($ore_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_ore'] . "
"; } $playerinfo['ship_ore'] += $ore_buy; @@ -1081,13 +1081,13 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $goods_buy = $dest['port_goods']; if ($dest['port_goods'] == 0) { - echo $langvars['l_tdr_bought']." ".number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_goods']." (".$langvars['l_tdr_portisempty'].")
"; + echo $langvars['l_tdr_bought'] . " " . number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_goods'] . " (" . $langvars['l_tdr_portisempty'] . ")
"; } } if ($goods_buy != 0) { - echo $langvars['l_tdr_bought']." ".number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_goods']."
"; + echo $langvars['l_tdr_bought'] . " " . number_format($goods_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_goods'] . "
"; } $playerinfo['ship_goods'] += $goods_buy; @@ -1117,13 +1117,13 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($dest['port_organics'] == 0) { - echo $langvars['l_tdr_bought']." ".number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_organics']." (".$langvars['l_tdr_portisempty'].")
"; + echo $langvars['l_tdr_bought'] . " " . number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_organics'] . " (" . $langvars['l_tdr_portisempty'] . ")
"; } } if ($organics_buy != 0) { - echo $langvars['l_tdr_bought']." ".number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_organics']."
"; + echo $langvars['l_tdr_bought'] . " " . number_format($organics_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_organics'] . "
"; } $playerinfo['ship_organics'] += $organics_buy; @@ -1153,13 +1153,13 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $energy_buy = $dest['port_energy']; if ($dest['port_energy'] == 0) { - echo $langvars['l_tdr_bought']." ".number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_energy']." (".$langvars['l_tdr_portisempty'].")
"; + echo $langvars['l_tdr_bought'] . " ".number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " ".$langvars['l_tdr_energy'] . " (".$langvars['l_tdr_portisempty'] . ")
"; } } if ($energy_buy != 0) { - echo $langvars['l_tdr_bought']." ".number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_energy']."
"; + echo $langvars['l_tdr_bought'] . " " . number_format($energy_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_energy'] . "
"; } $playerinfo['ship_energy'] += $energy_buy; @@ -1168,7 +1168,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($ore_buy == 0 && $goods_buy == 0 && $energy_buy == 0 && $organics_buy == 0) { - echo $langvars['l_tdr_nothingtotrade']."
"; + echo $langvars['l_tdr_nothingtotrade'] . "
"; } $resn = $db->Execute("UPDATE {$db->prefix}universe SET port_ore=port_ore-?, port_energy=port_energy-?, port_goods=port_goods-?, port_organics=port_organics-? WHERE sector_id=?", array($ore_buy, $energy_buy, $goods_buy, $organics_buy, $dest['sector_id'])); @@ -1223,11 +1223,11 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki { if ($setcol == 1) { - echo $langvars['l_tdr_dumped']." ".number_format($colonists_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_colonists']." (".$langvars['l_tdr_planetisovercrowded'].")
"; + echo $langvars['l_tdr_dumped'] . " " . number_format($colonists_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_colonists'] . " (" . $langvars['l_tdr_planetisovercrowded'] . ")
"; } else { - echo $langvars['l_tdr_dumped']." ".number_format($colonists_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_colonists']."
"; + echo $langvars['l_tdr_dumped'] . " " . number_format($colonists_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_colonists'] . "
"; } } @@ -1243,7 +1243,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($fighters_buy != 0) { - echo $langvars['l_tdr_dumped']." ".number_format($fighters_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_fighters']."
"; + echo $langvars['l_tdr_dumped'] . " " . number_format($fighters_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_fighters'] . "
"; } if ($playerinfo['trade_torps'] == 'Y') @@ -1258,12 +1258,12 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($torps_buy != 0) { - echo $langvars['l_tdr_dumped']." ".number_format($torps_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_torps']."
"; + echo $langvars['l_tdr_dumped'] . " " . number_format($torps_buy, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_torps'] . "
"; } if ($torps_buy == 0 && $fighters_buy == 0 && $colonists_buy == 0) { - echo $langvars['l_tdr_nothingtodump']."
"; + echo $langvars['l_tdr_nothingtodump'] . "
"; } if ($traderoute['source_type'] == 'L' || $traderoute['source_type'] == 'C') @@ -1323,7 +1323,7 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki } if ($dist['scooped2'] != 0) { - echo $langvars['l_tdr_scooped']." ".number_format($dist['scooped1'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." ".$langvars['l_tdr_energy']."
"; + echo $langvars['l_tdr_scooped'] . " " . number_format($dist['scooped1'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_tdr_energy'] . "
"; } } else @@ -1335,21 +1335,21 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki if ($sourcecost > 0) { - echo $langvars['l_tdr_profit']." : ".number_format(abs($sourcecost), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']); + echo $langvars['l_tdr_profit'] . " : " . number_format(abs($sourcecost), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']); } else { - echo $langvars['l_tdr_cost']." : ".number_format(abs($sourcecost), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']); + echo $langvars['l_tdr_cost'] . " : " . number_format(abs($sourcecost), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']); } self::traderouteResultsCloseCost(); if ($destcost > 0) { - echo $langvars['l_tdr_profit']." : ".number_format(abs($destcost), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']); + echo $langvars['l_tdr_profit'] . " : " . number_format(abs($destcost), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']); } else { - echo $langvars['l_tdr_cost']." : ".number_format(abs($destcost), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']); + echo $langvars['l_tdr_cost'] . " : " . number_format(abs($destcost), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']); } self::traderouteResultsCloseTable(); @@ -1372,17 +1372,17 @@ public static function traderouteEngage($db, $pdo_db, $lang, $j, $langvars, \Tki $tdr_display_creds = number_format($playerinfo['credits'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']); self::traderouteResultsDisplaySummary($pdo_db, $lang, $tdr_display_creds, $dist, $playerinfo); - // echo $j." -- "; + // echo $j . " -- "; if ($traderoute['circuit'] == 2) { - $langvars['l_tdr_engageagain'] = str_replace("[here]", "".$langvars['l_here']."", $langvars['l_tdr_engageagain']); - $langvars['l_tdr_engageagain'] = str_replace("[five]", "".$langvars['l_tdr_five']."", $langvars['l_tdr_engageagain']); - $langvars['l_tdr_engageagain'] = str_replace("[ten]", "".$langvars['l_tdr_ten']."", $langvars['l_tdr_engageagain']); - $langvars['l_tdr_engageagain'] = str_replace("[fifty]", "".$langvars['l_tdr_fifty']."", $langvars['l_tdr_engageagain']); + $langvars['l_tdr_engageagain'] = str_replace("[here]", "".$langvars['l_here'] . "", $langvars['l_tdr_engageagain']); + $langvars['l_tdr_engageagain'] = str_replace("[five]", "".$langvars['l_tdr_five'] . "", $langvars['l_tdr_engageagain']); + $langvars['l_tdr_engageagain'] = str_replace("[ten]", "".$langvars['l_tdr_ten'] . "", $langvars['l_tdr_engageagain']); + $langvars['l_tdr_engageagain'] = str_replace("[fifty]", "".$langvars['l_tdr_fifty'] . "", $langvars['l_tdr_engageagain']); $langvars['l_tdr_engageagain'] = str_replace("[tdr_engage]", $engage, $langvars['l_tdr_engageagain']); if ($j == 1) { - echo $langvars['l_tdr_engageagain']."\n"; + echo $langvars['l_tdr_engageagain'] . "\n"; self::traderouteResultsShowRepeat($engage); } } @@ -1428,10 +1428,10 @@ public static function traderouteNew($pdo_db, $db, $lang, \Tki\Reg $tkireg, $tra } else { - echo $langvars['l_tdr_editinga']." "; + echo $langvars['l_tdr_editinga'] . " "; } - echo $langvars['l_tdr_traderoute']."

"; + echo $langvars['l_tdr_traderoute'] . "

"; // Get Planet info Team and Personal @@ -1474,15 +1474,15 @@ public static function traderouteNew($pdo_db, $db, $lang, \Tki\Reg $tkireg, $tra } // Display Current Sector - echo $langvars['l_tdr_cursector']." ".$playerinfo['sector']."
"; + echo $langvars['l_tdr_cursector'] . " " . $playerinfo['sector'] . "
"; // Start of form for starting location echo " - + - + + - + - + - + + - + - + + > " . $langvars['l_tdr_warp'] . " - + + > " . $langvars['l_tdr_bothways'] . " @@ -1747,19 +1747,19 @@ public static function traderouteNew($pdo_db, $db, $lang, \Tki\Reg $tkireg, $tra if ($editroute === null) { - echo ""; + echo ""; } else { echo ""; - echo ""; + echo ""; } - $langvars['l_tdr_returnmenu'] = str_replace("[here]", "".$langvars['l_here']."", $langvars['l_tdr_returnmenu']); + $langvars['l_tdr_returnmenu'] = str_replace("[here]", "".$langvars['l_here'] . "", $langvars['l_tdr_returnmenu']); echo "
" . $langvars['l_tdr_selspoint']."
 
" . $langvars['l_tdr_selspoint'] . "
 
" . $langvars['l_tdr_port']." : " . $langvars['l_tdr_port'] . " : Personal " . $langvars['l_tdr_planet']." : Personal " . $langvars['l_tdr_planet'] . " : ".$langvars['l_tdr_none'].""; + echo ""; } else { @@ -1538,7 +1538,7 @@ public static function traderouteNew($pdo_db, $db, $lang, \Tki\Reg $tkireg, $tra echo "selected "; } - echo "value=".$planets[$i]['planet_id'].">".$planets[$i]['name']." ".$langvars['l_tdr_insector']." ".$planets[$i]['sector_id'].""; + echo "value=".$planets[$i]['planet_id'] . ">" . $planets[$i]['name'] . " " . $langvars['l_tdr_insector'] . " " . $planets[$i]['sector_id'] . ""; $i++; } } @@ -1546,7 +1546,7 @@ public static function traderouteNew($pdo_db, $db, $lang, \Tki\Reg $tkireg, $tra // Team Planet echo "
Team " . $langvars['l_tdr_planet']." : Team " . $langvars['l_tdr_planet'] . " : ".$langvars['l_tdr_none'].""; + echo ""; } else { @@ -1576,7 +1576,7 @@ public static function traderouteNew($pdo_db, $db, $lang, \Tki\Reg $tkireg, $tra echo "selected "; } - echo "value=".$planets_team[$i]['planet_id'].">".$planets_team[$i]['name']." ".$langvars['l_tdr_insector']." ".$planets_team[$i]['sector_id'].""; + echo "value=".$planets_team[$i]['planet_id'] . ">" . $planets_team[$i]['name'] . " " . $langvars['l_tdr_insector'] . " " . $planets_team[$i]['sector_id'] . ""; $i++; } } @@ -1589,9 +1589,9 @@ public static function traderouteNew($pdo_db, $db, $lang, \Tki\Reg $tkireg, $tra echo "
 
" . $langvars['l_tdr_selendpoint']." :
 
" . $langvars['l_tdr_selendpoint'] . " :
 
" . $langvars['l_tdr_port']." : " . $langvars['l_tdr_port'] . " : - Personal " . $langvars['l_tdr_planet']." : Personal " . $langvars['l_tdr_planet'] . " : ".$langvars['l_tdr_none'].""; + echo ""; } else { @@ -1647,7 +1647,7 @@ public static function traderouteNew($pdo_db, $db, $lang, \Tki\Reg $tkireg, $tra echo "selected "; } - echo "value=".$planets[$i]['planet_id'].">".$planets[$i]['name']." ".$langvars['l_tdr_insector']." ".$planets[$i]['sector_id'].""; + echo "value=".$planets[$i]['planet_id'] . ">" . $planets[$i]['name'] . " " . $langvars['l_tdr_insector'] . " " . $planets[$i]['sector_id'] . ""; $i++; } } @@ -1655,7 +1655,7 @@ public static function traderouteNew($pdo_db, $db, $lang, \Tki\Reg $tkireg, $tra // Team Planet echo "
Team " . $langvars['l_tdr_planet']." : Team " . $langvars['l_tdr_planet'] . " : ".$langvars['l_tdr_none'].""; + echo ""; } else { @@ -1685,7 +1685,7 @@ public static function traderouteNew($pdo_db, $db, $lang, \Tki\Reg $tkireg, $tra echo "selected "; } - echo "value=".$planets_team[$i]['planet_id'].">".$planets_team[$i]['name']." ".$langvars['l_tdr_insector']." ".$planets_team[$i]['sector_id'].""; + echo "value=".$planets_team[$i]['planet_id'] . ">" . $planets_team[$i]['name'] . " " . $langvars['l_tdr_insector'] . " " . $planets_team[$i]['sector_id'] . ""; $i++; } } @@ -1698,7 +1698,7 @@ public static function traderouteNew($pdo_db, $db, $lang, \Tki\Reg $tkireg, $tra
 
" . $langvars['l_tdr_selmovetype']." : " . $langvars['l_tdr_selmovetype'] . " :  " . $langvars['l_tdr_realspace']."   " . $langvars['l_tdr_realspace'] . "   " . $langvars['l_tdr_warp']."
" . $langvars['l_tdr_selcircuit']." : " . $langvars['l_tdr_selcircuit'] . " :  " . $langvars['l_tdr_oneway']."       " . $langvars['l_tdr_oneway'] . "       " . $langvars['l_tdr_bothways']."
 
- " . $langvars['l_tdr_returnmenu']."
+ " . $langvars['l_tdr_returnmenu'] . "

"; @@ -1775,7 +1775,7 @@ public static function traderouteDie($pdo_db, $lang, \Tki\Reg $tkireg, $error_ms { $langvars = \Tki\Translate::load($pdo_db, $lang, array('traderoutes', 'common', 'global_includes', 'global_funcs', 'footer', 'regional')); - echo "

".$error_msg."

"; + echo "

".$error_msg . "

"; echo "

\n"; \Tki\Text::gotoMain($pdo_db, $lang, $langvars); echo "
\n"; @@ -2215,7 +2215,7 @@ public static function traderouteCreate($db, $pdo_db, $lang, \Tki\Reg $tkireg, $ echo "

".$langvars['l_tdr_modified']; } - $langvars['l_tdr_returnmenu'] = str_replace("[here]", "".$langvars['l_here']."", $langvars['l_tdr_returnmenu']); + $langvars['l_tdr_returnmenu'] = str_replace("[here]", "".$langvars['l_here'] . "", $langvars['l_tdr_returnmenu']); echo " ".$langvars['l_tdr_returnmenu']; self::traderouteDie($pdo_db, $lang, $tkireg, null, $template); } @@ -2246,8 +2246,8 @@ public static function traderouteDelete($pdo_db, $db, $lang, $langvars, \Tki\Reg { $query = $db->Execute("DELETE FROM {$db->prefix}traderoutes WHERE traderoute_id=?;", array($traderoute_id)); \Tki\Db::logDbErrors($pdo_db, $db, $query, __LINE__, __FILE__); - $langvars['l_tdr_returnmenu'] = str_replace("[here]", "".$langvars['l_here']."", $langvars['l_tdr_returnmenu']); - echo $langvars['l_tdr_deleted']." ".$langvars['l_tdr_returnmenu']; + $langvars['l_tdr_returnmenu'] = str_replace("[here]", "".$langvars['l_here'] . "", $langvars['l_tdr_returnmenu']); + echo $langvars['l_tdr_deleted'] . " " . $langvars['l_tdr_returnmenu']; self::traderouteDie($pdo_db, $lang, $tkireg, null, $template); } } @@ -2256,11 +2256,11 @@ public static function traderouteSettings($pdo_db, $lang, \Tki\Reg $tkireg, $tem { $langvars = \Tki\Translate::load($pdo_db, $lang, array('traderoutes', 'common', 'global_includes', 'global_funcs', 'footer', 'regional')); - echo "

".$langvars['l_tdr_globalset']."

"; - echo "".$langvars['l_tdr_sportsrc']." :

". + echo "

".$langvars['l_tdr_globalset'] . "

"; + echo "".$langvars['l_tdr_sportsrc'] . " :

". "

". "". - "". + "". "". - "". + "". "". - "". + "". "". "
- ".$langvars['l_tdr_colonists']." : - ".$langvars['l_tdr_colonists'] . " :
- ".$langvars['l_tdr_fighters']." : - ".$langvars['l_tdr_fighters'] . " :
- ".$langvars['l_tdr_torps']." : - ".$langvars['l_tdr_torps'] . " :
". "

". - "".$langvars['l_tdr_tdrescooped']." :

". + "".$langvars['l_tdr_tdrescooped'] . " :

". "". - "". + "". "". - "". + "". "". + "". "
   ".$langvars['l_tdr_trade']."   ".$langvars['l_tdr_trade'] . "
   ".$langvars['l_tdr_keep']."   ".$langvars['l_tdr_keep'] . "
 
". - "
". "

"; - $langvars['l_tdr_returnmenu'] = str_replace("[here]", "".$langvars['l_here']."", $langvars['l_tdr_returnmenu']); + $langvars['l_tdr_returnmenu'] = str_replace("[here]", "".$langvars['l_here'] . "", $langvars['l_tdr_returnmenu']); echo $langvars['l_tdr_returnmenu']; self::traderouteDie($pdo_db, $lang, $tkireg, null, $template); } @@ -2329,8 +2329,8 @@ public static function traderouteSetsettings($db, $pdo_db, $lang, \Tki\Reg $tkir $resa = $db->Execute("UPDATE {$db->prefix}ships SET trade_colonists=?, trade_fighters=?, trade_torps=?, trade_energy=? WHERE ship_id=?;", array($colonists, $fighters, $torps, $energy, $playerinfo['ship_id'])); \Tki\Db::logDbErrors($pdo_db, $db, $resa, __LINE__, __FILE__); - $langvars['l_tdr_returnmenu'] = str_replace("[here]", "".$langvars['l_here']."", $langvars['l_tdr_returnmenu']); - echo $langvars['l_tdr_globalsetsaved']." ".$langvars['l_tdr_returnmenu']; + $langvars['l_tdr_returnmenu'] = str_replace("[here]", "".$langvars['l_here'] . "", $langvars['l_tdr_returnmenu']); + echo $langvars['l_tdr_globalsetsaved'] . " " . $langvars['l_tdr_returnmenu']; self::traderouteDie($pdo_db, $lang, $tkireg, null, $template); } @@ -2339,10 +2339,10 @@ public static function traderouteResultsTableTop($pdo_db, $lang, \Tki\Reg $tkire $langvars = \Tki\Translate::load($pdo_db, $lang, array('traderoutes', 'common', 'global_includes', 'global_funcs', 'footer', 'regional')); echo "\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; echo " "; - echo ""; + echo ""; echo ""; $defence_type = $sector[$i]['defence_type'] == 'F' ? $langvars['l_fighters'] : $langvars['l_mines']; echo ""; diff --git a/galaxy.php b/galaxy.php index f39d4edb4..fe77e4bc8 100644 --- a/galaxy.php +++ b/galaxy.php @@ -54,7 +54,7 @@ $map_width = ($div_w + $div_border) * $div_xmax; // Define the containing div to be the right width to wrap at $div_xmax // Setup containing div to hold the width of the images -echo "\n
\n"; +echo "\n
\n"; for ($r = 0; $r < $div_ymax; $r++) // Loop the rows { for ($c = 0; $c < $div_xmax; $c++) // Loop the columns @@ -71,7 +71,7 @@ } echo "\n"; - echo "" . $alt . " "; + echo "" . $alt . " "; // Move to next explored sector in database results $result3->Movenext(); @@ -88,7 +88,7 @@ // I have not figured out why this formula works, but $row[sector_id] doesn't, so I'm not switching it. echo ""; - echo ""; + echo ""; echo "" . $alt . " "; } $cur_sector++; @@ -99,7 +99,7 @@ // This is the row numbers on the side of the map for ($a = 1; $a < ($tkireg->max_sectors/50 +1); $a++) { - echo "\n
".(($a * 50) - 1)."
"; + echo "\n
" . (($a * 50) - 1) . "
"; } echo "

"; diff --git a/mailto.php b/mailto.php index 371957996..c7aace162 100644 --- a/mailto.php +++ b/mailto.php @@ -101,12 +101,12 @@ echo "
color_line2\">"; echo ""; echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -284,7 +284,7 @@ // Visitor menu if ($planetinfo['sells'] == "Y") { - $langvars['l_planet_buy_link'] = "" . $langvars['l_planet_buy_link'] .""; + $langvars['l_planet_buy_link'] = "" . $langvars['l_planet_buy_link'] . ""; $langvars['l_planet_buy'] = str_replace("[buy]", $langvars['l_planet_buy_link'], $langvars['l_planet_buy']); echo $langvars['l_planet_buy'] . "
"; } @@ -311,9 +311,9 @@ } else { - $langvars['l_planet_att_link'] = "" . $langvars['l_planet_att_link'] .""; + $langvars['l_planet_att_link'] = "" . $langvars['l_planet_att_link'] . ""; $langvars['l_planet_att'] = str_replace("[attack]", $langvars['l_planet_att_link'], $langvars['l_planet_att']); - $langvars['l_planet_scn_link'] = "" . $langvars['l_planet_scn_link'] .""; + $langvars['l_planet_scn_link'] = "" . $langvars['l_planet_scn_link'] . ""; $langvars['l_planet_scn'] = str_replace("[scan]", $langvars['l_planet_scn_link'], $langvars['l_planet_scn']); echo $langvars['l_planet_att'] . "
"; echo $langvars['l_planet_scn'] . "
"; @@ -543,7 +543,7 @@ // Check to see if sure if ($planetinfo['sells'] == "Y") { - $langvars['l_planet_buy_link'] = "" . $langvars['l_planet_buy_link'] .""; + $langvars['l_planet_buy_link'] = "" . $langvars['l_planet_buy_link'] . ""; $langvars['l_planet_buy'] = str_replace("[buy]", $langvars['l_planet_buy_link'], $langvars['l_planet_buy']); echo $langvars['l_planet_buy'] . "
"; } @@ -564,7 +564,7 @@ { $langvars['l_planet_att_link'] = "" . $langvars['l_planet_att_link'] . " ."; $langvars['l_planet_att'] = str_replace("[attack]", $langvars['l_planet_att_link'], $langvars['l_planet_att']); - $langvars['l_planet_scn_link'] = "" . $langvars['l_planet_scn_link'] .""; + $langvars['l_planet_scn_link'] = "" . $langvars['l_planet_scn_link'] . ""; $langvars['l_planet_scn'] = str_replace("[scan]", $langvars['l_planet_scn_link'], $langvars['l_planet_scn']); echo $langvars['l_planet_att'] . " " . $langvars['l_planet_att_sure'] . "
"; echo $langvars['l_planet_scn'] . "
"; @@ -607,7 +607,7 @@ // Check to see if sure... if ($planetinfo['sells'] == "Y" && $tkireg->allow_sofa) { - $langvars['l_planet_buy_link'] = "" . $langvars['l_planet_buy_link'] .""; + $langvars['l_planet_buy_link'] = "" . $langvars['l_planet_buy_link'] . ""; $langvars['l_planet_buy'] = str_replace("[buy]", $langvars['l_planet_buy_link'], $langvars['l_planet_buy']); echo $langvars['l_planet_buy'] . "
"; } @@ -616,9 +616,9 @@ echo $langvars['l_planet_not_selling'] . "
"; } - $langvars['l_planet_att_link'] = "" . $langvars['l_planet_att_link'] .""; + $langvars['l_planet_att_link'] = "" . $langvars['l_planet_att_link'] . ""; $langvars['l_planet_att'] = str_replace("[attack]", $langvars['l_planet_att_link'], $langvars['l_planet_att']); - $langvars['l_planet_scn_link'] ="" . $langvars['l_planet_scn_link'] .""; + $langvars['l_planet_scn_link'] ="" . $langvars['l_planet_scn_link'] . ""; $langvars['l_planet_scn'] = str_replace("[scan]", $langvars['l_planet_scn_link'], $langvars['l_planet_scn']); echo $langvars['l_planet_att'] . "
"; echo $langvars['l_planet_scn'] . "
"; diff --git a/planet_report.php b/planet_report.php index dcc904f1e..16072e525 100644 --- a/planet_report.php +++ b/planet_report.php @@ -40,13 +40,13 @@ // Determine what type of report is displayed and display it's title if ($preptype == 1 || !isset($preptype)) // Display the commodities on the planets { - $title = $title .": Status"; + $title = $title . ": Status"; echo "

" . $title . "

\n"; Bad\PlanetReport::standardReport($pdo_db, $db, $langvars, $playerinfo, $sort, $tkireg); } elseif ($preptype == 2) // Display the production values of your planets and allow changing { - $title = $title .": Production"; + $title = $title . ": Production"; echo "

" . $title . "

\n"; Bad\PlanetReport::planetProductionChange($pdo_db, $db, $langvars, $playerinfo, $sort, $tkireg); } diff --git a/port.php b/port.php index fb55133ed..ae294fbbf 100644 --- a/port.php +++ b/port.php @@ -378,7 +378,7 @@ echo "Partial Payment Mode
\n"; echo "You don't have enough Credits within your Intergalactic Bank Account to pay your entire bounty.
\n"; echo "However you can pay your bounty off in instalments.
\n"; - echo "And your first instalment will be " . number_format($bounty_payment, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." credits.
\n"; + echo "And your first instalment will be " . number_format($bounty_payment, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " credits.
\n"; echo "
\n"; $resx = $db->Execute("UPDATE {$db->prefix}ibank_accounts SET balance = balance - ? WHERE ship_id = ?;", array($bounty_payment, $playerinfo['ship_id'])); @@ -613,7 +613,7 @@ if ($playerinfo['ship_colonists'] != $colonist_max) { - echo "+ form.colonist_number.value * " . $tkireg->colonist_price ." "; + echo "+ form.colonist_number.value * " . $tkireg->colonist_price . " "; } echo ";\n"; diff --git a/port2.php b/port2.php index c5fe43d2d..e369a8e67 100644 --- a/port2.php +++ b/port2.php @@ -91,7 +91,7 @@ function build_one_col($text = " ", $align = "left") { echo " - + "; } @@ -100,8 +100,8 @@ function build_two_col($text_col1 = " ", $text_col2 = " ", $align_col1 { echo " - - + + "; } @@ -490,7 +490,7 @@ function php_change_delta($desired_value, $current_value, $upgrade_cost) if ($dev_beacon_number) { $query = $query . ", dev_beacon = dev_beacon + $dev_beacon_number"; - build_two_col($langvars['l_beacons']. " " .$langvars['l_trade_added'].":", $dev_beacon_number, "left", "right"); + build_two_col($langvars['l_beacons']. " " .$langvars['l_trade_added'] . ":", $dev_beacon_number, "left", "right"); } if ($dev_emerwarp_number) @@ -606,7 +606,7 @@ function trade($price, $delta, $max, $limit, $factor, $port_type, $origin, $pric // Debug info // echo "$origin * $price_array[$port_type]="; - // echo $origin * $price_array[$port_type]."
"; + // echo $origin * $price_array[$port_type] . "
"; return $origin; } @@ -705,7 +705,7 @@ function trade($price, $delta, $max, $limit, $factor, $port_type, $origin, $pric - + color_line1> diff --git a/scan.php b/scan.php index 63eb58c71..25c1163f3 100644 --- a/scan.php +++ b/scan.php @@ -138,7 +138,7 @@ } $sc_error = Tki\Scan::error($playerinfo['sensors'], $targetinfo['cloak'], $scan_error_factor); - echo $langvars['l_scan_ron'] ." " . $targetinfo['ship_name'] . ", " . $langvars['l_scan_capt'] . " " . $targetinfo['character_name'] . "

"; + echo $langvars['l_scan_ron'] . " " . $targetinfo['ship_name'] . ", " . $langvars['l_scan_capt'] . " " . $targetinfo['character_name'] . "

"; echo "" . $langvars['l_ship_levels'] . ":

"; echo "
".$langvars['l_tdr_res']."
".$langvars['l_tdr_res'] . "
"; } @@ -2356,7 +2356,7 @@ public static function traderouteResultsDestination(\Tki\Reg $tkireg) { echo "
"; } @@ -2370,7 +2370,7 @@ public static function traderouteResultsShowCost(\Tki\Reg $tkireg) { echo "
"; } @@ -2397,11 +2397,11 @@ public static function traderouteResultsDisplayTotals($pdo_db, $lang, $total_pro if ($total_profit > 0) { - echo "

".$langvars['l_tdr_totalprofit']." : ".number_format(abs($total_profit), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])."
\n"; + echo "

".$langvars['l_tdr_totalprofit'] . " : ".number_format(abs($total_profit), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . "
\n"; } else { - echo "

".$langvars['l_tdr_totalcost']." : ".number_format(abs($total_profit), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])."
\n"; + echo "

".$langvars['l_tdr_totalcost'] . " : ".number_format(abs($total_profit), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . "
\n"; } } @@ -2412,16 +2412,16 @@ public static function traderouteResultsDisplaySummary($pdo_db, $lang, $tdr_disp { $langvars = \Tki\Translate::load($pdo_db, $lang, array('traderoutes', 'common', 'global_includes', 'global_funcs', 'footer', 'regional')); - echo "\n".$langvars['l_tdr_turnsused']." : $dist[triptime]
"; - echo "\n".$langvars['l_tdr_turnsleft']." : $playerinfo[turns]
"; + echo "\n".$langvars['l_tdr_turnsused'] . " : $dist[triptime]
"; + echo "\n".$langvars['l_tdr_turnsleft'] . " : $playerinfo[turns]
"; - echo "\n".$langvars['l_tdr_credits']." : $tdr_display_creds\n
\n"; + echo "\n".$langvars['l_tdr_credits'] . " : $tdr_display_creds\n
\n"; //echo "\n"; } public static function traderouteResultsShowRepeat($engage) { - echo "
\n"; + echo "\n"; echo "
Enter times to repeat \n"; echo "
\n"; // echo "

"; diff --git a/defence_report.php b/defence_report.php index 57a817b0c..f9252eff9 100644 --- a/defence_report.php +++ b/defence_report.php @@ -87,7 +87,7 @@ for ($i = 0; $i < $num_sectors; $i++) { echo "

". $sector[$i]['sector_id'] ."". $sector[$i]['sector_id'] . "" . number_format($sector[$i]['quantity'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " $defence_type
" . $langvars['l_planet_perc'] . "n/a*
".$text.".".$text . ".
".$text_col1."".$text_col2."" . $text_col1 . "" . $text_col2 . "
" . $langvars['l_trade_result'] . "
". $trade_result ." " . number_format(abs($total_cost), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_credits'] . "". $trade_result . " " . number_format(abs($total_cost), 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_credits'] . "
" . $langvars['l_traded_ore'] . ": " . number_format($trade_ore, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . "
"; echo ""; diff --git a/scheduler.php b/scheduler.php index 098fb3fe9..a6994fe72 100644 --- a/scheduler.php +++ b/scheduler.php @@ -174,7 +174,7 @@ function is_query_ok($pdo_db, $db, $res) if (abs($schedDiff) > ($tkireg->sched_ticks * 60)) { // Hmmm, seems that we have missed at least 1 update, so log it to the admin. - Tki\AdminLog::writeLog($pdo_db, $db, 2468, "Detected Scheduler Issue|{$lastRun}|". time() ."|". (time() - ($tkireg->sched_ticks * 60)) ."|{$schedDiff}|". serialize($lastrunList)); + Tki\AdminLog::writeLog($pdo_db, $db, 2468, "Detected Scheduler Issue|{$lastRun}|". time() . "|" . (time() - ($tkireg->sched_ticks * 60)) . "|{$schedDiff}|" . serialize($lastrunList)); } $runtime = time() - $starttime; diff --git a/setup_info.php b/setup_info.php index 4f566bf86..e21ed693a 100644 --- a/setup_info.php +++ b/setup_info.php @@ -121,7 +121,7 @@ { $err_msg = "Unable to connect to the " . $db_type . " Database.
\n Database Error: ". - $e->getMessage() ."
\n"; + $e->getMessage() . "
\n"; $variables['pdo_conn_test'] = false; $variables['pdo_conn_err'] = $err_msg; } diff --git a/team_planets.php b/team_planets.php index cae842739..407ac498f 100644 --- a/team_planets.php +++ b/team_planets.php @@ -147,7 +147,7 @@ $player = $res->fields['character_name']; echo ""; - echo ""; + echo ""; echo ""; echo ""; echo ""; diff --git a/teams.php b/teams.php index cf00071a8..df5435c03 100644 --- a/teams.php +++ b/teams.php @@ -293,7 +293,7 @@ } } - Tki\PlayerLog::writeLog($pdo_db, $db, $playerinfo['ship_id'], LOG_TEAM_NEWLEAD, $team['team_name'] ."|". $newcreatorname['character_name']); + Tki\PlayerLog::writeLog($pdo_db, $db, $playerinfo['ship_id'], LOG_TEAM_NEWLEAD, $team['team_name'] . "|" . $newcreatorname['character_name']); Tki\PlayerLog::writeLog($pdo_db, $db, $newcreator, LOG_TEAM_LEAD, $team['team_name']); } @@ -317,7 +317,7 @@ echo $langvars['l_team_welcome'] . " " . $team['team_name'] . ".

"; Tki\PlayerLog::writeLog($pdo_db, $db, $playerinfo['ship_id'], LOG_TEAM_JOIN, $team['team_name']); - Tki\PlayerLog::writeLog($pdo_db, $db, $team['creator'], LOG_TEAM_NEWMEMBER, $team['team_name'] ."|". $playerinfo['character_name']); + Tki\PlayerLog::writeLog($pdo_db, $db, $team['creator'], LOG_TEAM_NEWMEMBER, $team['team_name'] . "|" . $playerinfo['character_name']); } else { @@ -489,7 +489,7 @@ echo $langvars['l_team_refuse'] . " " . $invite_info['team_name'] . ".

"; $resx = $db->Execute("UPDATE {$db->prefix}ships SET team_invite = 0 WHERE ship_id = ?;", array($playerinfo['ship_id'])); Tki\Db::logDbErrors($pdo_db, $db, $resx, __LINE__, __FILE__); - Tki\PlayerLog::writeLog($pdo_db, $db, $team['creator'], LOG_TEAM_REJECT, $playerinfo['character_name'] ."|". $invite_info['team_name']); + Tki\PlayerLog::writeLog($pdo_db, $db, $team['creator'], LOG_TEAM_REJECT, $playerinfo['character_name'] . "|" . $invite_info['team_name']); echo "

" . $langvars['l_clickme'] . " " . $langvars['l_team_menu'] . ".

"; break; diff --git a/warpedit.php b/warpedit.php index f399b744b..0788b4a53 100644 --- a/warpedit.php +++ b/warpedit.php @@ -93,7 +93,7 @@ } else { - echo $langvars['l_warp_linkto'] ." "; + echo $langvars['l_warp_linkto'] . " "; while (!$result2->EOF) { echo $result2->fields['link_dest'] . " "; diff --git a/warpedit2.php b/warpedit2.php index 3328d070d..79bc572c5 100644 --- a/warpedit2.php +++ b/warpedit2.php @@ -68,7 +68,7 @@ { // This is the best that I can do without adding a new language variable. $langvars['l_warp_twoerror'] = str_replace('[target_sector]', $langvars['l_unknown'], $langvars['l_warp_twoerror']); - echo $langvars['l_warp_twoerror'] ."

"; + echo $langvars['l_warp_twoerror'] . "

"; Tki\Text::gotoMain($pdo_db, $lang, $langvars); die(); } diff --git a/warpedit3.php b/warpedit3.php index d56a652e2..b72980ecb 100644 --- a/warpedit3.php +++ b/warpedit3.php @@ -67,7 +67,7 @@ if ($target_sector === null) { // This is the best that I can do without adding a new language variable. - echo $langvars['l_warp_nosector'] ."

"; + echo $langvars['l_warp_nosector'] . "

"; Tki\Text::gotoMain($pdo_db, $lang, $langvars); die(); }
" . $langvars['l_hull'] . ":
". $planet[$i]['sector_id'] ."". $planet[$i]['sector_id'] . "" . $planet[$i]['name'] . "" . number_format($planet[$i]['ore'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . "" . number_format($planet[$i]['organics'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . "