Skip to content

Commit

Permalink
Spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Jun 11, 2016
1 parent 08c6eb6 commit 8ae03ac
Show file tree
Hide file tree
Showing 26 changed files with 181 additions and 181 deletions.
2 changes: 1 addition & 1 deletion admin/bans_editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] . "'";
Expand Down
6 changes: 3 additions & 3 deletions attack.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
else
{
$targetarmor = $targetarmor - $playerbeams;
echo $targetinfo['character_name'] . $langvars['l_att_ashit'] ." " . $playerbeams . " " . $langvars['l_att_dmg'] . ".<br>";
echo $targetinfo['character_name'] . $langvars['l_att_ashit'] . " " . $playerbeams . " " . $langvars['l_att_dmg'] . ".<br>";
}
}

Expand Down Expand Up @@ -549,7 +549,7 @@

if ($targetfighters > $playerfighters)
{
echo $langvars['l_att_ylostf'] ."<br>";
echo $langvars['l_att_ylostf'] . "<br>";
$tempplayfighters = 0;
}
else
Expand All @@ -572,7 +572,7 @@
else
{
$targetarmor = $targetarmor - $playerfighters;
echo $targetinfo['character_name'] . " " . $langvars['l_att_ashit'] ." " . $playerfighters . " " . $langvars['l_att_dmg'] . ".<br>";
echo $targetinfo['character_name'] . " " . $langvars['l_att_ashit'] . " " . $playerfighters . " " . $langvars['l_att_dmg'] . ".<br>";
}
}

Expand Down
2 changes: 1 addition & 1 deletion bounty.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
Tki\Db::logDbErrors($pdo_db, $db, $someres, __LINE__, __FILE__);
$details = $someres->fields;
echo "<tr bgcolor=\"$color\">";
echo "<td><a href=bounty.php?bounty_on=" . $bounties[$i]['bounty_on'] . "&response=display>". $details['character_name'] ."</a></td>";
echo "<td><a href=bounty.php?bounty_on=" . $bounties[$i]['bounty_on'] . "&response=display>". $details['character_name'] . "</a></td>";
echo "<td>" . $bounties[$i]['total_bounty'] . "</td>";
echo "</tr>";

Expand Down
2 changes: 1 addition & 1 deletion classes/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function initDb($db_layer)
{
$err_msg = 'The Kabal Invasion - General error: Unable to connect to the ' . $db_type .
' Database.<br> Database Error: '.
$e->getMessage() ."<br>\n";
$e->getMessage() . "<br>\n";
die ($err_msg);
}

