From a7d5bdfc9a4c34cf9a5e735117993c001a8ec979 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 9 Feb 2012 19:08:36 -0800 Subject: [PATCH] reducing server load - will need to rewrite this as a local rather than network service --- fortunate.tgz | Bin 674 -> 0 bytes fortunate/fortunate.css | 7 ------- fortunate/fortunate.php | 27 --------------------------- 3 files changed, 34 deletions(-) delete mode 100755 fortunate.tgz delete mode 100755 fortunate/fortunate.css delete mode 100755 fortunate/fortunate.php diff --git a/fortunate.tgz b/fortunate.tgz deleted file mode 100755 index e9c20413b0c40461808001bf9653faee2c41bc51..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 674 zcmV;T0$u$diwFP@ISx+%1MQVjZ<{a>$9WB(;>4nmRxRKJNR){j z0W;fF?WTSA*-1;cs?lE3_F?yXBA4UtZ~xCG=R$Q2Rm`_ujX*P-Mb;z=XOl^21yMYS zL$ZxOU=cD4rs0$XB(MT9nZ#&Vh{hh|6Xr9{Imx(6`Qg-RlHrm zBx>)@`cTDkwEz+Xe+JiFDPH%fDX+L#zz5^$e69mIZ`7$Qe=z-KXi|Q?_i~YEymbEC zqCIGjf1H0ZolT$J|4|f#c>dpl<%M?J_K%NkIEK%()<^Zz;~<#OMMkM!O3V#luet7q37zUxbExBrhvLwYhA zu1#lqFr=sFrrTGyP<2%>nz`S=OTb-LWpe|9Rf!|jeZ^$Km~uefw=8iKyHmdY;5$$V zmM4x2_F&+FDYjv1wWgAF!Ys}M*WbSYUBNXe4%93wY2xS|alk(}LFZarH_n-nC?SEZ z^pz> - */ - - -function fortunate_install() { - register_hook('page_end', 'addon/fortunate/fortunate.php', 'fortunate_fetch'); -} - -function fortunate_uninstall() { - unregister_hook('page_end', 'addon/fortunate/fortunate.php', 'fortunate_fetch'); -} - - -function fortunate_fetch(&$a,&$b) { - - $a->page['htmlhead'] .= '' . "\r\n"; - - $s = fetch_url('http://fortunemod.com/cookie.php?numlines=2&equal=1&rand=' . mt_rand()); - $b .= '
' . $s . '
'; -} -