Variables
downloadgps.php File Reference

This is a simple file that turns input into a GPS POI (CSV) file. More...

Variables

 $http_vars = array_merge_recursive ( $_GET, $_POST )
 $lng = floatval ( $http_vars['lng'] )
 $lat = floatval ( $http_vars['lat'] )
 $name = $http_vars['name']
 $desc = $http_vars['desc']
if(!$name) $filename = preg_replace ( "/[^a-zA-Z0-9\-_\.]+/", "_", preg_replace("/[\"']+/","",$name ) )

Detailed Description

This is a simple file that turns input into a GPS POI (CSV) file.

It outputs data in Universal CSV (GPS) Format.

Input is via the $_GET and/or $_POST facility. This file combines them.

Parameters:
latA floating-point number. The latitude of the point, in degrees.
lngA floating-point number. The longitude of the point, in degrees.
nameA string. The name of the point (Keep it short. It is used as a filename).
descA string. A description of the point.
Returns:
A CSV (Comma-Separated-Values) file, with the following two lines:
  • Line 1: The header, in Universal CSV form.
  • Line 2: The POIN data for this point.

The returned file is returned with a "text/csv" content-type, which usually results in a download, as it is returned as an "attachment," as opposed to inline.

This file is part of the Basic Meeting List Toolbox (BMLT).

Find out more at: http://magshare.org/bmlt

BMLT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

BMLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this code. If not, see <http://www.gnu.org/licenses/>.


Variable Documentation

$desc = $http_vars['desc']
if (!$name) $filename = preg_replace ( "/[^a-zA-Z0-9\-_\.]+/", "_", preg_replace("/[\"']+/","",$name ) )

Referenced by RedirectAJAX().

$http_vars = array_merge_recursive ( $_GET, $_POST )
$lat = floatval ( $http_vars['lat'] )
$lng = floatval ( $http_vars['lng'] )

Referenced by SetUpSearch().

$name = $http_vars['name']
 All Classes Files Functions Variables Enumerations