Changeset 7866
- Timestamp:
- Apr 28, 2010, 1:12:27 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/config.php
r7858 r7866 38 38 * Placemark settings. Which icons do you want to use 39 39 */ 40 $config['node_green'] = 'http://' . $config['url'] . $config['uri']. '/img/sleutelGroen.png';41 $config['node_orange'] = 'http://' . $config['url'] . $config['uri']. '/img/sleutelOranje.png';42 $config['node_red'] = 'http://' . $config['url'] . $config['uri']. '/img/sleutelRood.png';40 $config['node_green'] = 'http://' . $config['url'] . dirname($config['uri']) . '/img/sleutelGroen.png'; 41 $config['node_orange'] = 'http://' . $config['url'] . dirname($config['uri']) . '/img/sleutelOranje.png'; 42 $config['node_red'] = 'http://' . $config['url'] . dirname($config['uri']) . '/img/sleutelRood.png'; 43 43 $config['line_black'] = '#66000000'; 44 44 … … 65 65 */ 66 66 $time = mktime() - (mktime() % 300); 67 $config['kml_file'] = $config['root'] . '/map/inc/example.kml'; 67 // Static example file 68 //$config['kml_file'] = $config['root'] . '/map/inc/example.kml'; 68 69 // Should be something like: 69 // $config['kml_file'] = $config['root'] . '/kml.php?time=%TIMESTAMP%';70 $config['kml_file'] = 'http://' . $config['url'] . dirname($config['uri']) . '/kml-echo.php'; 70 71 71 72 /* Logfile stored location, should be writeable by webserver -
trunk/src/kml.php
r7846 r7866 32 32 33 33 /* Instead of exposing the kml file, one could also argue to hide it at the back 34 * so you can can so some dirty hacking and more easy ACL 35 * $kmlFile = fopen($config['root'] . '/kml/nodemap-' . $time . '.kml'); 36 * print $fread($kmlFile); 37 * fclose($kmlFile); 38 */ 39 echo 'kml/nodemap-' . $time . '.kml'; 34 * so you can can so some dirty hacking and more easy ACL */ 35 $kmlFile = new FileHandler($config['root'] . '/kml/nodemap-' . $time . '.kml', 'r'); 36 echo $kmlFile->read(); 40 37 ?>
Note:
See TracChangeset
for help on using the changeset viewer.