Index: trunk/src/config.php
===================================================================
--- trunk/src/config.php	(revision 7858)
+++ trunk/src/config.php	(revision 7866)
@@ -38,7 +38,7 @@
  * Placemark settings. Which icons do you want to use
  */
-$config['node_green']	= 'http://' . $config['url'] . $config['uri'] . '/img/sleutelGroen.png';
-$config['node_orange']	= 'http://' . $config['url'] . $config['uri'] . '/img/sleutelOranje.png';
-$config['node_red']		= 'http://' . $config['url'] . $config['uri'] . '/img/sleutelRood.png';
+$config['node_green']	= 'http://' . $config['url'] . dirname($config['uri']) . '/img/sleutelGroen.png';
+$config['node_orange']	= 'http://' . $config['url'] . dirname($config['uri']) . '/img/sleutelOranje.png';
+$config['node_red']		= 'http://' . $config['url'] . dirname($config['uri']) . '/img/sleutelRood.png';
 $config['line_black']	= '#66000000';
 
@@ -65,7 +65,8 @@
  */
 $time = mktime() - (mktime() % 300);
-$config['kml_file']			= $config['root'] . '/map/inc/example.kml';
+// Static example file
+//$config['kml_file']			= $config['root'] . '/map/inc/example.kml';
 // Should be something like:
-// $config['kml_file']		= $config['root'] . '/kml.php?time=%TIMESTAMP%';
+$config['kml_file']		= 'http://' . $config['url'] . dirname($config['uri']) . '/kml-echo.php';
 
 /* Logfile stored location, should be writeable by webserver
Index: trunk/src/kml.php
===================================================================
--- trunk/src/kml.php	(revision 7858)
+++ trunk/src/kml.php	(revision 7866)
@@ -32,9 +32,6 @@
 
 /* Instead of exposing the kml file, one could also argue to hide it at the back
- * so you can can so some dirty hacking and more easy ACL
- * $kmlFile = fopen($config['root'] . '/kml/nodemap-' . $time . '.kml');
- * print $fread($kmlFile);
- * fclose($kmlFile);
- */
-echo 'kml/nodemap-' . $time . '.kml';
+ * so you can can so some dirty hacking and more easy ACL */
+$kmlFile = new FileHandler($config['root'] . '/kml/nodemap-' . $time . '.kml', 'r');
+echo $kmlFile->read();
 ?>
