summaryrefslogtreecommitdiffstats
path: root/ajax/chat.ajax.php
diff options
context:
space:
mode:
Diffstat (limited to 'ajax/chat.ajax.php')
-rw-r--r--ajax/chat.ajax.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/ajax/chat.ajax.php b/ajax/chat.ajax.php
index 59f7ae3..9017ab0 100644
--- a/ajax/chat.ajax.php
+++ b/ajax/chat.ajax.php
@@ -5,6 +5,10 @@ session_start();
// header("HTTP/1.0 404 Not Found");
// exit;
// }
+
+if (isset($_SESSION['chatLastReset'])) $chatLastReset = $_SESSION['chatLastReset'];
+else $chatLastReset = 0;
+
if (strtotime('now') - $_SESSION['chatLastReset'] > 6) {
$_SESSION['chatSendCount'] = 0;
$_SESSION['chatLastReset'] = strtotime('now');