diff --git a/config.php b/config.php index 353b4ef..323bf19 100644 --- a/config.php +++ b/config.php @@ -29,9 +29,6 @@ // MYSQL CONNECTION DETAILS \\ // ------------------------ \\ - if ($config['ServerEngine'] !== 'OTHIRE') { - - // TFS DATABASE CONFIGS // phpmyadmin username for OT server: (DONT USE "root" if ur hosting to public.). $config['sqlUser'] = 'tfs13'; @@ -43,21 +40,6 @@ // Hostname is usually localhost or 127.0.0.1. $config['sqlHost'] = '127.0.0.1'; - } else { - - // OTHIRE DATABASE CONFIG - // phpmyadmin username for OT server: (DONT USE "root" if ur hosting to public.). - $config['sql_user'] = 'tfs13'; - - // phpmyadmin password for OT server: - $config['sql_pass'] = 'tfs13'; - - // The database name to connect to. (This is usually same as username). - $config['sql_db'] = 'tfs13'; - - // Hostname is usually localhost or 127.0.0.1. - $config['sql_host'] = '127.0.0.1'; - } // QR code authenticator Only works with TFS 1.2+ $config['twoFactorAuthenticator'] = false; diff --git a/engine/database/connect.php b/engine/database/connect.php index 93b1b17..9687502 100644 --- a/engine/database/connect.php +++ b/engine/database/connect.php @@ -289,10 +289,8 @@ INSERT INTO `znote_forum` (`name`, `access`, `closed`, `hidden`, `guild_id`) VAL "; -if ($config['ServerEngine'] !== 'OTHIRE') - $connect = new mysqli($config['sqlHost'], $config['sqlUser'], $config['sqlPassword'], $config['sqlDatabase']); -else - $connect = new mysqli($config['sql_host'], $config['sql_user'], $config['sql_pass'], $config['sql_db']); + +$connect = new mysqli($config['sqlHost'], $config['sqlUser'], $config['sqlPassword'], $config['sqlDatabase']); if ($connect->connect_errno) { die("Failed to connect to MySQL: (" . $connect->connect_errno . ") " . $connect->connect_error . $install);