1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ulogger_ynh.git synced 2024-10-01 13:34:45 +02:00

Updated config.php and readme

This commit is contained in:
anmol26s 2017-10-30 21:12:51 +05:30
parent b9d5c9e75c
commit 23d7711d31
2 changed files with 13 additions and 29 deletions

View file

@ -27,5 +27,7 @@ This is a web application for real-time collection of geolocation data, tracks v
- export tracks to gpx and kml - export tracks to gpx and kml
- import tracks from gpx - import tracks from gpx
## To-Do's
- [ ] Use config file from the sources rather then conf/config.php for the configuration.
**Multi-user:** Yes **Multi-user:** Yes

View file

@ -16,69 +16,53 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>. * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
// This is default configuration file. // This is default configuration file.
// Copy it to config.php and customize // Copy it to config.php and customize
// default map drawing framework // default map drawing framework
// (gmaps = google maps, openlayers = openlayers/osm) //$mapapi = "gmaps"; // google maps
//$mapapi = "gmaps"; //$mapapi = "openlayers"; // openlayers 2
$mapapi = "openlayers"; $mapapi = "openlayers3"; // openlayers 3+
// openlayers additional map layers in XYZ format
// openlayers additional map layers // name => url
// OpenCycleMap (0 = no, 1 = yes) $ol_layers['OpenCycleMap'] = 'https://{a-c}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png'; // ?apikey=[API_KEY]
$layer_ocm = 1; $ol_layers['OpenTopoMap'] = 'https://{a-c}.tile.opentopomap.org/{z}/{x}/{y}.png';
// MapQuest-OSM (0 = no, 1 = yes) $ol_layers['ESRI'] = 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}';
$layer_mq = 1; $ol_layers['UMP'] = 'http://{1-3}.tiles.ump.waw.pl/ump_tiles/{z}/{x}/{y}.png';
// osmapa.pl (0 = no, 1 = yes) $ol_layers['Osmapa.pl'] = 'http://{a-c}.tile.openstreetmap.pl/osmapa.pl/{z}/{x}/{y}.png';
$layer_osmapa = 1;
// UMP (0 = no, 1 = yes)
$layer_ump = 1;
// default coordinates for initial map // default coordinates for initial map
$init_latitude = 52.23; $init_latitude = 52.23;
$init_longitude = 21.01; $init_longitude = 21.01;
// you may set your google maps api key // you may set your google maps api key
// this is not obligatory by now $gkey = "";
//$gkey = "";
// MySQL config // MySQL config
$dbhost = "localhost"; // mysql host, eg. localhost $dbhost = "localhost"; // mysql host, eg. localhost
$dbuser = "__dbuser__"; // database user $dbuser = "__dbuser__"; // database user
$dbpass = "__dbpass__"; // database pass $dbpass = "__dbpass__"; // database pass
$dbname = "__dbuser__"; // database name $dbname = "__dbuser__"; // database name
$dbprefix = ""; // optional table names prefix, eg. "ulogger_" $dbprefix = ""; // optional table names prefix, eg. "ulogger_"
// other // other
// require login/password authentication // require login/password authentication
// (0 = no, 1 = yes) // (0 = no, 1 = yes)
$require_authentication = 1; $require_authentication = 1;
// all users tracks are visible to authenticated user // all users tracks are visible to authenticated user
// (0 = no, 1 = yes) // (0 = no, 1 = yes)
$public_tracks = 0; $public_tracks = 0;
// admin user, who // admin user, who
// - can add new users // - can add new users
// - can edit all tracks, users // - can edit all tracks, users
// - has access to all users locations // - has access to all users locations
// none if empty // none if empty
$admin_user = "__admin__"; $admin_user = "__admin__";
// miniumum required length of user password // miniumum required length of user password
$pass_lenmin = 12; $pass_lenmin = 12;
// required strength of user password // required strength of user password
// 0 = no requirements, // 0 = no requirements,
// 1 = require mixed case letters (lower and upper), // 1 = require mixed case letters (lower and upper),
// 2 = require mixed case and numbers, // 2 = require mixed case and numbers,
// 3 = require mixed case, numbers and non-alphanumeric characters // 3 = require mixed case, numbers and non-alphanumeric characters
$pass_strength = 2; $pass_strength = 2;
// Default interval in seconds for live auto reload // Default interval in seconds for live auto reload
$interval = 10; $interval = 10;
// Default language // Default language
// (en, pl, de, hu) // (en, pl, de, hu)
$lang = "__lang__"; $lang = "__lang__";
@ -87,10 +71,8 @@ $lang = "__lang__";
//$lang = "hu"; //$lang = "hu";
//$lang = "fr"; //$lang = "fr";
//$lang = "it"; //$lang = "it";
// units // units
// (metric, imperial) // (metric, imperial)
$units = "metric"; $units = "metric";
//$units = "imperial"; //$units = "imperial";
?> ?>