Changeset 7866


Ignore:
Timestamp:
Apr 28, 2010, 1:12:27 PM (15 years ago)
Author:
Pieter Naber
Message:

Need to test some new stuff online...

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/config.php

    r7858 r7866  
    3838 * Placemark settings. Which icons do you want to use
    3939 */
    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';
    4343$config['line_black']   = '#66000000';
    4444
     
    6565 */
    6666$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';
    6869// 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';
    7071
    7172/* Logfile stored location, should be writeable by webserver
  • trunk/src/kml.php

    r7846 r7866  
    3232
    3333/* 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');
     36echo $kmlFile->read();
    4037?>
Note: See TracChangeset for help on using the changeset viewer.