Merge pull request #2 from amadeous/master
Add install process (since no install script) and default admin user
This commit is contained in:
commit
0ebcb70335
12
README.md
12
README.md
@ -24,10 +24,20 @@ 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)
|
||||
|
||||
|
@ -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;
|
||||
|
@ -93,3 +93,10 @@ ALTER TABLE `tracks`
|
||||
--
|
||||
ALTER TABLE `users`
|
||||
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'),
|
Loading…
x
Reference in New Issue
Block a user