diff options
Diffstat (limited to 'ajax')
-rw-r--r-- | ajax/chat.ajax.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ajax/chat.ajax.php b/ajax/chat.ajax.php index 91c5b95..1574bde 100644 --- a/ajax/chat.ajax.php +++ b/ajax/chat.ajax.php @@ -24,6 +24,20 @@ if (strtotime('now') - $chatLastReset > 6) { $_SESSION['chatSendCount'] = 0;
$_SESSION['chatLastReset'] = strtotime('now');
}
+
+//T:
+if (rand(1,4) == 2 || true) {
+ $r[0]['serverMessage'] = 'true';
+ $r[0]['isJoinLeave'] = 'true';
+ $r[0]['message'] = "Server Test";
+ $r[0]['secondsSince'] = 0;
+ $r[0]['displayName'] = 'SERVER';
+ $r[0]['userID'] = null;
+ //echo json_encode($r);
+ //exit;
+}
+
+
if (isset($_REQUEST['messages'])) {
$_SESSION['chatSendCount']++;
if ($_SESSION['chatSendCount'] > 4) {
|