source: trunk/src/config.php@ 7843

Last change on this file since 7843 was 7843, checked in by rick, 15 years ago

Eeks, we sended over a 1000 message to test@…, example.org is the domain to be used for this matter :-)

  • Property svn:eol-style set to native
File size: 2.4 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'] = 'receipient@example.org';
26
27/*
28 * Global root for uniform file calling.
29 */
30$config['root'] = dirname(__FILE__);
31$config['url'] = $_SERVER['HTTP_HOST'];
32$config['uri'] = $_SERVER['REQUEST_URI'];
33$config['file_init'] = 'init.php';
34
35/*
36 * Placemark settings. Which icons do you want to use
37 */
38$config['node_green'] = 'http://' . $config['url'] . $config['uri'] . '/img/sleutelGroen.png';
39$config['node_orange'] = 'http://' . $config['url'] . $config['uri'] . '/img/sleutelOranje.png';
40$config['node_red'] = 'http://' . $config['url'] . $config['uri'] . '/img/sleutelRood.png';
41$config['line_black'] = '#66000000';
42
43/*
44 * This files we require for our application
45 * We include the files in init.php
46 */
47$config['require'] = array();
48$config['require'][] = $config['root'] . '/inc/ErrorHandler.php';
49$config['require'][] = $config['root'] . '/inc/LogHandler.class.php';
50$config['require'][] = $config['root'] . '/inc/FileHandler.class.php';
51$config['require'][] = $config['root'] . '/inc/KMLFile.class.php';
52$config['require'][] = $config['root'] . '/inc/KMLNode.class.php';
53$config['require'][] = $config['root'] . '/inc/KMLLine.class.php';
54$config['require'][] = $config['root'] . '/inc/Network.class.php';
55$config['require'][] = $config['root'] . '/inc/NetworkList.class.php';
56
57$config['googlekey'] = array();
58$config['googlekey']['wirelessleiden.nl'] = 'ABQIAAAAKRiFs2kXKhTkKZkE_ms9rhTdBXm62xfhQU7Dk6ZBFSzYdmSteRQWjLqZhwX8afHvGpd4N3iKql6w8g';
59$config['googlekey']['default'] = 'ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA';
60
61/*
62 * Values to generate map
63 */
64$time = mktime() - (mktime() % 300);
65$config['kml_file'] = 'http://' . $config['url'] . $config['uri'] . '/kml.php?time=' . $time;
66// Should be something like:
67// $config['kml_file'] = $config['root'] . '/kml.php?time=%TIMESTAMP%';
68?>
Note: See TracBrowser for help on using the repository browser.