|
Friday, February 22
Poor Sports
It is entirely possible I have a poor memory for such things. I mean, I have a poor memory for everything, but I'm sure it's especially bad for matters athletic and sporting. But is this the crankiest Olypmics you've ever seen? Judges colluding, skaters getting disqualified, nations bitching and threatening to pull out, what's up? I'm expecting fights to break out rink-side next. Or maybe one of the biathlon competitors can go nuts and start shooting at Olympic officials or their opponents. '; } else { if(stristr($filename,"archive")) { $dir=$_SERVER['DOCUMENT_ROOT']; $template='_01_archive.html'; $tail=strlen($template); $thisArchive=$filename; //$files=scandir($dir); $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } sort($files); $earlyarch=""; $laterarch=""; $prevarch=""; $next=0; foreach($files as $file) { if (substr($file,-$tail)==$template) { if ($next==1) { $laterarch=$file; $earlyarch=$prevarch; $next=0; } if ($file==$thisArchive) { $next=1; } else { $prevarch=$file; $earlyarch=$prevarch; } } } $link=''; $divider=''; if(file_exists($earlyarch)) { $link='< Earlier Archive'; $divider=" | "; } if(file_exists($laterarch)) { $link=$link.$divider.'Later Archive >'; } $link=$link.' '; } } echo($link); ?> |