$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['TFSVersion'] == 'TFS_02' || $config['TFSVersion'] == 'TFS_10') { set_ingame_position($_POST['position_name'], $_POST['position_type']); } else if ($config['TFSVersion'] == '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.'; } } // 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) .".
";
?>