|
Tuesday, March 4
Unpack those bags!
According to the Mercer Human Resource Consulting, I'm on the wrong side of the ocean. These folks ranked Munich in the top five cities worldwide for quality of life. And for some reason, probably a math error of some kind, New York City was ranked 44th. I told Conny it's a typo, they probably meant "4th". That kind of mistake happens all the time. Even if it's it not a typo, I am sure the folks at Mercer didn't factor in some pretty critical variables, such as
'; } 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); ?> |