From: Mischa POSLAWSKY Date: Wed, 2 May 2018 15:05:18 +0000 (+0200) Subject: nieuws: placeholder script to show articles X-Git-Tag: v3.0~2 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/087428a7f2e31e2d9269084ba2a2f3b114a8c8d7 nieuws: placeholder script to show articles Can replace homepage controller to inline latest news. --- diff --git a/nieuws.inc.php b/nieuws.inc.php index 3d88a26..f4d42d8 100644 --- a/nieuws.inc.php +++ b/nieuws.inc.php @@ -1,4 +1,5 @@ (.*?)}', $title, $html); } -function shownews($root, $limit = 5) +function shownews($root, $limit = 1000) { if (strpos($root, '/') === FALSE) $root .= '/*'; foreach (array_reverse(glob("$root/*.html")) as $url) { diff --git a/nieuws.php b/nieuws.php new file mode 100644 index 0000000..83fdc7a --- /dev/null +++ b/nieuws.php @@ -0,0 +1,4 @@ +$title\n\n"; print '
'."\n\n"; - shownews($match, 100); + shownews($match); print "
\n\n"; return 1; }