1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <?php include("common.inc.php"); include_header("index"); ?> <div class="colmask rightmenu"> <div class="colleft"> <div class="col1"> <?php $displayDate = (isset($_GET['date']) ? filter_var(substr($_GET['date'],0,11),FILTER_SANITIZE_URL) : date("Y-m-d")); $photoFilename = getPhoto($displayDate); if ($photoFilename == false) { echo "Oops, no photo uploaded for this day<br>"; } else { echo '<img alt="Photo for '.$displayDate.'" src="'.$photoFilename.'">'; } ?> </div> <div class="col2"> <?php include_sidebar(); echo ' </div> </div> </div> '; include_footer(); ?> |