Changeset 7771


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

Fixed small bug in kml.php.

Location:
trunk/src
Files:
2 added
2 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?>
  • trunk/src/logfile.txt

    r7768 r7771  
     1Debug (8 | 23:23.36 04/15/10 | ): Opening the file "D:\Werkplaats\NodeMap2.0\trunk\src/kml/nodemap-1271366400.kml"
     2        In file "D:\Werkplaats\NodeMap2.0\trunk\src\inc\FileHandler.class.php" on line "22"
Note: See TracChangeset for help on using the changeset viewer.