parseLocationFile($nodeLocation->read()); // Let's try to read the node status file $nodeStatus = new FileHandler($config['node_status_file'], 'r'); $kmlFile->parseStatusFile($nodeStatus->read()); // Write the file to the server $kmlFile = new FileHandler($config['root'] . '/kml/nodemap-' . $time . '.kml', 'w'); $kmlFile->write($kmlFile->toString()); // Function doesn't work yet... Waiting for David... } header('Location: ' . $config['root'] . '/kml/nodemap-' . $time . '.kml'); ?>