Tutorials\n"; //echo "\t\t\t

Coming soon.

\n"; /* * Create array of .html filenames from tutorials directory */ if($tutorialdir = opendir('tutorials')){ $items = array(); while(($item = readdir($tutorialdir)) !== false){ array_push($items,$item); } sort($items); $tutorials = preg_grep("/^tutorial_.*\.html$/",$items); closedir($tutorialdir); } /* * insert links for individual tutorials */ echo "\t\t\t

\n"; echo "\t\t\t

\n

"; echo "\t\t\t\tView all tutorials
\n"; echo "\t\t\t

\n"; /* * insert tutorial abstract(s) */ if(isset($_GET)){ $abstract = $_GET['abstract']; if($abstract == "all"){ foreach($tutorials as $tutorial){ $lines = file("tutorials/$tutorial","r"); echo "\t\t\t
\n"; foreach($lines as $line){ echo "\t\t\t\t$line"; } echo "\t\t\t
\n"; } } else{ if(is_readable("tutorials/".$abstract.".html")){ $lines = file("tutorials/$abstract.html","r"); echo "\t\t\t
\n"; foreach($lines as $line){ echo "\t\t\t\t$line"; } echo "\t\t\t
\n"; } } } $timestamp = date("D, M d, Y H:i:s", filemtime(__FILE__))." by ".get_current_user(); include "foot.html"; ?>