if(@$_GET['show_changes'] == 1) echo '';
$html->stop();
break;
case 'insert_comment_post':
$vars = $_POST;
$files = $_FILES;
$user_id = $users->info['id'];
$temp = explode("\t", str_replace(',', '.', $vars['position_text']));
$lat = floatval($temp[0]);
$lon = floatval($temp[1]);
$zoom = floatval($temp[2]);
$sql->insert(array(
'title'=>$sql->ts($vars['title']),
'description'=>$sql->ts($vars['description']),
'datetime_stamp'=>$sql->i(time()),
'user_id'=>$sql->i($user_id),
'signature'=>$sql->s($vars['signature']),
'email'=>$sql->s($vars['email']),
'lat'=>$sql->f($lat),
'lon'=>$sql->f($lon),
'zoom'=>$sql->f($zoom),
), DB.'comment');
$comment_id = $sql->get_last_id();
foreach(explode("\r\n", trim($vars['markers_text'])) as $row)
{
$temp = explode("\t", str_replace(',', '.', $row));
$marker_id = intval($temp[0]);
$lat = floatval($temp[1]);
$lon = floatval($temp[2]);
$sql->insert(array(
'comment_id'=>$sql->i($comment_id),
'marker_id'=>$sql->i($marker_id),
'lat'=>$sql->f($lat),
'lon'=>$sql->f($lon),
), DB.'comment_point');
}
location('index.php?show_changes=1');
break;
case 'changes':
echo 'var e_changes = document.getElementById("changes"); var changes_html = \'\';';
foreach($sql->get('*', DB.'comment order by datetime_stamp desc') as $row)
{
?>
function showComment Notice: Undefined variable: row in /gislab/www/projects/ifl2/index.php on line 203
Notice: Trying to access array offset on value of type null in /gislab/www/projects/ifl2/index.php on line 203
()
{
map.setCenter(new GLatLng( Notice: Undefined variable: row in /gislab/www/projects/ifl2/index.php on line 205
Notice: Trying to access array offset on value of type null in /gislab/www/projects/ifl2/index.php on line 205
, Notice: Undefined variable: row in /gislab/www/projects/ifl2/index.php on line 205
Notice: Trying to access array offset on value of type null in /gislab/www/projects/ifl2/index.php on line 205
), Notice: Undefined variable: row in /gislab/www/projects/ifl2/index.php on line 205
Notice: Trying to access array offset on value of type null in /gislab/www/projects/ifl2/index.php on line 205
);
map.clearOverlays();
foreach($sql->get('*', DB.'comment_point', 'comment_id='.$sql->i($row['id'])) as $point) { ?>
map.addOverlay(createMarker(new GLatLng( Notice: Undefined variable: point in /gislab/www/projects/ifl2/index.php on line 208
Notice: Trying to access array offset on value of type null in /gislab/www/projects/ifl2/index.php on line 208
, Notice: Undefined variable: point in /gislab/www/projects/ifl2/index.php on line 208
Notice: Trying to access array offset on value of type null in /gislab/www/projects/ifl2/index.php on line 208
), Notice: Undefined variable: point in /gislab/www/projects/ifl2/index.php on line 208
Notice: Trying to access array offset on value of type null in /gislab/www/projects/ifl2/index.php on line 208
));
} ?>
}
echo 'changes_html += \'