source: trunk/src/config.php@ 7847

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

Laatste aanpassingen!

  • Property svn:eol-style set to native
File size: 2.5 KB
RevLine 
[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';
[7775]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;
[7725]18
19
20/*
[7803]21 * Mail setting for the loghandler.
22 */
23
[7804]24
[7843]25$config['mail'] = 'receipient@example.org';
[7803]26
27/*
[7773]28 * Global root for uniform file calling.
[7725]29 */
[7773]30$config['root'] = dirname(__FILE__);
[7842]31$config['url'] = $_SERVER['HTTP_HOST'];
32$config['uri'] = $_SERVER['REQUEST_URI'];
[7725]33$config['file_init'] = 'init.php';
34
35/*
36 * Placemark settings. Which icons do you want to use
37 */
[7842]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';
[7775]41$config['line_black'] = '#66000000';
[7725]42
43/*
44 * This files we require for our application
45 * We include the files in init.php
46 */
47$config['require'] = array();
[7842]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';
[7725]56
57$config['googlekey'] = array();
58$config['googlekey']['wirelessleiden.nl'] = 'ABQIAAAAKRiFs2kXKhTkKZkE_ms9rhTdBXm62xfhQU7Dk6ZBFSzYdmSteRQWjLqZhwX8afHvGpd4N3iKql6w8g';
59$config['googlekey']['default'] = 'ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA';
[7767]60
61/*
62 * Values to generate map
63 */
[7836]64$time = mktime() - (mktime() % 300);
[7847]65$config['kml_file'] = $config['root'] . '/map/inc/example.kml';
[7768]66// Should be something like:
67// $config['kml_file'] = $config['root'] . '/kml.php?time=%TIMESTAMP%';
[7845]68
69/* Logfile stored location, should be writeable by webserver
70 */
71$config['log_file'] = sys_get_temp_dir() . '/NodeMap.log';
[7725]72?>
Note: See TracBrowser for help on using the repository browser.