From b37ed3fa514e22adc9d4c66c0eaa59640514811f Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Wed, 16 Mar 2016 20:35:37 -0400 Subject: [PATCH] Actually fixed query log this time Maybe --- data.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data.php b/data.php index bafb62cc..8c3ee81a 100644 --- a/data.php +++ b/data.php @@ -124,13 +124,13 @@ foreach ($dns_queries as $query) { $time = date_create(substr($query, 0, 16)); - + $exploded = explode(" ", trim($query)); array_push($allQueries['data'], array( $time->format('Y-m-d\TH:i:s'), - substr($exploded[5], 6, -1), - $exploded[6], - $exploded[8], + substr($exploded[count($exploded)-4], 6, -1), + $exploded[count($exploded)-3], + $exploded[count($exploded)-1], )); }