source: trunk/src/config.php@ 7826

Last change on this file since 7826 was 7804, checked in by ddboer, 15 years ago

Kml file read from kml folder with function $time for timestamp

  • Property svn:eol-style set to native
File size: 2.3 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$config['overall_longitude'] = 4.490153;
13$config['overall_latitude'] = 52.161087;
14$config['overall_altitude'] = 0;
15$config['overall_heading'] = 0;
16$config['overall_tilt'] = 0;
17$config['overall_range'] = 7000;
18
19
20/*
21 * Mail setting for the loghandler.
22 */
23
24
25$config['mail'] = 'test@test.com';
26
27/*
28 * Global root for uniform file calling.
29 */
30$config['root'] = dirname(__FILE__);
31$config['root_class'] = $config['root'] . '/inc/';
32$config['file_init'] = 'init.php';
33
34/*
35 * Placemark settings. Which icons do you want to use
36 */
37$config['node_green'] = 'http://dellphi.wirelessleiden.nl/nodemap/img/sleutelGroen.png';
38$config['node_orange'] = 'http://dellphi.wirelessleiden.nl/nodemap/img/sleutelOranje.png';
39$config['node_red'] = 'http://dellphi.wirelessleiden.nl/nodemap/img/sleutelRood.png';
40$config['line_black'] = '#66000000';
41
42/*
43 * This files we require for our application
44 * We include the files in init.php
45 */
46$config['require'] = array();
47$config['require'][] = $config['root_class'] . 'ErrorHandler.php';
48$config['require'][] = $config['root_class'] . 'LogHandler.class.php';
49$config['require'][] = $config['root_class'] . 'FileHandler.class.php';
50$config['require'][] = $config['root_class'] . 'KMLFile.class.php';
51$config['require'][] = $config['root_class'] . 'KMLNode.class.php';
52$config['require'][] = $config['root_class'] . 'KMLLine.class.php';
53$config['require'][] = $config['root_class'] . 'Network.class.php';
54$config['require'][] = $config['root_class'] . 'NetworkList.class.php';
55
56$config['googlekey'] = array();
57$config['googlekey']['wirelessleiden.nl'] = 'ABQIAAAAKRiFs2kXKhTkKZkE_ms9rhTdBXm62xfhQU7Dk6ZBFSzYdmSteRQWjLqZhwX8afHvGpd4N3iKql6w8g';
58$config['googlekey']['default'] = 'ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA';
59
60/*
61 * Values to generate map
62 */
63$time = mktime() -( $time2 = mktime() % 300 );
64$config['kml_file'] = $config['root'] . '/kml/nodemap-'.$time.'.kml';
65// Should be something like:
66// $config['kml_file'] = $config['root'] . '/kml.php?time=%TIMESTAMP%';
67?>
Note: See TracBrowser for help on using the repository browser.