From ffde67c3336af9a79641aac3a7c7cfbc35bebdca Mon Sep 17 00:00:00 2001 From: Connor Richlen Date: Wed, 27 Sep 2023 10:34:13 -0500 Subject: [PATCH 01/13] Create 706.php --- web/updater/data/706.php | 1 + 1 file changed, 1 insertion(+) create mode 100644 web/updater/data/706.php diff --git a/web/updater/data/706.php b/web/updater/data/706.php new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/web/updater/data/706.php @@ -0,0 +1 @@ + From 533937da768b312d271e025c21e5ae91765a0f17 Mon Sep 17 00:00:00 2001 From: Connor Richlen Date: Wed, 27 Sep 2023 10:36:40 -0500 Subject: [PATCH 02/13] Update 706.php --- web/updater/data/706.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/updater/data/706.php b/web/updater/data/706.php index 8b1378917..42a4853f8 100644 --- a/web/updater/data/706.php +++ b/web/updater/data/706.php @@ -1 +1,11 @@ +dbs->query($sql); +$this->dbs->execute(); + +return true; From f28a988ccd5d3a3e3f4d34fae09b9acac6d308a4 Mon Sep 17 00:00:00 2001 From: Connor Richlen Date: Wed, 27 Sep 2023 10:41:00 -0500 Subject: [PATCH 03/13] Update admin.settings.php --- web/pages/admin.settings.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/pages/admin.settings.php b/web/pages/admin.settings.php index c15be1283..87636f7f4 100644 --- a/web/pages/admin.settings.php +++ b/web/pages/admin.settings.php @@ -278,6 +278,8 @@ $steamloginopt = (isset($_POST['enable_steamlogin']) && $_POST['enable_steamlogin'] == "on" ? 1 : 0); $publiccomments = (isset($_POST['enable_publiccomments']) && $_POST['enable_publiccomments'] == "on" ? 1 : 0); + + $gametracker = (isset($_POST['enable_gametracker']) && $_POST['enable_gametracker'] == "on" ? 1 : 0); $edit = $GLOBALS['db']->Execute("REPLACE INTO " . DB_PREFIX . "_settings (`value`, `setting`) VALUES (" . (int) $exportpub . ", 'config.exportpublic'), @@ -286,6 +288,7 @@ (" . (int) $friendsban . ", 'config.enablefriendsbanning'), (" . (int) $adminrehash . ", 'config.enableadminrehashing'), (" . (int) $publiccomments . ", 'config.enablepubliccomments'), + (" . (int) $gametracker . ", 'config.enablegametracker'), (" . (int) $steamloginopt . ", 'config.enablesteamlogin')"); @@ -369,6 +372,7 @@ $('enable_adminrehashing').checked = ; $('enable_steamlogin').checked = ; $('enable_publiccomments').checked = ; +$('enable_gametracker').checked = ; $('mail_verify_peer').checked = ; Date: Wed, 27 Sep 2023 10:54:52 -0500 Subject: [PATCH 04/13] Update page_servers.tpl --- web/themes/default/page_servers.tpl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/web/themes/default/page_servers.tpl b/web/themes/default/page_servers.tpl index f186dfd95..380b22ba5 100644 --- a/web/themes/default/page_servers.tpl +++ b/web/themes/default/page_servers.tpl @@ -9,6 +9,9 @@ Hostname Players Map + {if (Config::getBool('config.enablegametracker') } + GameTracker + {/if} @@ -39,7 +42,10 @@

-

{$server.ip}:{$server.port}

+

{$server.ip}:{$server.port}

+ {if (Config::getBool('config.enablegametracker') } +
+ {/if}
@@ -51,7 +57,10 @@