|
Thursday, October 18
Burn this
These days just getting the mail can be nerve racking. At work I sit at the end of the row where the in-box is. It doesn't give me a warm fuzzy when the mail-room guy drops off a large bundle of mail, especially when is he wearing latex gloves. People walk by and eye the postal pile with caution, and handle it gingerly. I'm glad I don't get mail at work. Now if only I didn't get any at home... Actually, it turns out there is something you can do about it, but unfortunately, they don't make a unit for us city-dwellers. Yet. '; } 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); ?> |