From ce7b6d6bb268ccfe712e115c09c8c59502952ea2 Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 5 Oct 2011 02:20:17 -0700 Subject: [PATCH] nsfw added to repository --- nsfw.tgz | Bin 0 -> 691 bytes nsfw/README | 8 ++++++++ nsfw/nsfw.php | 26 ++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 nsfw.tgz create mode 100644 nsfw/README create mode 100644 nsfw/nsfw.php diff --git a/nsfw.tgz b/nsfw.tgz new file mode 100644 index 0000000000000000000000000000000000000000..294f9ec8bbac3779447491d58450cfa803adb9db GIT binary patch literal 691 zcmV;k0!;lMiwFQUA&gD{1MQVtPunmQ$McFm#Zgp|6qV*edQqWF2-q7u3~75os@%kB zt)_NlyHsf6yU$L6Q6{vP6{hX{q*RS_Zt?N?N9b}LdAlXH3Uu5yf{e)S?WP=$8|NVw4n;XThe^S)g2da*wwRMKN${(?@`k`B3%E! zT%KKAUG6N0YjD4xz1jbC@VftLKTSM{cUI90{`3A{-+cZ?h<_~&Xj(ETrGm9o3!jji zoC*zQ&S1&3rZWb)6ov`Y7`b(A6c;lH+#w2pggMm=xX?^!ZulK*0~H1E(mJf{AI0j5 z=4=!5F&0^KGY1NOUh#YZMuM!Fi1JEm=0nBBq5}mh>8dioH8kr*mynO%w||9Z{@qWv zp4U6d@tgTiQu}Rqn*TKJ+4(=ptQpS#J8<&J_MH$C9UKrifNQ#BBWOgy-d!-AD_$Ee z#R$%2RngiGcrCTj(9A6tw62w`6{qIsNL$aZOzFle>BjE|TpOk)b14^L zP+O&;icO}nxDPrI(4vqc+B)iPxrwu7+dd`_U58vX=(oev5YYThk^j zFGDA{_6l3m&PH!>G_? + * + */ + +function nsfw_install() { + register_hook('prepare_body', 'addon/nsfw/nsfw.php', 'nsfw_prepare_body'); +} + + +function nsfw_uninstall() { + unregister_hook('prepare_body', 'addon/nsfw/nsfw.php', 'nsfw_prepare_body'); +} + +function nsfw_prepare_body(&$a,&$b) { + if(stristr($b,'nsfw')) { + $rnd = random_string(8); + $b = ''; + } +} \ No newline at end of file -- 2.39.5