Changeset 7869


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

A dirty hack to fix the URI root folder... Needs work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/config.php

    r7868 r7869  
    3333$config['url']                          = $_SERVER['HTTP_HOST'];
    3434$config['uri']                          = $_SERVER['REQUEST_URI'];
     35// XXX: Dirty hack to fix the URI root folder, needs work
     36$config['uri_root']                     = str_replace('/map', '', dirname($config['uri']));
     37echo $config['uri_root'];
    3538$config['file_init']            = 'init.php';
    3639
     
    3841 * Placemark settings. Which icons do you want to use
    3942 */
    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$config['node_green']   = 'http://' . $config['url'] . $config['uri_root'] . '/img/sleutelGroen.png';
     44$config['node_orange']  = 'http://' . $config['url'] . $config['uri_root'] . '/img/sleutelOranje.png';
     45$config['node_red']             = 'http://' . $config['url'] . $config['uri_root'] . '/img/sleutelRood.png';
    4346$config['line_black']   = '#66000000';
    4447
     
    6871//$config['kml_file']                   = $config['root'] . '/map/inc/example.kml';
    6972// Should be something like:
    70 $config['kml_file']             = 'http://' . $config['url'] . dirname($config['uri']) . '/kml.php';
     73$config['kml_file']             = 'http://' . $config['url'] . $config['uri_root'] . '/kml.php';
    7174
    7275/* Logfile stored location, should be writeable by webserver
Note: See TracChangeset for help on using the changeset viewer.