|
Friday, March 22
Over the hill
Ten years ago, I felt like the overall trend of things was improvement and progress. I was skeptical, but hopeful. Democracy and capitalism seemed to be slowly making the world a more stable place. Technology was offering great opportunities and bringing people together. Hardly a perfect place, but I was hopeful. Now, I look around, and I see government whoring itself out to business, destroying innovation, culture and free speech. The world is clearly more dangerous than ever. Things are getting worse, not better. So I think it's official. I'm an old fart. I've passed the tipping point where I think the past is going to be better than the future. I thought I had at least another ten years to go before fartdom, but I suppose it always sneaks up on you. '; } 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); ?> |