[7725] | 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';
|
---|
[7858] | 12 |
|
---|
| 13 | // Overall values are using for centering the KML file on a initial location
|
---|
[7775] | 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;
|
---|
[7725] | 20 |
|
---|
| 21 |
|
---|
| 22 | /*
|
---|
[7803] | 23 | * Mail setting for the loghandler.
|
---|
| 24 | */
|
---|
| 25 |
|
---|
[7804] | 26 |
|
---|
[7843] | 27 | $config['mail'] = 'receipient@example.org';
|
---|
[7803] | 28 |
|
---|
| 29 | /*
|
---|
[7773] | 30 | * Global root for uniform file calling.
|
---|
[7725] | 31 | */
|
---|
[7773] | 32 | $config['root'] = dirname(__FILE__);
|
---|
[7842] | 33 | $config['url'] = $_SERVER['HTTP_HOST'];
|
---|
| 34 | $config['uri'] = $_SERVER['REQUEST_URI'];
|
---|
[7725] | 35 | $config['file_init'] = 'init.php';
|
---|
| 36 |
|
---|
| 37 | /*
|
---|
| 38 | * Placemark settings. Which icons do you want to use
|
---|
| 39 | */
|
---|
[7842] | 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';
|
---|
[7775] | 43 | $config['line_black'] = '#66000000';
|
---|
[7725] | 44 |
|
---|
| 45 | /*
|
---|
| 46 | * This files we require for our application
|
---|
| 47 | * We include the files in init.php
|
---|
| 48 | */
|
---|
| 49 | $config['require'] = array();
|
---|
[7842] | 50 | $config['require'][] = $config['root'] . '/inc/ErrorHandler.php';
|
---|
| 51 | $config['require'][] = $config['root'] . '/inc/LogHandler.class.php';
|
---|
| 52 | $config['require'][] = $config['root'] . '/inc/FileHandler.class.php';
|
---|
| 53 | $config['require'][] = $config['root'] . '/inc/KMLFile.class.php';
|
---|
| 54 | $config['require'][] = $config['root'] . '/inc/KMLNode.class.php';
|
---|
| 55 | $config['require'][] = $config['root'] . '/inc/KMLLine.class.php';
|
---|
| 56 | $config['require'][] = $config['root'] . '/inc/Network.class.php';
|
---|
| 57 | $config['require'][] = $config['root'] . '/inc/NetworkList.class.php';
|
---|
[7725] | 58 |
|
---|
| 59 | $config['googlekey'] = array();
|
---|
| 60 | $config['googlekey']['wirelessleiden.nl'] = 'ABQIAAAAKRiFs2kXKhTkKZkE_ms9rhTdBXm62xfhQU7Dk6ZBFSzYdmSteRQWjLqZhwX8afHvGpd4N3iKql6w8g';
|
---|
| 61 | $config['googlekey']['default'] = 'ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA';
|
---|
[7767] | 62 |
|
---|
| 63 | /*
|
---|
| 64 | * Values to generate map
|
---|
| 65 | */
|
---|
[7836] | 66 | $time = mktime() - (mktime() % 300);
|
---|
[7847] | 67 | $config['kml_file'] = $config['root'] . '/map/inc/example.kml';
|
---|
[7768] | 68 | // Should be something like:
|
---|
| 69 | // $config['kml_file'] = $config['root'] . '/kml.php?time=%TIMESTAMP%';
|
---|
[7845] | 70 |
|
---|
| 71 | /* Logfile stored location, should be writeable by webserver
|
---|
| 72 | */
|
---|
| 73 | $config['log_file'] = sys_get_temp_dir() . '/NodeMap.log';
|
---|
[7725] | 74 | ?>
|
---|