source: trunk/src/config.php@ 7869

Last change on this file since 7869 was 7869, checked in by Pieter Naber, 15 years ago

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

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1<?php
2/*
3 * Project: NodeMap2.0
4 * File: config.php
5 * Purpose: All config settings are stored in this file
6 */
7
8$config = array();
9
10$config['node_status_file'] = 'http://watch.wirelessleiden.nl/nagios/export/node-status.csv';
11$config['node_location_file'] = 'http://watch.wirelessleiden.nl/nagios/export/genesis-nodes.conf';
12
13// Overall values are using for centering the KML file on a initial location
14$config['overall_longitude'] = 4.490153;
15$config['overall_latitude'] = 52.161087;
16$config['overall_altitude'] = 0;
17$config['overall_heading'] = 0;
18$config['overall_tilt'] = 0;
19$config['overall_range'] = 7000;
20
21
22/*
23 * Mail setting for the loghandler.
24 */
25
26
27$config['mail'] = 'receipient@example.org';
28
29/*
30 * Global root for uniform file calling.
31 */
32$config['root'] = dirname(__FILE__);
33$config['url'] = $_SERVER['HTTP_HOST'];
34$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'];
38$config['file_init'] = 'init.php';
39
40/*
41 * Placemark settings. Which icons do you want to use
42 */
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';
46$config['line_black'] = '#66000000';
47
48/*
49 * This files we require for our application
50 * We include the files in init.php
51 */
52$config['require'] = array();
53$config['require'][] = $config['root'] . '/inc/ErrorHandler.php';
54$config['require'][] = $config['root'] . '/inc/LogHandler.class.php';
55$config['require'][] = $config['root'] . '/inc/FileHandler.class.php';
56$config['require'][] = $config['root'] . '/inc/KMLFile.class.php';
57$config['require'][] = $config['root'] . '/inc/KMLNode.class.php';
58$config['require'][] = $config['root'] . '/inc/KMLLine.class.php';
59$config['require'][] = $config['root'] . '/inc/Network.class.php';
60$config['require'][] = $config['root'] . '/inc/NetworkList.class.php';
61
62$config['googlekey'] = array();
63$config['googlekey']['wirelessleiden.nl'] = 'ABQIAAAAKRiFs2kXKhTkKZkE_ms9rhTdBXm62xfhQU7Dk6ZBFSzYdmSteRQWjLqZhwX8afHvGpd4N3iKql6w8g';
64$config['googlekey']['default'] = 'ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA';
65
66/*
67 * Values to generate map
68 */
69$time = mktime() - (mktime() % 300);
70// Static example file
71//$config['kml_file'] = $config['root'] . '/map/inc/example.kml';
72// Should be something like:
73$config['kml_file'] = 'http://' . $config['url'] . $config['uri_root'] . '/kml.php';
74
75/* Logfile stored location, should be writeable by webserver
76 */
77$config['log_file'] = sys_get_temp_dir() . '/NodeMap.log';
78?>
Note: See TracBrowser for help on using the repository browser.