From d6fd0c971713c4b2b1c6cdabbe1b5290112c2932 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 11 May 2012 03:39:29 -0700 Subject: [PATCH] balckout: fail silently if less than PHP 5.3 --- blackout.tgz | Bin 2702 -> 2752 bytes blackout/blackout.php | 6 +++++- nsfw.tgz | Bin 1920 -> 1928 bytes 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/blackout.tgz b/blackout.tgz index ef87ed74bd9f55b564194a60aa3c4fd934ffe86c..4b5a5d312d391537ef64ea909cf8ecdcffe15f0c 100644 GIT binary patch literal 2752 zcmV;x3P1H9iwFQl?5s}!1MM08bK1($zeaz>mgfoZM&`@L$zYo|*vK(cz6v<0r_*5s zI*@8fr%J+@X8iv4?w)iqI8O4MC~2qFPG*Ak?)H1{cGojopWpITSl;__P(gU}roLCJ zAHAv7j`k|`;){ZN+J*fXcnG#q9q3#3hIr@BQ`FEE4 znSI`}eq4R~_U+G*=_kTW`d|Jid8U^#4|4GF@zH1eUnQ?U@qfKqJKTdx%5ppl|L6Wc z{SE!Clz;tIfnTAoJFEdR5(v{~!Q8jJ(Bf_b&f^8x@Rbk0FMNx+hBep0d=p6us=JT7Cv_%G#RYfEMhWaXc_}8GY^?TjCAnyB_m42d9J%K=kCH~9u+}$1V1r?Q8+a!>b$$sMv`uvN?Ro3g(34D zE1AuQef&)21WK0xh1bD zshUr6;QQx>mTrT`eZlyt%B4h*D-Fhj%gKkdk;V+4ykq&Mt#G(>m$7v1Z2r~eMl@o0ZAfo=z1 z1*AI}2%a&u4kiQA>uIBlEBtJocetuj*yYo)B2MVGDaL|@9_i1SFLWBxQS=t8r2w)pl~r5-i$EaCU7Ws-Um!m;XXiC<_LjyqvkM^~Q5LtfLLAZs!ug6+K6WUs`;>X;3@@C=1 z!s+!1O&_ZVdSOMafq;h!HlOSEl=c;hl3rxY5U&Ra{S`YANVLT(I`Ahb+(k9f6rXSp z^RR#~!8CpeP#t^=N|k((YN|@HsJwc$LrMzF?0}U@CGol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/blackout.php b/blackout/blackout.php index ffd59dca..2cb7c041 100644 --- a/blackout/blackout.php +++ b/blackout/blackout.php @@ -1,7 +1,7 @@ = 5.3 * License: MIT * Version: 1.0 * Author: Tobias Diekershoff @@ -62,6 +62,10 @@ function blackout_redirect ($a, $b) { if (local_user()) { return true; } + + if (! (version_compare(PHP_VERSION, '5.3.0') >= 0)) + return true; + // else... $mystart = get_config('blackout','begindate'); $myend = get_config('blackout','enddate'); diff --git a/nsfw.tgz b/nsfw.tgz index ccddb1e38a35297ff764d6c8f3a59af9a89ef4c7..c484aa03f77b7275c44b3b9185c3fe05735b888c 100755 GIT binary patch literal 1928 zcmV;32Y2`%iwFQ&?5s}!1MOICZ`;Tb_E+&&OnL5+3S?1|B`c6E9}d2xDA42%^|kjQ zF@zPlloq0P3GULiQ24)h_C=H^B~j9=lfGzxIO6Wi?CiWfLvoouL?_Qn9i-u4aMBy} zhrM3^q%*kaUG%$V-O)+6I~<&MFD|;h;YkM{`oj|#JhNSfN~uTzaIz%vj1~8ce}pfe z4KBJbU%vbrHho3nI{x}kJC^d9&M@&Gemwr?=Y1XjZohxg>tLRAy663KjDP2u?5WZJ zdHlWabnwqIGNoAy>;vUwno+w3|L_`VCWsnAMpJd^H6B=^<|8=obn-`hT#{nO_?Z&< z2)btJ$#Y5{M3Kn4(tUNGkeB6j$&?nUF%2A3+b|_m#(OMQ&$ssNe*>BN|LdzCe|q!k z+0Hmr|GlB<|6MHpVRv|r_1{B=WBq>(dVBl&H_!9m3I&p+6jD(D*6qUgyxW*?32IJZ zNu?w+3bEjda%GtGx>N<@GYE7N1>l7-krWu0luM@AJ#7Nv39u9eO8imKJR>o+I-M@> zfvGtV@Z*fd3s3??PI(k(LQ)?x#uqI}XiCaV0h3_XleXu5Yrp-k&<6kWdHzgi9H{@{ zus3k?9|C{R;(z~G|6hf!e!#eUo)^7%;lT@dOO|v5rYYdlPl&Ar%M}xR1UDkfNR9=b z3#lZSx@DZ?c_H$G5w$64l>9p_q><{jJN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