|
Thursday, April 4
Getting it
Much like James cannot "get" Sex in the City, thus confirming once again why he lives in New Zealand and teaches math, the discussion on Johhny's Phoneblog reminds me that I don't "get" the religious mind. But you know, sometimes I don't want to. With apologies to my religious friends who would never, ever own one of those hand painted resin statues, and thanks to Scratch This for the discovery. And James knows I'm just jerking his chain, which I can't wait to do in person. '; } 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); ?> |