Expand Down
12 changes: 6 additions & 6 deletions classes/Ibank.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static function ibankBorrow(\PDO $pdo_db, $lang, $langvars, \Tki\Reg $tki
"<tr valign=top>" .
"<td>" . $langvars['l_ibank_amountowned'] . " :</td><td nowrap align=right>" . number_format($amount3, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " C<br>" .
"<tr valign=top>" .
"<td colspan=2 align=center>---------------------------------<br><br>" . $langvars['l_ibank_loanreminder'] . "<br><br>\"" . $langvars['l_ibank_loanreminder2'] ."\"</td>" .
"<td colspan=2 align=center>---------------------------------<br><br>" . $langvars['l_ibank_loanreminder'] . "<br><br>\"" . $langvars['l_ibank_loanreminder2'] . "\"</td>" .
"<tr valign=top>" .
"<td nowrap><a href='ibank.php?command=login'>" . $langvars['l_ibank_back'] . "</a></td><td nowrap align=right>&nbsp;<a href=\"main.php\">" . $langvars['l_ibank_logout'] . "</a></td>" .
"</tr>";
Expand Down Expand Up @@ -105,7 +105,7 @@ public static function ibankWithdraw($langvars, $account)
echo "<tr><td colspan=2 align=center valign=top>" . $langvars['l_ibank_withdrawfunds'] . "<br>---------------------------------</td></tr>" .
"<tr valign=top>" .
"<td>" . $langvars['l_ibank_fundsavailable'] . ":</td>" .
"<td align=right>" . number_format($account['balance'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) ." C<br></td>" .
"<td align=right>" . number_format($account['balance'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " C<br></td>" .
"</tr><tr valign=top>" .
"<td>" . $langvars['l_ibank_selwithdrawamount'] . ":</td><td align=right>" .
"<form accept-charset='utf-8' action='ibank.php?command=withdraw2' method=post>" .
Expand Down Expand Up @@ -140,7 +140,7 @@ public static function ibankWithdraw2(\PDO $pdo_db, $lang, $langvars, $playerinf

echo "<tr><td colspan=2 align=center valign=top>" . $langvars['l_ibank_operationsuccessful'] . "<br>---------------------------------</td></tr>" .
"<tr valign=top>" .
"<td colspan=2 align=center>" . number_format($amount, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) ." " . $langvars['l_ibank_creditstoyourship'] . "</td>" .
"<td colspan=2 align=center>" . number_format($amount, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_ibank_creditstoyourship'] . "</td>" .
"<tr><td colspan=2 align=center>" . $langvars['l_ibank_accounts'] . "<br>---------------------------------</td></tr>" .
"<tr valign=top>" .
"<td>Ship Account :<br>" . $langvars['l_ibank_ibankaccount'] . " :</td>" .
Expand Down Expand Up @@ -799,7 +799,7 @@ public static function ibankDeposit2(\PDO $pdo_db, $lang, $langvars, $playerinfo

echo "<tr><td colspan=2 align=center valign=top>" . $langvars['l_ibank_operationsuccessful'] . "<br>---------------------------------</td></tr>" .
"<tr valign=top>" .
"<td colspan=2 align=center>" . number_format($amount, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) ." " . $langvars['l_ibank_creditstoyou'] . "</td>" .
"<td colspan=2 align=center>" . number_format($amount, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " " . $langvars['l_ibank_creditstoyou'] . "</td>" .
"<tr><td colspan=2 align=center>" . $langvars['l_ibank_accounts'] . "<br>---------------------------------</td></tr>" .
"<tr valign=top>" .
"<td>" . $langvars['l_ibank_shipaccount'] . " :<br>" . $langvars['l_ibank_ibankaccount'] . " :</td>" .
Expand Down Expand Up @@ -957,7 +957,7 @@ public static function ibankDeposit(\PDO $pdo_db, $lang, $account, $playerinfo)
echo "<tr><td height=53 colspan=2 align=center valign=top>" . $langvars['l_ibank_depositfunds'] . "<br>---------------------------------</td></tr>" .
"<tr valign=top>" .
"<td height=30>" . $langvars['l_ibank_fundsavailable'] . " :</td>" .
"<td align=right>" . number_format($playerinfo['credits'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) ." C<br></td>" .
"<td align=right>" . number_format($playerinfo['credits'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " C<br></td>" .
"</tr><tr valign=top>" .
"<td height=90>" . $langvars['l_ibank_seldepositamount'] . " :</td><td align=right>" .
"<form accept-charset='utf-8' action='ibank.php?command=deposit2' method=post>" .
Expand All @@ -967,7 +967,7 @@ public static function ibankDeposit(\PDO $pdo_db, $lang, $account, $playerinfo)
"</td></tr>" .
"<tr>" .
" <td height=30 colspan=2 align=left>" .
" <span style='color:\"#00ff00\";'>You can deposit only ". number_format($credit_space, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep'])." credits.</span><br>" .
" <span style='color:\"#00ff00\";'>You can deposit only ". number_format($credit_space, 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . " credits.</span><br>" .
" </td>" .
"</tr>" .
"<tr valign=bottom>" .
Expand Down
4 changes: 2 additions & 2 deletions classes/Planet.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ public static function planetCombat($pdo_db, $db, $lang, $langvars, \Tki\Reg $tk
}
else
{
$langvars['l_cmb_youmaycapture'] = str_replace("[capture]", "<a href='planet.php?planet_id=". $planetinfo['planet_id'] ."&amp;command=capture'>" . $langvars['l_planet_capture1'] . "</a>", $langvars['l_cmb_youmaycapture']);
$langvars['l_cmb_youmaycapture'] = str_replace("[capture]", "<a href='planet.php?planet_id=". $planetinfo['planet_id'] . "&amp;command=capture'>" . $langvars['l_planet_capture1'] . "</a>", $langvars['l_cmb_youmaycapture']);
echo "<center><font color=red>" . $langvars['l_cmb_youmaycapture'] . "</font></center><br><br>";
\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);
Expand All @@ -592,7 +592,7 @@ public static function planetCombat($pdo_db, $db, $lang, $langvars, \Tki\Reg $tk
}
else
{
$langvars['l_cmb_youmaycapture'] = str_replace("[capture]", "<a href='planet.php?planet_id=". $planetinfo['planet_id'] ."&amp;command=capture'>" . $langvars['l_planet_capture1'] . "</a>", $langvars['l_cmb_youmaycapture']);
$langvars['l_cmb_youmaycapture'] = str_replace("[capture]", "<a href='planet.php?planet_id=". $planetinfo['planet_id'] . "&amp;command=capture'>" . $langvars['l_planet_capture1'] . "</a>", $langvars['l_cmb_youmaycapture']);
echo "<center>" . $langvars['l_cmb_youmaycapture'] . "</center><br><br>";
\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);
Expand Down
6 changes: 3 additions & 3 deletions classes/PlanetReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static function standardReport($pdo_db, $db, $langvars, $playerinfo, $sor
echo "<td><strong><a href=\"planet_report.php?preptype=1&amp;sort=sector_id\">" . $langvars['l_sector'] . "</a></strong></td>";
echo "<td><strong><a href=\"planet_report.php?preptype=1&amp;sort=name\">" . $langvars['l_name'] . "</a></strong></td>";
echo "<td><strong><a href=\"planet_report.php?preptype=1&amp;sort=ore\">" . $langvars['l_ore'] . "</a></strong></td>";
echo "<td><strong><a href=\"planet_report.php?preptype=1&amp;sort=organics\">" . $langvars['l_organics'] ."</a></strong></td>";
echo "<td><strong><a href=\"planet_report.php?preptype=1&amp;sort=organics\">" . $langvars['l_organics'] . "</a></strong></td>";
echo "<td><strong><a href=\"planet_report.php?preptype=1&amp;sort=goods\">" . $langvars['l_goods'] . "</a></strong></td>";
echo "<td><strong><a href=\"planet_report.php?preptype=1&amp;sort=energy\">" . $langvars['l_energy'] . "</a></strong></td>";
echo "<td align=center><strong><a href=\"planet_report.php?preptype=1&amp;sort=colonists\">" . $langvars['l_colonists'] . "</a></strong></td>";
Expand Down Expand Up @@ -172,7 +172,7 @@ public static function standardReport($pdo_db, $db, $langvars, $playerinfo, $sor
}

echo "<tr bgcolor=\"$color\">";
echo "<td><a href=rsmove.php?engage=1&destination=". $planet[$i]['sector_id'] . ">". $planet[$i]['sector_id'] ."</a></td>";
echo "<td><a href=rsmove.php?engage=1&destination=". $planet[$i]['sector_id'] . ">". $planet[$i]['sector_id'] . "</a></td>";
echo "<td>" . $planet[$i]['name'] . "</td>";
echo "<td>" . number_format($planet[$i]['ore'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . "</td>";
echo "<td>" . number_format($planet[$i]['organics'], 0, $langvars['local_number_dec_point'], $langvars['local_number_thousands_sep']) . "</td>";
Expand Down Expand Up @@ -333,7 +333,7 @@ public static function planetProductionChange($pdo_db, $db, $langvars, $playerin
}

echo "<tr bgcolor=\"$color\">\n";
echo "<td><a href=rsmove.php?engage=1&amp;destination=". $planet[$i]['sector_id'] . ">". $planet[$i]['sector_id'] ."</a></td>\n";
echo "<td><a href=rsmove.php?engage=1&amp;destination=". $planet[$i]['sector_id'] . ">". $planet[$i]['sector_id'] . "</a></td>\n";
echo "<td>" . $planet[$i]['name'] . "</td>\n";
echo "<td align=center>" . "<input size=6 type=text name=\"prod_ore[" . $planet[$i]['planet_id'] . "]\" value=\"" . $planet[$i]['prod_ore'] . "\">" . "</td>\n";
echo "<td align=center>" . "<input size=6 type=text name=\"prod_organics[" . $planet[$i]['planet_id'] . "]\" value=\"" . $planet[$i]['prod_organics'] . "\">" . "</td>\n";
Expand Down
Loading

0 comments on commit 8ae03ac

Please sign in to comment.