/* This file reads brief lecture descriptions/dates from files in lectures and summarizes them. * To customize for a semester, change */ $path = "lectures/"; // No changes should be needed below this line // default values, can be overridden in $path/init.php $filetypes = array( array(".pdf", "PDF"), array(".ppt", "PPT"), array(".pptx", "PPTX") ); $lectures_inifile = $path . "lectures.ini"; require($path . "init.php"); $lectures = parse_ini_file($lectures_inifile, true); ?>
Date | Lecture | Slides | Reading Assignment |
---|---|---|---|
echo $formatteddate; ?> | echo $c['description']; ?> | foreach ($filetypes as $ftype) { $fname = $path . $lecture . $ftype[0]; if (file_exists($fname)) { echo '' . $ftype[1] . ' '; } } ?> | $reading = @$c['reading']; if (isset($c['readingurl'])) { $reading = "" . $reading . ""; } echo $reading; ?> |