|
Tuesday, September 12
Yes, yet another web log. Certainly not what the world needs, but I am too lazy for anything else.
The archive page is suffering from weirdness, and the basic look of this page will change, but all things in good time. I purchased a damn Windows box yesterday. Yes, yes, I finally gave in to the dark side. Though, actually, I feel it isn't so much of a defection as it is an increase in diversity. I still will be using my Mac mostly, and there are five Macs to the one lone Dell. All this, just so I can play Black & White... and maybe a little AVP (which I'm tired of waiting for the Mac port, and I don't have the graphics hardware for it on the Mac side anyway.) Oh, and I'll use it for some cross development work too. Well, I could have just kept using Virtual PC, but that gets old. '; } 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); ?> |