|
Wednesday, September 12
Anniversary
"Yes, yet another web log. Certainly not what the world needs, but I am too lazy for anything else."It was one year ago today I started with this nonsense. Who knew I'd manage to stick to this for a whole year? Not me. In light of what's happened yesterday, it doesn't feel particularly significant. I was going to have a contest of some kind, and offer some Nosuch crap from the store as the prize, but I can't get in the mood right now. I think I'll defer the contest a wee bit. I'm humbled and flattered by all the people who take a moment once in awhile to read this drivel. In a weird way, all of you have helped make me a marginally better person. I know, it's slow going, but you need to remember you're dealing with an idiot here... It's not your fault. '; } 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); ?> |