$znote_account['points'], 'New:' => $points, 'Total:' => ($znote_account['points'] + $points) ), false, "Points calculation:"); $points += $znote_account['points']; mysql_update("UPDATE `znote_accounts` SET `points`='$points' WHERE `account_id`='". $account['account_id'] ."';"); } // Set character position 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['ServerEngine'] == 'TFS_02' || $config['ServerEngine'] == 'TFS_10' || $config['ServerEngine'] == 'OTHIRE') { set_ingame_position($_POST['position_name'], $_POST['position_type']); } else if ($config['ServerEngine'] == 'TFS_03') { set_ingame_position03($_POST['position_name'], $_POST['position_type']); } $pos = 'Undefined'; foreach ($config['ingame_positions'] as $key=>$value) { if ($key == $_POST['position_type']) { $pos = $value; } } $errors[] = 'Character '. getValue($_POST['position_name']) .' recieved the ingame position: '. $pos .'.'; } } else { $errors[] = 'Character '. getValue($_POST['position_name']) .' does not exist.'; } } // Teleport Player if (isset($_POST['from']) && in_array($_POST['from'], ['all', 'only'])) { $from = $_POST['from']; if ($from === 'only') { if (empty($_POST['player_name']) || !user_character_exist($_POST['player_name'])) { $errors[] = 'Character '. getValue($_POST['player_name']) .' does not exist.'; } } if (!sizeof($errors)) { $to = $_POST['to']; $teleportQuery = 'UPDATE `players` SET '; if ($to == 'home') { $teleportQuery .= '`posx` = 0, `posy` = 0, `posz` = 0 '; } else if ($to == 'town') { $teleportQuery .= '`posx` = 0, `posy` = 0, `posz` = 0, `town_id` = ' . (int) getValue($_POST['town']) . ' '; } else if ($to == 'xyz') { $teleportQuery .= '`posx` = ' . (int) getValue($_POST['x']) . ', `posy` = ' . (int) getValue($_POST['y']) . ', `posz` = ' . (int) getValue($_POST['z']) . ' '; } if ($from === 'only') { $teleportQuery .= ' WHERE `name` = \'' . getValue($_POST['player_name']). '\''; } mysql_update($teleportQuery); } } // If empty post } // Display whatever output we figure out to add if (empty($errors) === false){ echo ''; echo output_errors($errors); echo ''; } // end ?>
";
echo "Last cached on: ". getClock($basic['cached'], true) .".
";
?>