remove unused forum sql configuration & globals

This commit is contained in:
spookerton
2022-05-08 11:17:48 +01:00
parent b7d8d4050f
commit f631638862
5 changed files with 0 additions and 75 deletions
-41
View File
@@ -1065,47 +1065,6 @@ var/global/list/gamemode_cache = list()
else
log_misc("Unknown setting in configuration: '[name]'")
/datum/configuration/proc/loadforumsql(filename) // -- TLE
var/list/Lines = file2list(filename)
for(var/t in Lines)
if(!t) continue
t = trim(t)
if (length(t) == 0)
continue
else if (copytext(t, 1, 2) == "#")
continue
var/pos = findtext(t, " ")
var/name = null
var/value = null
if (pos)
name = lowertext(copytext(t, 1, pos))
value = copytext(t, pos + 1)
else
name = lowertext(t)
if (!name)
continue
switch (name)
if ("address")
forumsqladdress = value
if ("port")
forumsqlport = value
if ("database")
forumsqldb = value
if ("login")
forumsqllogin = value
if ("password")
forumsqlpass = value
if ("activatedgroup")
forum_activated_group = value
if ("authenticatedgroup")
forum_authenticated_group = value
else
log_misc("Unknown setting in configuration: '[name]'")
/datum/configuration/proc/pick_mode(mode_name)
// I wish I didn't have to instance the game modes in order to look up
-1
View File
@@ -435,7 +435,6 @@ var/global/world_topic_spam_protect_time = world.timeofday
config.load("config/config.txt")
config.load("config/game_options.txt","game_options")
config.loadsql("config/dbconfig.txt")
config.loadforumsql("config/forumdbconfig.txt")
/hook/startup/proc/loadMods()
world.load_mods()
-9
View File
@@ -108,15 +108,6 @@ var/global/datum/metric/metric = new() // Metric datum, used to keep track of th
var/global/list/awaydestinations = list() // Away missions. A list of landmarks that the warpgate can take you to.
// Forum MySQL configuration. (for use with forum account/key authentication)
// These are all default values that will load should the forumdbconfig.txt file fail to read for whatever reason.
var/global/forumsqladdress = "localhost"
var/global/forumsqlport = "3306"
var/global/forumsqldb = "tgstation"
var/global/forumsqllogin = "root"
var/global/forumsqlpass = ""
var/global/forum_activated_group = "2"
var/global/forum_authenticated_group = "10"
// For FTP requests. (i.e. downloading runtime logs.)
// However it'd be ok to use for accessing attack logs and such too, which are even laggier.
@@ -45,11 +45,6 @@ GLOBAL_DATUM(debug_real_globals, /debug_real_globals) // :3c
/debug_real_globals/VV_hidden()
return list(
"forumsqladdress",
"forumsqldb",
"forumsqllogin",
"forumsqlpass",
"forumsqlport",
"sqladdress",
"sqldb",
"sqllogin",
-19
View File
@@ -1,19 +0,0 @@
# This configuration file is for the forum database, if you need to set up
# population, death, etc. tracking see 'dbconfig.txt'
# The login credentials for this will likely differ from those in dbconfig.txt!
# Server the MySQL database can be found at
# Examples: localhost, 200.135.5.43, www.mysqldb.com, etc.
ADDRESS localhost
# MySQL server port (default is 3306)
PORT 3306
# Database the forum data may be found in
DATABASE tgstation13
# Username/Login used to access the database
LOGIN mylogin
# Password used to access the database
PASSWORD mypassword