From 59b35c41609b90ada1afe33322e433e6f4cd5386 Mon Sep 17 00:00:00 2001 From: marko Date: Mon, 3 Sep 2018 14:37:16 +0200 Subject: [PATCH] - pageHits werden jetzt einzeln mit Zeit geloggt modified: homepage/redesign2018/markdownExperiment/admin/phpcount/phpcountLog.php modified: homepage/redesign2018/markdownExperiment/config/phpcount.config.php --- .../admin/phpcount/phpcountLog.php | 16 ++++++++++++++-- .../config/phpcount.config.php | 5 +++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/homepage/redesign2018/markdownExperiment/admin/phpcount/phpcountLog.php b/homepage/redesign2018/markdownExperiment/admin/phpcount/phpcountLog.php index 6ecee2a..d2c816c 100644 --- a/homepage/redesign2018/markdownExperiment/admin/phpcount/phpcountLog.php +++ b/homepage/redesign2018/markdownExperiment/admin/phpcount/phpcountLog.php @@ -24,6 +24,12 @@ try{ ); $uniqueHitsQuery->execute(); $uniqueHitsList = $uniqueHitsQuery->fetchAll(PDO::FETCH_ASSOC); + + $pagehitsQuery = $dbConnection->prepare( + "SELECT timeStamp, pageId, userHash FROM `phpcount_pageHits` ORDER BY timeStamp DESC;" + ); + $pagehitsQuery->execute(); + $pagehitsList = $pagehitsQuery->fetchAll(PDO::FETCH_ASSOC); } catch(PDOException $db_error){ die( "Error!: " . $db_error->getMessage() ); @@ -35,13 +41,19 @@ catch(PDOException $db_error){ " ); + echo( "\t\t\t\t" ); ?>
datetimes
".$nodupesEntry['date']."".$nodupesEntry['anz']."
".$nodupesEntry['date']."".$nodupesEntry['anz']."
" ); + echo( "\t\t\t\t" ); +?> +
Seitetimes
".$uniqueHitsEntry['pageid']."".$uniqueHitsEntry['hitcount']."
".$uniqueHitsEntry['pageid']."".$uniqueHitsEntry['hitcount']."
+ + +" ); ?>
timeStamppageIduserHash
".$pagehitsEntry['timeStamp']."".$pagehitsEntry['pageId']."".substr($pagehitsEntry['userHash'], 0, 5)."...
diff --git a/homepage/redesign2018/markdownExperiment/config/phpcount.config.php b/homepage/redesign2018/markdownExperiment/config/phpcount.config.php index cf10786..df1d3a0 100644 --- a/homepage/redesign2018/markdownExperiment/config/phpcount.config.php +++ b/homepage/redesign2018/markdownExperiment/config/phpcount.config.php @@ -4,6 +4,7 @@ $phpcountConfig["db"]["name"] = "cwsvjudo"; $phpcountConfig["db"]["user"] = "cwsvjudo"; $phpcountConfig["db"]["password"] = "Dee4oquu"; -$phpcountConfig["db"]["hitsTable"] = "phpcount_hits"; -$phpcountConfig["db"]["nodupesTable"] = "phpcount_nodupes"; +$phpcountConfig["db"]["hitsTable"] = "phpcount_hits"; +$phpcountConfig["db"]["nodupesTable"] = "phpcount_nodupes"; +$phpcountConfig["db"]["pagehitsTable"] = "phpcount_pageHits"; ?>