diff --git a/.gitignore b/.gitignore index c036f18..9a2e8a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -hemnet_commuter_config.ini +config.ini .DS_Store diff --git a/README.md b/README.md index 979fab6..a6f81e1 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,6 @@ If one or more workplace addresses are saved, Hemnet Commuter does extra commute This back-end data retrieval is done with PHP scripts, which save results to a MySQL database. The front-end is built using AngularJS with Leaflet maps and Bootstrap CSS. -> Note that a previous version did basically the same thing, but with a lot less database and a lot more custom JQuery code -> I haven't deleted this from the repository yet, but will soon. You may see relics from this kicking around. Please ignore / let me know. - ## How you can use it ### Requirements @@ -66,7 +63,7 @@ Get your server running and create a new MySQL database using the `hemnet_commut This can be imported into _phpMyAdmin_ / similar tools, or done on the command line and should create all of the necessary database tables and structure. -Create a copy of `hemnet_commuter_config_example.ini` without the `_example` in the filename and save the +Create a copy of `config_example.ini` called `config.ini` in the filename and save the database details and API keys there. ### First run diff --git a/api/_common_api.php b/api/_common_api.php index de67cbb..4c85396 100644 --- a/api/_common_api.php +++ b/api/_common_api.php @@ -18,7 +18,7 @@ error_reporting(E_ALL); // Get secrets from the config file -$ini_array = parse_ini_file("../hemnet_commuter_config.ini"); +$ini_array = parse_ini_file("../config.ini"); // Connect to the database $mysqli = new mysqli("localhost", $ini_array['db_user'], $ini_array['db_password'], $ini_array['db_name']); diff --git a/hemnet-commuter-app.js b/app.js similarity index 100% rename from hemnet-commuter-app.js rename to app.js diff --git a/hemnet_commuter_config_example.ini b/config_example.ini similarity index 100% rename from hemnet_commuter_config_example.ini rename to config_example.ini diff --git a/index.html b/index.html index 96b6986..03fc7d0 100644 --- a/index.html +++ b/index.html @@ -25,7 +25,7 @@ - + diff --git a/update.php b/update.php index 0d8796a..6815960 100644 --- a/update.php +++ b/update.php @@ -7,7 +7,7 @@ ini_set('display_startup_errors', 1); error_reporting(E_ALL); -$ini_array = parse_ini_file("hemnet_commuter_config.ini"); +$ini_array = parse_ini_file("config.ini"); $mysqli = new mysqli("localhost", $ini_array['db_user'], $ini_array['db_password'], $ini_array['db_name']); if ($mysqli->connect_errno) { @@ -237,14 +237,14 @@
Error! Configuration filehemnet_commuter_config.ini
not found!