From 868de2dc780399d7244bee1ab80b9040af7f9a39 Mon Sep 17 00:00:00 2001 From: hauke Date: Wed, 13 May 2015 22:51:00 +0200 Subject: [PATCH] pageheader plugin now allows to use a html file for pageheader --- pageheader.tgz | Bin 3711 -> 0 bytes pageheader/README | 3 ++- pageheader/pageheader.php | 8 +++++++- 3 files changed, 9 insertions(+), 2 deletions(-) delete mode 100644 pageheader.tgz diff --git a/pageheader.tgz b/pageheader.tgz deleted file mode 100644 index 8b3a5b100c94253e212a22c88ba5c54c01a93794..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3711 zcmV-_4uJ6=iwFSFBtcaG1MMAMZ{x=CUM(R1VNZ5WQesLZC0Q5Q@||<`B}VM?!S)qs zbAhlTSJKAhQsplFl^hTxXrEfNk9{ec00n|Pq$t`1C;~KnaPxlm8=AK0zvwPWeVC#p z>x=Rw9Nby_n4Q_LnVp@TUAABYH4)U2oiiY5( z@EGaYF3EY<#E%oYEt8uW4=xX-Qt@i}7xLoEzoM?FT>kUs$hE1>@o zoqj(Uq5XaRUnr@Cxc#GmVEbd1GZCfyDIfi<>F^jb{wphaH6Z^bMV907KMGg`8=ISZ zk3hE{Bo@H~t954MMw5Z`gABhvY+?%P*g$~)>R1fxHHRS`I7AHTtcmz&ZX#e{4H1d} zr0%naHbz9p8tkDCpsrhlKhTc&vn(g>{X4WFp$24@P0ReY4r?|(JvG6aca=Rg?>9_{ zjjU#w>&rmpIwE1x2G+UpATD^G#8vXKZM}~)CT;7|PmoQqMarPw&c{>2G4@f*vYE6i z5=(D74JsX4W#GPgymu%)un}ZDnY0NRDhoz=NmeDb1mt2_RwTJ7%RaKSkB%|DgjzpP zPm|$1iftagP21D8LeN+4w$TR|xFh9?Co+zCXX44Ck^i9nx2?I3|Gxe&l=As_{Eq^H z?eES1r^{n>`>&W+SK{`M0{ZO#`O1IS{+HwSj{<`2ug!P<*U|rR`$q%8_HP+CL;mw| z`$qyH`hU94|69ZT|9M#n`u`QB5YPXk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GgwzcIuRLku&8{{x-eK$QTP006jvkDvem diff --git a/pageheader/README b/pageheader/README index 613affbd..9ba60788 100755 --- a/pageheader/README +++ b/pageheader/README @@ -4,4 +4,5 @@ For server admins only. Displays a text message for system announcements' The message is entered in the admin account at settings, Plugin settings. -BBcode can be used to format text or add links. +If you want to use HTML in the pageheader, create a file called pageheader.html +in the document root of your friendica instance and add the html there. diff --git a/pageheader/pageheader.php b/pageheader/pageheader.php index 1e71dec4..33853954 100755 --- a/pageheader/pageheader.php +++ b/pageheader/pageheader.php @@ -75,10 +75,16 @@ function pageheader_addon_settings_post(&$a,&$b) { } function pageheader_fetch($a,&$b) { + + if(file_exists('pageheader.html')){ + $s = file_get_contents('pageheader.html'); + } else { + $s = get_config('pageheader', 'text'); + } $a->page['htmlhead'] .= '' . "\r\n"; - $s = proxy_parse_html(bbcode(get_config('pageheader', 'text'), true)); + if(! $s) $s = ''; if ($s != '') -- 2.39.5