diff --git a/characterprofile.php b/characterprofile.php
index 535513b..b57cdab 100644
--- a/characterprofile.php
+++ b/characterprofile.php
@@ -7,7 +7,7 @@ if ($config['log_ip'])
if (isset($_GET['name']) === true && empty($_GET['name']) === false)
{
- $name = $_GET['name'];
+ $name = getValue($_GET['name']);
$user_id = user_character_exist($name);
if ($user_id !== false)
@@ -19,7 +19,7 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false)
if ($config['Ach'])
{
- $achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`='$user_id'");
+ $achievementPoints = mysql_select_single("SELECT SUM(`value`) AS `sum` FROM `player_storage` WHERE `key` LIKE '30___' AND `player_id`=(int)$user_id");
}
}
@@ -47,8 +47,12 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false)
Profile:
-
- - Country: '; ?>
+
+
+ - Country: '; ?>
-
@@ -130,7 +134,7 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false)
$townid = ($config['TFSVersion'] === 'TFS_03') ? 'town' : 'town_id';
$houses = mysql_select_multi("SELECT `id`, `owner`, `name`, `$townid` AS `town_id` FROM `houses` WHERE `owner` = $user_id;");
- if ($houses !== false)
+ if ($houses)
{
$playerlist = array();
foreach ($houses as $h)
@@ -144,7 +148,7 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false)
{
?>
- House: , $value)
+ foreach ($config['towns'] as $key => $value)
{
if ($key == $h['town_id'])
{
@@ -159,8 +163,9 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false)
}
}
?>
-
+
+
- Status: ONLINE';
}
@@ -186,6 +191,7 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false)
}
?>
+
- Created:
@@ -203,52 +209,6 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false)
}
?>
-
-
-
-
- Player HP:
- |
-
-
-
- |
-
-
-
- Player MP:
- |
-
-
-
- |
-
-
-
- Player XP:
- |
-
- Experience.
- |
-
-
-
- To Next Lvl:
- |
-
- Need experience (%) to Level .
-
- |
-
-
-
-
diff --git a/config.php b/config.php
index 842930a..a859981 100644
--- a/config.php
+++ b/config.php
@@ -439,6 +439,9 @@
// Use guild logo system
$config['use_guild_logos'] = true;
+
+ // Use country flags
+ $config['country_flags'] = false;
// Level requirement to create guild? (Just set it to 1 to allow all levels).
$config['create_guild_level'] = 8;
diff --git a/helpdesk.php b/helpdesk.php
index 6580bc3..d177714 100644
--- a/helpdesk.php
+++ b/helpdesk.php
@@ -1,8 +1,6 @@
0) ? (int)$_GET['view'] : false;