diff --git a/web/configs/version.json b/web/configs/version.json index dc1302fd7..c4f2e17e1 100644 --- a/web/configs/version.json +++ b/web/configs/version.json @@ -1,5 +1,5 @@ { - "version": "1.8.0", - "git": "1294", + "version": "1.8.1", + "git": "1305", "dev": true } diff --git a/web/install/includes/sql/data.sql b/web/install/includes/sql/data.sql index 06bc975b8..6c04f26fe 100644 --- a/web/install/includes/sql/data.sql +++ b/web/install/includes/sql/data.sql @@ -43,6 +43,7 @@ INSERT INTO `{prefix}_settings` (`setting`, `value`) VALUES ('config.enablesubmit', '1'), ('config.exportpublic', '0'), ('config.enablepubliccomments', '0'), +('config.enablegametracker', '0'), ('config.enablekickit', '1'), ('config.dateformat', 'Y-m-d H:i:s'), ('config.theme', 'default'), 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 = ; + + + + +
{help_icon title="Enable GameTracker Support" message="Check this box, if you want to enable GameTracker support."}Enable GameTracker Support
+ +
+ +
+
+ + + + + diff --git a/web/themes/default/page_servers.tpl b/web/themes/default/page_servers.tpl index f186dfd95..4ae6dd37a 100644 --- a/web/themes/default/page_servers.tpl +++ b/web/themes/default/page_servers.tpl @@ -39,7 +39,10 @@

-

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

+

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

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