|
Tuesday, May 6
Canine Time Machine
The only person worse than me at keeping his blog up to date is my dog Leo. I'm withholding biscuits until he gets current, so you will be seeing regular updates, at one or two new pictures a day, until he's all caught up. Do realize, though, that Leo just tries to have a post or two each week typically. Even still, he's almost two months behind. And yes, his blog his viciously broadband dependent. He's only a dog, cut him some slack. '; } 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); ?> |