Changeset 7771 for trunk/src/kml.php


Ignore:
Timestamp:
Apr 15, 2010, 9:25:51 PM (15 years ago)
Author:
Pieter Naber
Message:

Fixed small bug in kml.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kml.php

    r7768 r7771  
    99require_once($config['file_init']);
    1010
    11 $time = $_GET['time'] ? $_GET['time'] : mktime() - (mktime() % 300);
     11$time = isset($_GET['time']) ? $_GET['time'] : mktime() - (mktime() % 300);
    1212
    1313// Check if the file is already cached
     
    2727
    2828        // Write the file to the server
    29         $kmlFile = new FileHandler($config['root'] . '/kml/nodemap-' . $time . '.kml', 'w');
    30         $kmlFile->write($kmlFile->toString());  // Function doesn't work yet... Waiting for David...
     29        $file = new FileHandler($config['root'] . '/kml/nodemap-' . $time . '.kml', 'w');
     30        $file->write($kmlFile->toString());     // Function doesn't work yet... Waiting for David...
    3131}
    3232
    33 header('Location: ' . $config['root'] . '/kml/nodemap-' . $time . '.kml');
     33//header('Location: ' . $config['root'] . '/kml/nodemap-' . $time . '.kml');
    3434?>
Note: See TracChangeset for help on using the changeset viewer.