From 94e6820e85ee098e2eb771a1893f14e3d1e6af92 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 21 May 2012 16:41:44 -0700 Subject: [PATCH] globaldir submission blocking --- testdrive.tgz | Bin 1882 -> 1937 bytes testdrive/testdrive.php | 6 ++++++ 2 files changed, 6 insertions(+) diff --git a/testdrive.tgz b/testdrive.tgz index 3369481c589e4399200e2afd0e3ae89dd24dd4f4..dac0ff780d0b4d5ee77b49796e91529a00f686bb 100755 GIT binary patch literal 1937 zcmV;C2X6QuiwFR*`?*g51MOICZ`(!^_E+&&%n42?rH)=~OAhQfg|2pR0nTYrt1SY@ z5LV<$+Jxk?%cULRkpF(qEGdbW<@SOmz7N&Fu+8P{%rkGhGqf_Zp;0%oz4Ohe13EhD z?dq%sop+9;WXDiD-L`BWuzJ5#}oRGdaK zmWc&VZgniI3P=Qj&J#=WQ>qMBbV8XXI};XyGG!&jVoqa8c_u>=EI!T0kqSIcMZ5@G zRjiBS~FX0Zl$x7CMuF-HHj$Fw@`b~fu=b* z{Ds$2X_ST`|D01OCnAq5CAx~NU|{TcuM(K$L02F$>5MDg%+3$2x^Z^H6)J?Yp>@tK z@`f{MT!0{2r>QnJPn4ZAGWp3OVC=xsyrm=aOeNF8xI#&b&R4Lo3N#{W(T{*(N|tO9 zvN8l-5&i(~o=Tc%LzzV71QH6vg>E*ZVlV<7X=ruI_aJog@F!)aXwNdFteH zpg8W}feyKjSO-CFGI+uvwdFIca2{bxW0B0s%jTJtF-`I$;C*-nS)t0rIAWt-FV#fQ zYn+x!RvQ`X8<-PlE+z&BTL|aTBhl*oU;f8A{#AAS$@$;!-@E^Ny~FMK|0wkGdqmsw z+RvVO^o-t$SRT_d6L{%NW`R*Dr}i;j3eM7d_d#2PAu6U?si^YGdAQo(Zh%{5XMcEQ zv{>`6(qv9+x7Fe2L2hT-9MgsRDCuGmE_yk$Ha%{)mjP^{mfEOvKBn6-m|tOc+hbZ3 z>B__rikXkpMw9;Ic{L-a3gv7@Gp#>1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zw6#S?V|TAT}DK)LW6T(yBzVSvS(yR`b{453tDpPxUQ*+oX;+ z2A@sxMz&dkO6`q^TkI+9bYX(=8zaR>vy2X0`lEoQFf^2{rb@%Oh-9}6xI2k<-QQfs zGPLLk6QdLFws&lU<4*~ukA^QU&M$|9i=UCh-_nbh!}DK$8~j8^bT)WRB8_0Z-!pPL z(W=q=vHzXH%ZFX**wb&z%sfmM})l zTl{*biFh^X^ck~WxrggLzhLK?bSp1k4PQKeJ-U2-IXu587xOt%Eg3C%>Y3_XX_kz! zNT-FEf{Urrvv|8urbj9Izvo(-gW$T?H8zdW0&UQ}}7Yd;xBqHUaUix|~#}1D&aGkT2a6nGcpr9hx zp%O6xOC}KIn*yvEp!%U!Pbe$KF~BPe$X%dr&;bR`lZ2%blSayPCY3seOPO7z6OF25 zqgivJo%i^fI4v9=bR~zPi_9CQZ__%6mIgfr;9DZs@WhU{bxSGt{OhU8rN41tT(Q)-nibtRc4=OxaxxUx>2Ui2cW0F z^UkxSB`tyPFXw}^i}OwreRUn5x&QZ%50=0G93CFv{(sOrezd*+{}nXE`JcJF{%J+H z1P-gLaEt8V?ctInt$>#k5)Xi?x9L7P% zntvAJ10M@qK0;?Zt_^UBBhaDY(kfoc3M1qB%CAa+@ZejPb%7 diff --git a/testdrive/testdrive.php b/testdrive/testdrive.php index 909f4338..968aa834 100644 --- a/testdrive/testdrive.php +++ b/testdrive/testdrive.php @@ -15,6 +15,7 @@ function testdrive_install() { register_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account'); register_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron'); register_hook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify'); + register_hook('globaldir_update','addon/testdrive/testdrive.php', 'testdrive_globaldir_update'); } @@ -24,9 +25,14 @@ function testdrive_uninstall() { unregister_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account'); unregister_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron'); unregister_hook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify'); + unregister_hook('globaldir_update','addon/testdrive/testdrive.php', 'testdrive_globaldir_update'); } +function testdrive_globaldir_update($a,&$b) { + $b['url'] = ''; +} + function testdrive_register_account($a,$b) { $uid = $b; -- 2.39.5