diff --git a/characterprofile.php b/characterprofile.php
index 7ad5676..86f68a3 100644
--- a/characterprofile.php
+++ b/characterprofile.php
@@ -5,15 +5,18 @@ if ($config['log_ip']) {
if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
$name = $_GET['name'];
$user_id = user_character_exist($name);
+
if ($user_id !== false) {
+
if ($config['TFSVersion'] == 'TFS_10') {
- $profile_data = user_character_data($user_id, 'name', 'level', 'vocation', 'lastlogin', 'sex');
+ $profile_data = user_character_data($user_id, 'account_id', 'name', 'level', 'vocation', 'lastlogin', 'sex');
$profile_data['online'] = user_is_online_10($user_id);
if ($config['Ach'] == true) {
$achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`='$user_id'");
}
- } else $profile_data = user_character_data($user_id, 'name', 'level', 'vocation', 'lastlogin', 'online', 'sex');
+ } else $profile_data = user_character_data($user_id, 'account_id', 'name', 'level', 'vocation', 'lastlogin', 'online', 'sex');
$profile_znote_data = user_znote_character_data($user_id, 'created', 'hide_char', 'comment');
+ $account_data = user_znote_account_data($profile_data['account_id'], 'flag');
$guild_exist = false;
if (get_character_guild_rank($user_id) > 0) {
@@ -27,7 +30,7 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
Profile:
-
+ - Country: '; ?>
- Sex:Points"; ?>
|
- |
+ '; ?> |
|
|
". $scores[$type][$i]['experience'] .""; ?>
diff --git a/register.php b/register.php
index 0a9a12d..f7aca66 100644
--- a/register.php
+++ b/register.php
@@ -1,7 +1,7 @@
$_POST['username'],
+ 'name' => $_POST['username'],
'password' => $_POST['password'],
'email' => $_POST['email'],
- 'ip' => ip2long(getIP()),
- 'created' => time()
+ 'created' => time(),
+ 'ip' => ip2long(getIP()),
+ 'flag' => $_POST['flag']
);
user_create_account($register_data, $config['mailserver']);
@@ -146,6 +148,22 @@ if (isset($_GET['success']) && empty($_GET['success'])) {
Email:
+ -
+ Country:
+
+