diff --git a/admin/bans_editor.php b/admin/bans_editor.php
index dc292cf96..b3d304f8d 100644
--- a/admin/bans_editor.php
+++ b/admin/bans_editor.php
@@ -34,7 +34,7 @@
$bans = null;
$players = null;
- $res = $db->Execute("SELECT ban_mask FROM {$db->prefix}ip_bans");
+ $res = $old_db->Execute("SELECT ban_mask FROM {$old_db->prefix}ip_bans");
Tki\Db::logDbErrors($pdo_db, $res, __LINE__, __FILE__);
while (!$res->EOF)
{
@@ -78,7 +78,7 @@
echo "
" . $printban . " | " .
"";
- $res = $db->Execute("SELECT character_name, ship_id, email FROM {$db->prefix}ships WHERE ip_address LIKE ?;", array($ban));
+ $res = $old_db->Execute("SELECT character_name, ship_id, email FROM {$old_db->prefix}ships WHERE ip_address LIKE ?;", array($ban));
Tki\Db::logDbErrors($pdo_db, $res, __LINE__, __FILE__);
unset($players);
$players = null;
@@ -130,7 +130,7 @@
elseif ($command == 'showips')
{
$ips = array();
- $res = $db->Execute("SELECT DISTINCT ip_address FROM {$db->prefix}ships");
+ $res = $old_db->Execute("SELECT DISTINCT ip_address FROM {$old_db->prefix}ships");
Tki\Db::logDbErrors($pdo_db, $res, __LINE__, __FILE__);
while (!$res->EOF)
{
@@ -166,7 +166,7 @@
echo " | " . $ip . " | " .
"";
- $res = $db->Execute("SELECT character_name, ship_id, email FROM {$db->prefix}ships WHERE ip_address = ?;", array($ip));
+ $res = $old_db->Execute("SELECT character_name, ship_id, email FROM {$old_db->prefix}ships WHERE ip_address = ?;", array($ip));
Tki\Db::logDbErrors($pdo_db, $res, __LINE__, __FILE__);
unset($players);
$players = null;
@@ -267,9 +267,9 @@
$printban = htmlentities($printban, ENT_QUOTES | ENT_HTML5, 'UTF-8');
echo "" . $langvars['l_admin_ban_success'] . " " . $printban . ". ";
- $resx = $db->Execute("INSERT INTO {$db->prefix}ip_bans values (NULL, ?);", array($banmask));
+ $resx = $old_db->Execute("INSERT INTO {$old_db->prefix}ip_bans values (NULL, ?);", array($banmask));
Tki\Db::logDbErrors($pdo_db, $resx, __LINE__, __FILE__);
- $res = $db->Execute("SELECT DISTINCT character_name FROM {$db->prefix}ships, {$db->prefix}ip_bans WHERE ip_address LIKE ban_mask");
+ $res = $old_db->Execute("SELECT DISTINCT character_name FROM {$old_db->prefix}ships, {$old_db->prefix}ip_bans WHERE ip_address LIKE ban_mask");
Tki\Db::logDbErrors($pdo_db, $res, __LINE__, __FILE__);
echo $langvars['l_admin_affected_players'] . " : ";
while (!$res->EOF)
@@ -289,12 +289,12 @@
$ip = $_POST['ip'];
if ($ban !== null)
{
- $res = $db->Execute("SELECT * FROM {$db->prefix}ip_bans WHERE ban_mask = ?;", array($ban));
+ $res = $old_db->Execute("SELECT * FROM {$old_db->prefix}ip_bans WHERE ban_mask = ?;", array($ban));
Tki\Db::logDbErrors($pdo_db, $res, __LINE__, __FILE__);
}
else
{
- $res = $db->Execute("SELECT * FROM {$db->prefix}ip_bans WHERE ? LIKE ban_mask;", array($ip));
+ $res = $old_db->Execute("SELECT * FROM {$old_db->prefix}ip_bans WHERE ? LIKE ban_mask;", array($ip));
Tki\Db::logDbErrors($pdo_db, $res, __LINE__, __FILE__);
}
@@ -309,12 +309,12 @@
if ($ban !== null)
{
- $resx = $db->Execute("DELETE FROM {$db->prefix}ip_bans WHERE ban_mask = ?;", array($ban));
+ $resx = $old_db->Execute("DELETE FROM {$old_db->prefix}ip_bans WHERE ban_mask = ?;", array($ban));
Tki\Db::logDbErrors($pdo_db, $resx, __LINE__, __FILE__);
}
else
{
- $resx = $db->Execute("DELETE FROM {$db->prefix}ip_bans WHERE ? LIKE ban_mask;", array($ip));
+ $resx = $old_db->Execute("DELETE FROM {$old_db->prefix}ip_bans WHERE ? LIKE ban_mask;", array($ip));
Tki\Db::logDbErrors($pdo_db, $resx, __LINE__, __FILE__);
}
@@ -324,7 +324,7 @@
$query_string = $query_string . " OR ip_address LIKE '" . $bans[$i]['ban_mask'] . "'";
}
- $res = $db->Execute("SELECT DISTINCT character_name FROM {$db->prefix}ships WHERE ?;", array($query_string));
+ $res = $old_db->Execute("SELECT DISTINCT character_name FROM {$old_db->prefix}ships WHERE ?;", array($query_string));
Tki\Db::logDbErrors($pdo_db, $res, __LINE__, __FILE__);
$nbplayers = $res->RecordCount();
$players = null;
diff --git a/admin/log_viewer.php b/admin/log_viewer.php
index 3006d5787..f71c1fe6c 100644
--- a/admin/log_viewer.php
+++ b/admin/log_viewer.php
@@ -23,7 +23,7 @@
*/
$players = array();
-$res = $db->Execute("SELECT ship_id, character_name FROM {$db->prefix}ships ORDER BY character_name ASC");
+$res = $old_db->Execute("SELECT ship_id, character_name FROM {$old_db->prefix}ships ORDER BY character_name ASC");
Tki\Db::logDbErrors($pdo_db, $res, __LINE__, __FILE__);
while (!$res->EOF)
{
diff --git a/admin/perf_monitor.php b/admin/perf_monitor.php
index 04ecb6575..b5fae7c2c 100644
--- a/admin/perf_monitor.php
+++ b/admin/perf_monitor.php
@@ -22,8 +22,8 @@
*
*/
-//adodb_perf::table("{$db->prefix}adodb_logsql");
-$perf = NewPerfMonitor($db);
+//adodb_perf::table("{$old_db->prefix}adodb_logsql");
+$perf = NewPerfMonitor($old_db);
$pollsecs = 5;
$perf->UI($pollsecs);
diff --git a/admin/planet_editor.php b/admin/planet_editor.php
index dcb108abd..591dd018c 100644
--- a/admin/planet_editor.php
+++ b/admin/planet_editor.php
@@ -27,7 +27,7 @@
if (empty($planet_id))
{
echo " |