From 7545d2544cd769e2f884d62767901191da642674 Mon Sep 17 00:00:00 2001 From: adolfintel Date: Wed, 30 Jan 2019 10:24:15 +0100 Subject: [PATCH] Implemented id obfuscation in telemetry/stats.php --- telemetry/stats.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/telemetry/stats.php b/telemetry/stats.php index 0d21b21..13b390e 100644 --- a/telemetry/stats.php +++ b/telemetry/stats.php @@ -54,6 +54,7 @@ header('Content-Type: text/html; charset=utf-8');

HTML5 Speedtest - Stats

Please set $stats_password in telemetry_settings.php to enable access. @@ -87,9 +88,10 @@ if($stats_password=="PASSWORD"){ $q=null; if($_GET["op"]=="id"&&!empty($_POST["id"])){ $id=$_POST["id"]; + if($enable_id_obfuscation) $id=deobfuscateId($id); if($db_type=="mysql"){ $q=$conn->prepare("select id,timestamp,ip,ispinfo,ua,lang,dl,ul,ping,jitter,log,extra from speedtest_users where id=?"); - $q->bind_param("i",$_POST["id"]); + $q->bind_param("i",$id); $q->execute(); $q->store_result(); $q->bind_result($id,$timestamp,$ip,$ispinfo,$ua,$lang,$dl,$ul,$ping,$jitter,$log,$extra); @@ -129,7 +131,7 @@ if($stats_password=="PASSWORD"){ }else die(); ?> - +
Test ID
Test ID
Date and time
IP and ISP Info
User agent and locale