projects
/
infodrom.org
/
oldenburg.linux.de
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
778bc09
)
Display only past dates on request for archive pages
author
Joey Schulze
<joey@infodrom.org>
Sun, 15 Jun 2008 09:31:24 +0000
(09:31 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Sun, 15 Jun 2008 09:31:24 +0000
(09:31 +0000)
src/Termine/years.inc
patch
|
blob
|
history
diff --git
a/src/Termine/years.inc
b/src/Termine/years.inc
index
4fb3dae
..
5f36241
100644
(file)
--- a/
src/Termine/years.inc
+++ b/
src/Termine/years.inc
@@
-99,7
+99,7
@@
function readdb($datedb)
return $dates;
}
-function display_dates()
+function display_dates(
$past=false
)
{
global $dates;
@@
-126,7
+126,8
@@
function display_dates()
$cmon = false;
$color = 'ffffff';
foreach ($dates as $line) {
- if ($line < $nowstring)
+ if (($past == false && $line < $nowstring) ||
+ ($past == true && $line > $nowstring))
continue;
if (preg_match("/([0-9]{4})-([0-9]{2})-([0-9]{2})\|([^\|]*)\|[^\|]*\|([^\|]*)\|([^\|]*)\|(.*)/", $line, $match)) {