Fixed character conversion issues.

This commit is contained in:
pricetx 2015-07-07 12:29:09 +00:00
parent 95644a0f24
commit 652d58fc76

View File

@ -150,7 +150,7 @@ function printMap($type = 'main')
$servers_js = array(); $servers_js = array();
foreach ($map_location['servers'] as $server) foreach ($map_location['servers'] as $server)
{ {
$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/"); $search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/");
$replace_pattern = array(""); $replace_pattern = array("");
$server['name'] = preg_replace($search_pattern, $replace_pattern, $server['name']); $server['name'] = preg_replace($search_pattern, $replace_pattern, $server['name']);
$temp = "[" . $server['serverId'] . ','; $temp = "[" . $server['serverId'] . ',';
@ -183,7 +183,7 @@ function printMap($type = 'main')
{ {
$players[$row['cli_lat'] . ',' . $row['cli_lng']] = array('cli_lat' => $row['cli_lat'], 'cli_lng' => $row['cli_lng'], 'cli_city' => $row['cli_city'], 'cli_country' => $row['cli_country']); $players[$row['cli_lat'] . ',' . $row['cli_lng']] = array('cli_lat' => $row['cli_lat'], 'cli_lng' => $row['cli_lng'], 'cli_city' => $row['cli_city'], 'cli_country' => $row['cli_country']);
} }
$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/"); $search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/");
$replace_pattern = array(""); $replace_pattern = array("");
$row['name'] = preg_replace($search_pattern, $replace_pattern, $row['name']); $row['name'] = preg_replace($search_pattern, $replace_pattern, $row['name']);
@ -246,7 +246,7 @@ function printMap($type = 'main')
'country' => $row['country'] 'country' => $row['country']
); );
} }
$search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/"); $search_pattern = array("/[^A-Za-z0-9\[\]*.,=()!\"$%&^`´':;߲ł#+~_\-|<>\/@{}äöüÄÖÜ ]/");
$replace_pattern = array(""); $replace_pattern = array("");
$row['name'] = preg_replace($search_pattern, $replace_pattern, $row['name']); $row['name'] = preg_replace($search_pattern, $replace_pattern, $row['name']);