|
Thursday, March 29
![]() Maybe it's not a lack of sun... Perhaps it's not a case of seasonally affected disorder that's grinding me down. Good thing I stumbled across Hiroyuki Nishigaki's amazing book How to Good-Bye Depression : If You Constrict Anus 100 Times Everyday. Malarkey? or Effective Way? Besides being a gripping, almost clenching read, there's nothing I like more than a book with a succinct title. It's a great technique, because I can do it almost anywhere. Well, I can do it anywhere once I figure out how to do it without farting all the time, that is.That little side effect seems to be annoying my coworkers. Thanks, Oliver, for tipping me off on this fine title. '; } 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); ?> |