0)); $hna_style = isset($_REQUEST['hna_style'])?$_REQUEST['hna_style']:'old'; $page = "HNA Beacons"; $with_logo = 1; // 0:No, 1:Big, 2:Small $heading = "Hilltop Beacon Newsletters"; $hnalogo = get_logo($with_logo,$heading); global $u,$d; if (isset($_GET['month']) and ($_GET['month'] != '')) { $month = $_GET['month']; } else { $month = date('M'); } if (isset($_GET['year']) and ($_GET['year'] != '')) { $year = $_GET['year']; } else { $year = date('Y'); } if ($dbg_logic == 1) {echo "month: '$month'
\n";} if ($dbg_logic == 1) {echo "year : '$year'
\n";} if ($month == 'March') { $ext = '.pdf'; } else { $ext = '.jpg'; } if (isset($_GET['path']) and ($_GET['path'] != '')) { $path = $_GET['path']; } else { $path = ''; } if ($dbg_logic == 1) {echo "path: '$path'
\n";} // $ext1 = '.pdf'; // $ext2 = '.jpg'; // $ext3 = '.gif'; // $ext4 = '.jpg'; // $pre4 = 'mime.'; // $pre5 = 'summer'; // function do_year($y) { global $u,$d; $u = 'http://www.hilltopbeacon.com/'; // $d = 'committees/HNA/newsletters/'; // truly empty! $d = 'committees/HNA/news/'; $c = 0; $o = 0; // not opened. $r = opendir('./'.$d.$y); if ($r) { $o = 1; // opened, exists $files = array(); while (false !== ($f = readdir($r))) { if (preg_match('/^\.\.?$/', $f)) { continue; } elseif (preg_match('/^CVS$/', $f)) { continue; } else { $files[] = $f; $c++; } } closedir($r); } if ($c == 0) { echo " Nothing for $y yet!
"; if (($o == 0) && (! file_exists('./'.$d.$y))) { mkdir('./'.$d.$y, 0777); // so we are ready for next year. wls Apr 6, 2015 } } else { echo " HNA Beacons for $y (click to view).
"; foreach ($files as $f) { echo " $f "; } } } ?> Recent HNA Newsletters


Archive: "; for ($i=$y;$i>2005;$i--) { echo "
$i | \n"; } echo "$i
\n"; // 2009 |2007 | 2006 | 2005 ?>

The Hilltop Beacon is © Copyright 2005 - Hilltop Neighbors Association. "All Rights Reserved."
© Copyright 2005 - William L. Scheding. "All Rights Reserved."
© all other copyrighted material is the property of the respective owners.