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.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