<?php
/*
 * Project: NodeMap2.0
 * File: config.php
 * Purpose: All config settings are stored in this file
 */

$config = array();

$config['node_status_file']		=	'http://watch.wirelessleiden.nl/nagios/export/node-status.csv';
$config['node_location_file']	=	'http://watch.wirelessleiden.nl/nagios/export/genesis-nodes.conf';
$config['overall_longitude']	=	4.490153;
$config['overall_latitude']		=	52.161087;
$config['overall_altitude']		=	0;
$config['overall_heading']		=	0;
$config['overall_tilt']			=	0;
$config['overall_range']		=	7000;


/*
 * Mail setting for the loghandler.
 */


$config['mail']					= 'receipient@example.org';

/*
 * Global root for uniform file calling.
 */
$config['root']				= dirname(__FILE__);
$config['url']				= $_SERVER['HTTP_HOST'];
$config['uri']				= $_SERVER['REQUEST_URI'];
$config['file_init']		= 'init.php';

/*
 * Placemark settings. Which icons do you want to use
 */
$config['node_green']	= 'http://' . $config['url'] . $config['uri'] . '/img/sleutelGroen.png';
$config['node_orange']	= 'http://' . $config['url'] . $config['uri'] . '/img/sleutelOranje.png';
$config['node_red']		= 'http://' . $config['url'] . $config['uri'] . '/img/sleutelRood.png';
$config['line_black']	= '#66000000';

/*
 * This files we require for our application
 * We include the files in init.php
 */
$config['require']			= array();
$config['require'][]		= $config['root'] . '/inc/ErrorHandler.php';
$config['require'][]		= $config['root'] . '/inc/LogHandler.class.php';
$config['require'][]		= $config['root'] . '/inc/FileHandler.class.php';
$config['require'][]		= $config['root'] . '/inc/KMLFile.class.php';
$config['require'][]		= $config['root'] . '/inc/KMLNode.class.php';
$config['require'][]		= $config['root'] . '/inc/KMLLine.class.php';
$config['require'][]		= $config['root'] . '/inc/Network.class.php';
$config['require'][]		= $config['root'] . '/inc/NetworkList.class.php';

$config['googlekey'] 		= array();
$config['googlekey']['wirelessleiden.nl'] = 'ABQIAAAAKRiFs2kXKhTkKZkE_ms9rhTdBXm62xfhQU7Dk6ZBFSzYdmSteRQWjLqZhwX8afHvGpd4N3iKql6w8g';
$config['googlekey']['default'] = 'ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA';

/*
 * Values to generate map
 */
$time = mktime() - (mktime() % 300);
$config['kml_file']			= $config['root'] . '/map/inc/example.kml';
// Should be something like:
// $config['kml_file']		= $config['root'] . '/kml.php?time=%TIMESTAMP%';

/* Logfile stored location, should be writeable by webserver
 */
$config['log_file']			=  sys_get_temp_dir() . '/NodeMap.log';
?>
