git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
page: http redirect to html symlinks
[minimedit.git]
/
nieuws
/
index.php
diff --git
a/nieuws/index.php
b/nieuws/index.php
index 25efd2daf017882e6e3b49ac55c623e755457f5f..cf57dbc0b4882d73c92b4157f33fa113e816d91e 100644
(file)
--- a/
nieuws/index.php
+++ b/
nieuws/index.php
@@
-5,14
+5,14
@@
include 'nieuws.inc.php';
if ($page and !is_numeric($page)) {
$edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL;
if ($page and !is_numeric($page)) {
$edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL;
- print shownewsarticle($Args, FALSE, $edit);
+ print shownewsarticle($
Page.$
Args, FALSE, $edit);
return 1;
}
if ($year) {
ob_clean();
$title = "Nieuws";
return 1;
}
if ($year) {
ob_clean();
$title = "Nieuws";
- if (is_numeric($year)) {
+ if (is_numeric($year)
and $year > 999
) {
$match = "$Page/$year/";
if (is_numeric($page)) {
$title .= ' '.$monthname[intval($page)];
$match = "$Page/$year/";
if (is_numeric($page)) {
$title .= ' '.$monthname[intval($page)];
@@
-20,22
+20,16
@@
if ($year) {
}
$title .= ' '.$year;
}
}
$title .= ' '.$year;
}
- else {
+ else
if ($year === '19')
{
$match = "$Page/19??/";
$title .= " vóór 2000";
}
print "<h2>$title</h2>\n\n";
$match = "$Page/19??/";
$title .= " vóór 2000";
}
print "<h2>$title</h2>\n\n";
- print '<div id="news">'."\n\n";
shownews(glob($match.'*.html'));
shownews(glob($match.'*.html'));
- print "</div>\n\n";
return 1;
}
return 1;
}
-if ($Args) {
- return;
-}
-
print '<div id="news">'."\n\n";
foreach (array_reverse(glob("$Page/2???")) as $page) {
print '<div id="news">'."\n\n";
foreach (array_reverse(glob("$Page/2???")) as $page) {
@@
-45,7
+39,7
@@
foreach (array_reverse(glob("$Page/2???")) as $page) {
}
if ($pages = glob("$Page/19??/*.html")) {
}
if ($pages = glob("$Page/19??/*.html")) {
- printf('<h3><a href="/%s">%s</a></h3>'."\n", "$Page/
oud
", 'Eerder');
+ printf('<h3><a href="/%s">%s</a></h3>'."\n", "$Page/
19
", 'Eerder');
printtoc($pages);
}
printtoc($pages);
}