Compatibility with OTHire (#330)

* Preparing compatibility to OTHire

* Still working on compatibility to OTHire

* More compatibility

* More compatibility

Not tested yet

* Some fixes

- Fixed Account Creation.
- Fixed a problem that you can't load the website, that include that you can now recover your account number.

* More fixes

- Fixed character creation.
- Fixed login problem.
- Fixed displaying account number in My Account.
- Fixed displaying if you have premium days or not in My Account.

* More fixes

- Handle Kills/Deaths as TFS_03

* More fixes

- Fixed showing outfits in character profile
- Fixed displaying player houses in character profile
- Fixed displaying guilds

* Update init.php
This commit is contained in:
Rodrigo Paixão
2018-12-03 04:58:29 -02:00
committed by Stefan A. Brannfjell
parent 0d51f87c76
commit 2817010781
30 changed files with 377 additions and 198 deletions

View File

@@ -8,12 +8,13 @@
// Tested with TFS items.xml master (1.3)
$config['items'] = false;
// Available options: TFS_02, TFS_03
// Available options: TFS_02, TFS_03, OTHIRE
// OTHire = OTHIRE
// TFS 0.2 = TFS_02
// TFS 0.3 = TFS_03 (If ur using 0.3.6, set $config['salt'] to false)!
// TFS 0.4 = TFS_03
// TFS 1.0 = TFS_10 (Under developement)
$config['TFSVersion'] = 'TFS_10';
$config['ServerEngine'] = 'TFS_10';
// As far as I know, OTX is based on TFS_03, so make sure TFS version is configured TFS_03
$config['CustomVersion'] = false;
@@ -28,6 +29,9 @@
// 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';
@@ -39,6 +43,21 @@
// 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;