Changeset 7771 for trunk/src/kml.php
- Timestamp:
- Apr 15, 2010, 9:25:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kml.php
r7768 r7771 9 9 require_once($config['file_init']); 10 10 11 $time = $_GET['time']? $_GET['time'] : mktime() - (mktime() % 300);11 $time = isset($_GET['time']) ? $_GET['time'] : mktime() - (mktime() % 300); 12 12 13 13 // Check if the file is already cached … … 27 27 28 28 // 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... 31 31 } 32 32 33 header('Location: ' . $config['root'] . '/kml/nodemap-' . $time . '.kml');33 //header('Location: ' . $config['root'] . '/kml/nodemap-' . $time . '.kml'); 34 34 ?>
Note:
See TracChangeset
for help on using the changeset viewer.