diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-04-16 17:26:02 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-04-16 17:26:02 -0700 |
commit | e6dbb0b8538e6eebd1592de8070826cf8d41ea11 (patch) | |
tree | 77bf4064a008b16c08a24d0759ea02e2efedd658 /ajax | |
parent | 8f726d6f1c3e157cc36abe6d5a8471166a61d437 (diff) | |
download | pathery-e6dbb0b8538e6eebd1592de8070826cf8d41ea11.tar.xz |
Chat fixes
Diffstat (limited to 'ajax')
-rw-r--r-- | ajax/chat.ajax.php | 10 |
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 |