@@ -352,7 +352,8 @@
|
||||
$thisline = mb_ereg_replace('{hints}', '', $thisline);
|
||||
else
|
||||
// Ocprop: <groundspeak:encoded_hints>(.*?)<\/groundspeak:encoded_hints>
|
||||
$thisline = mb_ereg_replace('{hints}', ' <groundspeak:encoded_hints>' . xmlentities(decodeEntities(strip_tags($r['hint']))) . '</groundspeak:encoded_hints>
|
||||
$hint = html_entity_decode(strip_tags($r['hint']), ENT_COMPAT, "UTF-8");
|
||||
$thisline = mb_ereg_replace('{hints}', ' <groundspeak:encoded_hints>' . xmlentities($hint) . '</groundspeak:encoded_hints>
|
||||
', $thisline);
|
||||
|
||||
$thisline = mb_ereg_replace('{shortdesc}', xmlentities($r['short_desc']), $thisline);
|
||||
@@ -569,7 +570,7 @@
|
||||
}
|
||||
|
||||
exit;
|
||||
|
||||
|
||||
function decodeEntities($str)
|
||||
{
|
||||
$str = changePlaceholder($str);
|
||||
@@ -582,7 +583,8 @@
|
||||
{
|
||||
$placeholder[0] = '{oc-placeholder-lt}'; $entity[0] = '<';
|
||||
$placeholder[1] = '{oc-placeholder-gt}'; $entity[1] = '>';
|
||||
for ($i=0;$i<=1;$i++)
|
||||
$placeholder[2] = '{oc-placeholder-amp}'; $entity[2] = '&';
|
||||
for ($i=0;$i<count($placeholder);$i++)
|
||||
{
|
||||
if (!$inverse)
|
||||
{
|
||||
@@ -601,7 +603,7 @@
|
||||
$str = htmlspecialchars($str, ENT_NOQUOTES, "UTF-8");
|
||||
return filterevilchars($str);
|
||||
}
|
||||
|
||||
|
||||
function filterevilchars($str)
|
||||
{
|
||||
return mb_ereg_replace('[\\x00-\\x09|\\x0B-\\x0C|\\x0E-\\x1F]', '', $str);
|
||||
|
||||
@@ -83,8 +83,8 @@ Logeinträge:
|
||||
//TODO: load from the users-profile
|
||||
$distance_unit = 'km';
|
||||
|
||||
$lon_rad = $record_coords['longitude'] * 3.14159 / 180;
|
||||
$lat_rad = $record_coords['latitude'] * 3.14159 / 180;
|
||||
$lon_rad = $record_coords['longitude'] * 3.14159 / 180;
|
||||
$lat_rad = $record_coords['latitude'] * 3.14159 / 180;
|
||||
|
||||
$sql .= getSqlDistanceFormula($record_coords['longitude'], $record_coords['latitude'], 0, $multiplier[$distance_unit]) . ' `distance`, ';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user