summaryrefslogtreecommitdiff
path: root/gpsd.php
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2007-12-14 04:06:32 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2007-12-14 04:06:32 +0000
commit441cf11e9aa622809be5121f64d0e615e04343af (patch)
treec0eb64a072ee6d425036eb21c3c6af862be3a3dc /gpsd.php
parent595dd7251bc8f1d771c1981ca6a95acf69aeae43 (diff)
downloadgpsd-441cf11e9aa622809be5121f64d0e615e04343af.tar.gz
more magic
Diffstat (limited to 'gpsd.php')
-rw-r--r--gpsd.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsd.php b/gpsd.php
index 11f2ca5a..5b324318 100644
--- a/gpsd.php
+++ b/gpsd.php
@@ -17,7 +17,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
global $head, $blurb, $title, $googlemap, $autorefresh, $footer, $gmap_key;
-global $GPS, $server, $advertise, $port, $magic, $swap_ew;
+global $GPS, $server, $advertise, $port, $magic, $swap_ew, $magic;
$magic = 1; # leave this set to 1
if (!file_exists("gpsd_config.inc"))
@@ -351,6 +351,7 @@ function parse_pvt($resp){
function write_html($resp){
global $GPS, $sock, $errstr, $errno, $server, $port, $head, $body;
global $blurb, $title, $autorefresh, $googlemap, $gmap_key, $footer;
+ global $magic;
header("Content-type: text/html; charset=UTF-8");