Start on HW
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user