diff --git a/attack.php b/attack.php
index d819bfc46..59f3de8b3 100644
--- a/attack.php
+++ b/attack.php
@@ -74,7 +74,7 @@
{
echo $langvars['l_att_noturn'] . '
';
}
-elseif (Tki\Team::sameTeam($playerinfo['team'], $targetinfo['team']))
+elseif (Tki\Team::isSameTeam($playerinfo['team'], $targetinfo['team']))
{
echo "
" . $langvars['l_team_noattack_members'] . "
\n";
}
diff --git a/classes/Ibank.php b/classes/Ibank.php
index c8ad60654..79eb117e1 100644
--- a/classes/Ibank.php
+++ b/classes/Ibank.php
@@ -17,10 +17,6 @@
// along with this program. If not, see \n";
echo "
Planet Status" .
diff --git a/classes/PlanetReportCE.php b/classes/PlanetReportCE.php
index 14b60c067..ab7071a87 100644
--- a/classes/PlanetReportCE.php
+++ b/classes/PlanetReportCE.php
@@ -17,10 +17,6 @@
// along with this program. If not, see
.
//
// File: classes/PlanetReportCE.php
-//
-// FUTURE: These are horribly bad. They should be broken out of classes, and turned mostly into template
-// behaviors. But in the interest of saying goodbye to the includes directory, and raw functions, this
-// will at least allow us to auto-load and use classes instead. Plenty to do in the future, though!
namespace Tki;
diff --git a/classes/Player.php b/classes/Player.php
index e99d92c67..4a7f6670c 100644
--- a/classes/Player.php
+++ b/classes/Player.php
@@ -24,7 +24,7 @@
class Player
{
- public static function handleAuth(\PDO $pdo_db, string $lang, array $langvars, Reg $tkireg, Smarty $template)
+ public static function auth(\PDO $pdo_db, string $lang, array $langvars, Reg $tkireg, Smarty $template)
{
$request = Request::createFromGlobals();
$flag = true;
@@ -97,7 +97,7 @@ public static function handleAuth(\PDO $pdo_db, string $lang, array $langvars, R
}
}
- public static function handleBan(\PDO $pdo_db, string $lang, $timestamp, Smarty $template, array $playerinfo, array $langvars, Reg $tkireg)
+ public static function ban(\PDO $pdo_db, string $lang, $timestamp, Smarty $template, array $playerinfo, array $langvars, Reg $tkireg)
{
// Check to see if the player is banned every 60 seconds (may need to ajust this).
if ($timestamp['now'] >= ($timestamp['last'] + 60))
diff --git a/classes/Team.php b/classes/Team.php
index 753a4c983..892d29953 100644
--- a/classes/Team.php
+++ b/classes/Team.php
@@ -22,7 +22,7 @@
class Team
{
- public static function sameTeam($attacker_team = null, $attackie_team = null) : bool
+ public static function isSameTeam($attacker_team = null, $attackie_team = null) : bool
{
if (($attacker_team != $attackie_team) || ($attacker_team == 0 || $attackie_team == 0))
{
diff --git a/planet.php b/planet.php
index 25538ffac..9e767ebf0 100644
--- a/planet.php
+++ b/planet.php
@@ -636,7 +636,7 @@
}
elseif ($command == "bomb" && $tkireg->allow_sofa)
{
- Planet::planetBombing($pdo_db, $lang, $langvars, $tkireg, $playerinfo, $ownerinfo, $planetinfo, $template);
+ Planet::bombing($pdo_db, $lang, $langvars, $tkireg, $playerinfo, $ownerinfo, $planetinfo, $template);
}
elseif ($command == "scan")
{
diff --git a/planet_report.php b/planet_report.php
index b2dd39cf2..ba006677e 100644
--- a/planet_report.php
+++ b/planet_report.php
@@ -56,13 +56,13 @@
{
$title = $title . ": Menu";
echo "
" . $title . "
\n";
- Tki\PlanetReport::planetReportMenu($playerinfo, $langvars);
+ Tki\PlanetReport::menu($playerinfo, $langvars);
}
else // Display the menu if no valid options are passed in
{
$title = $title . ": Status";
echo "
" . $title . "
\n";
- Tki\PlanetReport::planetReportMenu($playerinfo, $langvars);
+ Tki\PlanetReport::menu($playerinfo, $langvars);
}
echo "
";
diff --git a/ship.php b/ship.php
index bb2dcb56c..2d7c93d30 100644
--- a/ship.php
+++ b/ship.php
@@ -55,7 +55,7 @@
echo $langvars['l_ship_perform'] . "
";
echo "
" . $langvars['l_planet_scn_link'] . "";
- if (!Tki\Team::sameTeam($playerinfo['team'], $othership['team']))
+ if (!Tki\Team::isSameTeam($playerinfo['team'], $othership['team']))
{
echo "
" . $langvars['l_planet_att_link'] . "";
}