Setup counter for days
This commit is contained in:
1 parent
49a65d4d1a
commit
c5842e58f2
2 files changed
+3
-3
No files matched your search
@@ -150,7 +150,7 @@ class Counter
|
||||
DELETE FROM
|
||||
CounterIP
|
||||
WHERE
|
||||
TIMESTAMPDIFF(MINUTE, timestamp, NOW()) > 1";
|
||||
TIMESTAMPDIFF(DAY, timestamp, NOW()) > 1";
|
||||
|
||||
$stmt = $this->db->prepare($query);
|
||||
$stmt->execute();
|
||||
@@ -168,7 +168,7 @@ class Counter
|
||||
AND
|
||||
ip = :IP
|
||||
AND
|
||||
TIMESTAMPDIFF(MINUTE, timestamp, NOW()) <= 1";
|
||||
TIMESTAMPDIFF(DAY, timestamp, NOW()) <= 1";
|
||||
|
||||
$stmt = $this->db->prepare($query);
|
||||
$stmt->bindValue(":SID", $this->siteID);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<?php require_once "../../../base/meta.php" ?>
|
||||
|
||||
<title>FieldValidator Test</title>
|
||||
<title>Counter Test</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Reference in new issue
Block a user