Configuration: Example

Here is an example of a very extensive config.php:

<?php

/**
* Main Config file for MyBlitzortung
*
* You have to set all of the following constants!
*/

//Database
define("BO_DB_USER", "mybouser");
define("BO_DB_PASS", "password");
define("BO_DB_NAME", "myblitzortung");
define("BO_DB_HOST", "localhost");
define("BO_DB_PREF", "bo_");

//Station Settings
define("BO_LAT", 49.39);
define("BO_LON", 10.88);
define("BO_STATION_NAME", "MyCity");
define("BO_STATION_ID", 1234);

//blitzortung.org Login
define("BO_USER", "MaxMuster");
define("BO_PASS", "bla");

/**
* The following settings are only examples and are not required!
*/

//if your mysql server has another port set it here:
define("BO_DB_PORT", 3306);

//Secret for update
define('BO_UPDATE_SECRET', 'abcdefg123');

//Path and file settings
define("BO_FILE", '/mypath/blitzortung.php');
define("BO_LOGIN_URL", 'intern');
define("BO_ARCHIVE_URL", 'archiv?');

//Language
define("BO_LOCALE", 'de');
define("BO_UTF8", true);

//global purge settings
define("BO_PURGE_ENABLE", false); //disable purging ==> build your archive !

//archive and densities
define("BO_ENABLE_ARCHIVE_MAPS", true); //Enables archive for guests
define("BO_ENABLE_DENSITIES", true); //Enables densities for guests
define("BO_CALC_DENSITIES", true); //Calculate densities
define("BO_CALC_DENSITIES_CURRENT", true); //Densities for current year/month
define("BO_DENSITY_STATIONS", '1,2,3'); //Additional station ids

//Alerts: E-Mail headers
define('BO_EMAIL_HEADERS', "From: Blitzalarm \r\nX-Mailer: PHP/".phpversion());

//SMS gateway
define('BO_SMS_GATEWAY_URL','http://gateway.sms77.de/?u=user&p=password&to={tel}&text={text}&type=quality&from=MyBO');

// Add your own map

//MyCity (example)
$_BO['mapimg'][3]['name'] = 'MyCity';
$_BO['mapimg'][3]['footer'] = '&copy; OpenStreetMap und Mitwirkende, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>';
$_BO['mapimg'][3]['menu'] = true;
$_BO['mapimg'][3]['archive'] = true;
$_BO['mapimg'][3]['file'] = 'map_mycity.png';
$_BO['mapimg'][3]['coord'] = array(49.606, 11.25, 49.163, 10.544); //N, E, S, W
$_BO['mapimg'][3]['trange'] = 2; //hours!
$_BO['mapimg'][3]['upd_intv'] = 5; //minutes
$_BO['mapimg'][3]['textcolor'] = array(0,0,60);
$_BO['mapimg'][3]['textsize'] = 5;
$_BO['mapimg'][3]['point_type'] = 1;
$_BO['mapimg'][3]['point_size'] = 7;
$_BO['mapimg'][3]['legend'] = array(5, 100, 80, 4, 4, 1);
$_BO['mapimg'][3]['col'][] = array(255, 255, 0);
$_BO['mapimg'][3]['col'][] = array(255, 200, 0);
$_BO['mapimg'][3]['col'][] = array(255, 150, 0);
$_BO['mapimg'][3]['col'][] = array(255, 100, 0);
$_BO['mapimg'][3]['col'][] = array(255, 0, 0);
$_BO['mapimg'][3]['col'][] = array(225, 0, 0);
$_BO['mapimg'][3]['show_station'] = array(5, 155,80,155,false);
$_BO['mapimg'][3]['density'] = true;
$_BO['mapimg'][3]['density_blocksize'] = 40;
$_BO['mapimg'][3]['density_darken'] = 70;
$_BO['mapimg'][3]['density_colors'][] = array(150, 150, 250, 95);
$_BO['mapimg'][3]['density_colors'][] = array(50, 150, 155, 90);
$_BO['mapimg'][3]['density_colors'][] = array(205, 205, 50, 85);
$_BO['mapimg'][3]['density_colors'][] = array(230, 0, 0, 80);
$_BO['mapimg'][3]['density_colors'][] = array(255, 0, 255, 75);
$_BO['mapimg'][3]['density_colors'][] = array(255, 190, 255, 70);

//use the a better germany map (from templates)
$_BO['mapimg'][2] = $_BO['tpl_imgmap']['germany_lkr_gdz'];

//unset the europe map
$_BO['mapimg'][0] = array();

//enable 1 to 10day strike view for logged in users (from template)
$_BO['mapcfg'][3] = $_BO['tpl_gmap']['1-10d'];

?>

Using a satellite image with animation

With the following options you can display strikes over a satellite image (Example). Providing the satellite image has to be done by you!

$_BO['mapimg'][101] = $_BO['tpl_imgmap_default'];
$_BO['mapimg'][101]['dim'] = array(1011, 842, '888', 0, 16);
$_BO['mapimg'][101]['name'] = 'Sat';
$_BO['mapimg'][101]['trange'] = 3; //hours!
$_BO['mapimg'][101]['upd_intv'] = 60; //minutes
$_BO['mapimg'][101]['proj'] = 'plate';
$_BO['mapimg'][101]['col'] = array('ff05', 'fc05', 'f905', 'f505', 'f005', 'c005', '9065');
$_BO['mapimg'][101]['point_style'] = array(2, 3, 'f008', 2, '00ad');
$_BO['mapimg'][101]['animation']['force'] = true; //no static image
$_BO['mapimg'][101]['animation']['range'] = 3 * 60; //minutes
$_BO['mapimg'][101]['animation']['interval'] = 3 * 60; //minutes
$_BO['mapimg'][101]['animation']['delay'] = 1000; //msec
$_BO['mapimg'][101]['animation']['delay_end'] = 2000; //msec
$_BO['mapimg'][101]['animation']['default_range'] = 23; //hours
$_BO['mapimg'][101]['animation']['transparent'] = false;
$_BO['mapimg'][101]['file'] = '../../eumetsat_ftp/blank.jpg';
$_BO['mapimg'][101]['file_time'] = '../../eumetsat_ftp/jpg/LMSG2_IR_108_%y%M%D_%h%m_pc.jpg';
$_BO['mapimg'][101]['file_time_search'] = array(15, 240, 30); //steps, before, after (minutes)
$_BO['mapimg'][101]['coord'] = array(69.1, 37, 29.1, -11.7); //North, East, South, West (Degrees)
$_BO['mapimg'][101]['date_min'] = '2011-09-07';
$_BO['mapimg'][101]['image_footer'] = ' * Satellitenbild (c) EUMETSAT '.date('Y').' per Meteosat MSG * Zeitzone Satellitenbild: UTC';