summaryrefslogtreecommitdiffstats
path: root/ajax/chat.ajax.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-04-16 17:26:02 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-04-16 17:26:02 -0700
commite6dbb0b8538e6eebd1592de8070826cf8d41ea11 (patch)
tree77bf4064a008b16c08a24d0759ea02e2efedd658 /ajax/chat.ajax.php
parent8f726d6f1c3e157cc36abe6d5a8471166a61d437 (diff)
downloadpathery-e6dbb0b8538e6eebd1592de8070826cf8d41ea11.tar.xz
Chat fixes
Diffstat (limited to 'ajax/chat.ajax.php')
-rw-r--r--ajax/chat.ajax.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/ajax/chat.ajax.php b/ajax/chat.ajax.php
index 415c517..c909754 100644
--- a/ajax/chat.ajax.php
+++ b/ajax/chat.ajax.php
@@ -1,5 +1,10 @@
<?
session_start();
+//For testing purposes send a fake 404.
+// if (rand(1,3) == 2) {
+ // header("HTTP/1.0 404 Not Found");
+ // exit;
+// }
if (strtotime('now') - $_SESSION['chatLastReset'] > 6) {
$_SESSION['chatSendCount'] = 0;
$_SESSION['chatLastReset'] = strtotime('now');
@@ -168,6 +173,11 @@ function chatFilter($chat) {
$chat = str_ireplace("pedophile", "Optimus Prime", $chat);
$chat = str_ireplace("pedo", "Optimus Prime", $chat);
$chat = str_ireplace("rape", "shake hands with", $chat);
+
+ //Easter Eggs
+ $chat = str_ireplace("i just pwned Snap", "Snap just totally pwned me ^^", $chat);
+ $chat = str_ireplace("i just pwned Blue", "Blue just epicly pwned me the with chat filter", $chat);
+ $chat = str_ireplace("language filter", "highly educated team of monkeys employed to filter bad language", $chat);
return $chat;
}
?> \ No newline at end of file