<?php //2015-06-26 - nwmosses - added includes to display proper menu for logged in users include_once($_SERVER['DOCUMENT_ROOT'] . "/course_registration/common_functions.php"); //common functions in the course registration system include_once($_SERVER['DOCUMENT_ROOT'] . "/course_registration/config.php"); //holds global config variables $page_title = "Newsletter"; include($_SERVER['DOCUMENT_ROOT'] . "/course_registration/public_top.php"); //the HTML that outlines the top of the page //include($_SERVER['DOCUMENT_ROOT'] . "/ces_nav.php"); //get the HTML nav common to all CES public pages ?> <article> <h2>CES Newsletter</h2> <?php $format = "F Y"; //chdir('newsletter'); foreach (glob('*{N,n}ewsletter*.pdf', GLOB_BRACE) as $value){ $date = date($format, strtotime(substr($value,0,7))); if (substr($value,0,7) >= date("Y-m")) echo '<p><a href="/newsletter/'.substr($value,0).'"">Newsletter - '.$date.'</a></p>'; } ?> </article> <section id="right30"> <?php include($_SERVER['DOCUMENT_ROOT'].'/menu.php');?> <?php include($_SERVER['DOCUMENT_ROOT'].'/require/sidebar.php');?> </section><!-- #sideRight --> </section><!-- #middle--> </div><!-- #wrapper --> <?php require_once $_SERVER['DOCUMENT_ROOT'].'/require/footer.php';?>