diff --git a/.gitignore b/.gitignore index c53159e35..a9d7bc5ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ results/idObfuscation_salt.php +results/telemetry_settings.php backend/getIP_serverLocation.php diff --git a/doc.md b/doc.md index d91335e95..8a72a3b82 100644 --- a/doc.md +++ b/doc.md @@ -72,6 +72,7 @@ This step is only required for MySQL and PostgreSQL. If you want to use SQLite, Log into your database using phpMyAdmin or a similar software and create a new database. Inside the `results` folder you will find `telemetry_mysql.sql` and `telemetry_postgresql.sql`, which are templates for MySQL and PostgreSQL respectively. Import the one you need, and you will see a `speedtest_users` table in the database. You can delete the templates afterwards. ##### Configuring telemetry +If it does not exist already, copy `results/telemetry_settings.default.php` to `results/telemetry_settings.php`. Open `results/telemetry_settings.php` in a text editor. Set `$db_type` to either `mysql`,`postgresql` or `sqlite`. If you chose to use SQLite, you might want to change `$Sqlite_db_file` to another path where you want the database to be stored. Just make sure that the file cannot be downloaded by users. Sqlite doesn't require any additional configuration, you can skip the rest of this section. diff --git a/results/index.php b/results/index.php index b15ba5b8e..961ac90d9 100644 --- a/results/index.php +++ b/results/index.php @@ -75,6 +75,7 @@ function format($d){ $MS_TEXT="ms"; $id=$_GET["id"]; +if(!file_exists('./telemetry_settings.php')) copy('./telemetry_settings.default.php', './telemetry_settings.php'); include_once('telemetry_settings.php'); require 'idObfuscation.php'; if($enable_id_obfuscation) $id=deobfuscateId($id); diff --git a/results/stats.php b/results/stats.php index 8ea04b69e..de2f803ee 100644 --- a/results/stats.php +++ b/results/stats.php @@ -56,6 +56,7 @@

LibreSpeed - Stats