2013-06-19 13:27:14 +02:00
|
|
|
<?php
|
2017-01-30 21:36:44 +01:00
|
|
|
/* μlogger
|
2013-06-19 13:27:14 +02:00
|
|
|
*
|
2017-01-30 21:36:44 +01:00
|
|
|
* Copyright(C) 2017 Bartek Fabiszewski (www.fabiszewski.net)
|
2013-06-19 13:27:14 +02:00
|
|
|
*
|
|
|
|
* This is free software; you can redistribute it and/or modify it under
|
2017-04-07 00:05:28 +02:00
|
|
|
* the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2013-06-19 13:27:14 +02:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
2017-04-07 00:05:28 +02:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2013-06-19 13:27:14 +02:00
|
|
|
*/
|
2017-01-30 21:36:44 +01:00
|
|
|
|
2017-04-09 23:35:55 +02:00
|
|
|
// This is default configuration file.
|
2017-01-30 21:36:44 +01:00
|
|
|
// Copy it to config.php and customize
|
|
|
|
|
2016-10-29 14:05:13 +02:00
|
|
|
// default map drawing framework
|
2013-06-21 11:15:09 +02:00
|
|
|
// (gmaps = google maps, openlayers = openlayers/osm)
|
2013-06-23 00:17:28 +02:00
|
|
|
//$mapapi = "gmaps";
|
|
|
|
$mapapi = "openlayers";
|
2013-06-21 11:15:09 +02:00
|
|
|
|
2013-06-23 00:17:28 +02:00
|
|
|
// openlayers additional map layers
|
|
|
|
// OpenCycleMap (0 = no, 1 = yes)
|
|
|
|
$layer_ocm = 1;
|
|
|
|
// MapQuest-OSM (0 = no, 1 = yes)
|
|
|
|
$layer_mq = 1;
|
|
|
|
// osmapa.pl (0 = no, 1 = yes)
|
|
|
|
$layer_osmapa = 1;
|
2013-06-23 23:43:09 +02:00
|
|
|
// UMP (0 = no, 1 = yes)
|
|
|
|
$layer_ump = 1;
|
2013-06-23 00:17:28 +02:00
|
|
|
|
2014-09-07 12:34:41 +02:00
|
|
|
// default coordinates for initial map
|
|
|
|
$init_latitude = 52.23;
|
|
|
|
$init_longitude = 21.01;
|
|
|
|
|
2013-06-23 00:17:28 +02:00
|
|
|
// you may set your google maps api key
|
2013-06-19 13:27:14 +02:00
|
|
|
// this is not obligatory by now
|
2013-06-23 00:17:28 +02:00
|
|
|
//$gkey = "";
|
2013-06-19 13:27:14 +02:00
|
|
|
|
2013-06-21 11:15:09 +02:00
|
|
|
// MySQL config
|
2013-06-19 13:27:14 +02:00
|
|
|
$dbhost = ""; // mysql host, eg. localhost
|
|
|
|
$dbuser = ""; // database user
|
|
|
|
$dbpass = ""; // database pass
|
|
|
|
$dbname = ""; // database name
|
2017-04-17 22:04:33 +02:00
|
|
|
$dbprefix = ""; // optional table names prefix, eg. "ulogger_"
|
2013-06-19 13:27:14 +02:00
|
|
|
|
|
|
|
// other
|
2016-10-29 14:05:13 +02:00
|
|
|
// require login/password authentication
|
2013-06-19 13:27:14 +02:00
|
|
|
// (0 = no, 1 = yes)
|
2013-06-21 11:15:09 +02:00
|
|
|
$require_authentication = 1;
|
|
|
|
|
2017-02-17 16:41:39 +01:00
|
|
|
// all users tracks are visible to authenticated user
|
|
|
|
// (0 = no, 1 = yes)
|
|
|
|
$public_tracks = 0;
|
|
|
|
|
2014-04-01 17:28:27 +11:00
|
|
|
// admin user who has access to all users locations
|
2014-09-07 21:22:46 +02:00
|
|
|
// none if empty
|
2017-04-04 16:56:39 +02:00
|
|
|
$admin_user = "admin";
|
2014-04-01 17:28:27 +11:00
|
|
|
|
2017-04-14 15:55:00 +02:00
|
|
|
// miniumum required length of user password
|
|
|
|
$pass_lenmin = 12;
|
|
|
|
|
|
|
|
// required strength of user password
|
|
|
|
// 0 = no requirements,
|
|
|
|
// 1 = require mixed case letters (lower and upper),
|
|
|
|
// 2 = require mixed case and numbers
|
|
|
|
// 3 = require mixed case, numbers and non-alphanumeric characters
|
|
|
|
$pass_strength = 2;
|
|
|
|
|
2013-06-19 13:27:14 +02:00
|
|
|
// Default interval in seconds for live auto reload
|
2016-10-29 14:05:13 +02:00
|
|
|
$interval = 10;
|
2013-06-21 11:15:09 +02:00
|
|
|
|
2013-06-19 13:27:14 +02:00
|
|
|
// Default language
|
2017-01-30 21:36:44 +01:00
|
|
|
// (en, pl, de, hu)
|
2013-06-21 21:02:03 +02:00
|
|
|
$lang = "en";
|
2013-06-21 11:15:09 +02:00
|
|
|
//$lang = "pl";
|
2013-06-21 21:02:03 +02:00
|
|
|
//$lang = "de";
|
2017-01-30 21:36:44 +01:00
|
|
|
//$lang = "hu";
|
2017-04-03 21:45:07 +02:00
|
|
|
//$lang = "fr";
|
2017-04-05 15:40:49 +02:00
|
|
|
//$lang = "it";
|
2013-06-21 11:15:09 +02:00
|
|
|
|
2013-06-19 13:27:14 +02:00
|
|
|
// units
|
|
|
|
// (metric, imperial)
|
|
|
|
$units = "metric";
|
2013-06-21 11:15:09 +02:00
|
|
|
//$units = "imperial";
|
2013-06-19 13:27:14 +02:00
|
|
|
|
2017-01-30 21:36:44 +01:00
|
|
|
?>
|