Start on HW

This commit is contained in:
2024-06-21 13:51:15 +02:00
parent 32d4a62246
commit 15b264ded2
5 changed files with 81 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
include_once "../../../base/settings.php";
include_once "../../../base/database.php";
include_once "./impl/functions.php";
$db = DB::openConnection();
$start = strlen($_SERVER["REQUEST_URI"]) - 256;
$siteID = substr($_SERVER["REQUEST_URI"], $start);
$visitorCount = getHits($siteID, $db);
addHit($siteID, $db);
DB::closeConnection($db);
?>
<div>
Visitor count: <?= $visitorCount + 1 ?>
</div>