mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
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:

committed by
Stefan A. Brannfjell

parent
0d51f87c76
commit
2817010781
10
admin.php
10
admin.php
@@ -50,9 +50,9 @@ if (empty($_POST) === false) {
|
||||
$acc_id = user_character_account_id($_POST['reset_pass']);
|
||||
|
||||
if ($acc_id != $session_user_id) {
|
||||
if ($config['TFSVersion'] == 'TFS_02' || $config['TFSVersion'] == 'TFS_10') {
|
||||
if ($config['ServerEngine'] == 'TFS_02' || $config['ServerEngine'] == 'TFS_10' || $config['ServerEngine'] == 'OTHIRE') {
|
||||
user_change_password($acc_id, $_POST['new_pass']);
|
||||
} else if ($config['TFSVersion'] == 'TFS_03') {
|
||||
} else if ($config['ServerEngine'] == 'TFS_03') {
|
||||
user_change_password03($acc_id, $_POST['new_pass']);
|
||||
}
|
||||
$errors[] = 'The password to the account of character name: '. getValue($_POST['reset_pass']) .' has been set to: '. getValue($_POST['new_pass']) .'.';
|
||||
@@ -89,9 +89,9 @@ if (empty($_POST) === false) {
|
||||
if (empty($_POST['position_name']) === false && empty($_POST['position_type']) === false) {
|
||||
if (user_character_exist($_POST['position_name'])) {
|
||||
if (array_key_exists($_POST['position_type'], $config['ingame_positions'])) {
|
||||
if ($config['TFSVersion'] == 'TFS_02' || $config['TFSVersion'] == 'TFS_10') {
|
||||
if ($config['ServerEngine'] == 'TFS_02' || $config['ServerEngine'] == 'TFS_10' || $config['ServerEngine'] == 'OTHIRE') {
|
||||
set_ingame_position($_POST['position_name'], $_POST['position_type']);
|
||||
} else if ($config['TFSVersion'] == 'TFS_03') {
|
||||
} else if ($config['ServerEngine'] == 'TFS_03') {
|
||||
set_ingame_position03($_POST['position_name'], $_POST['position_type']);
|
||||
}
|
||||
$pos = 'Undefined';
|
||||
@@ -239,7 +239,7 @@ echo "Last cached on: ". getClock($basic['cached'], true) .".<br>";
|
||||
<li>
|
||||
<b>Set character name to position:</b>
|
||||
<?php
|
||||
if ($config['TFSVersion'] == 'TFS_03' && count($config['ingame_positions']) == 5) {
|
||||
if ($config['ServerEngine'] == 'TFS_03' && count($config['ingame_positions']) == 5) {
|
||||
?>
|
||||
<font color="red">ERROR: You forgot to add (Senior Tutor) rank in config.php!</font>
|
||||
<?php
|
||||
|
Reference in New Issue
Block a user