diff --git a/README.md b/README.md index 50e670e..1ef2be6 100755 --- a/README.md +++ b/README.md @@ -24,13 +24,23 @@ Together with a dedicated [μlogger mobile client](https://github.com/bfabiszews - user preferences stored in cookies - simple admin menu +## Install +1. Download the zip or clone the repository on your computer +2. Move it to your web server directory +3. Import the script/ulogger.sql file into a mysql database (you can use a msql interface such as [PhpMyAdmin](https://www.phpmyadmin.net).) +4. Create a copy of config.default.php and rename it config.php. Add database credentials in it. +5. Make sure your web server is running (Apache, Php and Mysql) +6. Go to http://your_local_server/ulogger-server/) +7. Connect with admin/admin +8. Change admin password +9. Create other user if needed + ## Todo - install script - custom icons -- improve admin menu - track editing - track display filters (accurracy, provider) ## License - GPL -- μlogger is a fork of phpTrackme - tracks viewer I wrote for TrackMe app \ No newline at end of file +- μlogger is a fork of phpTrackme - tracks viewer I wrote for TrackMe app diff --git a/config.default.php b/config.default.php index f075655..de5a62d 100755 --- a/config.default.php +++ b/config.default.php @@ -60,7 +60,7 @@ $public_tracks = 0; // admin user who has access to all users locations // none if empty -$admin_user = ""; +$admin_user = "admin"; // Default interval in seconds for live auto reload $interval = 10; diff --git a/scripts/ulogger.sql b/scripts/ulogger.sql index d3875a5..38883c1 100755 --- a/scripts/ulogger.sql +++ b/scripts/ulogger.sql @@ -92,4 +92,11 @@ ALTER TABLE `tracks` -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; \ No newline at end of file + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; + +-- +-- Content of table `users` +-- + +INSERT INTO `users` (`id`, `login`, `password`) VALUES +(1, 'admin', '$2y$10$7OvZrKgonVZM9lkzrTbiou.CVhO3HjPk5y0W9L68fVwPs/osBRIMq'), \ No newline at end of file