\n"; print "\truss.angrypacket.com :: $location\n"; print "\n\n"; print "\n"; print << EOF; @include("inc/location.php"); @include("inc/modules.php"); chdir($path); if ($dir = @opendir("$path")) { while ($file = readdir($dir)) { if ($file == "intro"){ $fd = fopen ("$path$file", "r"); $get1stln = fgets($fd, 4096); print "\n"; print "\t\n"; print "\t\n"; print "\t\n"; } } } closedir($dir); if ($dir = @opendir("$path")) { while ($file = readdir($dir)) { if ($file == "materials"){ $fd = fopen ("$path$file", "r"); $get1stln = fgets($fd, 4096); print "\t\n"; print "\t\n"; } } } closedir($dir); if ($dir = @opendir("$path")) { while ($file = readdir($dir)) { if ($file != "." && $file != ".." && $file != "thumbs" ) { $ext=substr($file,-5); if ($ext == ".step") { $fd = fopen ("$path$file", "r"); $get1stln = fgets($fd, 4096); print "\t\n"; print "\t\n"; } } } closedir($dir); } if ($dir = @opendir("$path")) { while ($file = readdir($dir)) { if ($file == "outro"){ $fd = fopen ("$path$file", "r"); $get1stln = fgets($fd, 4096); print "\t\n"; print "\t\n"; print "\n"; print "
\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t
\n"; print "\t\t\n"; print "\t\t$get1stln\n"; print "\t\t\n"; print "\t\t
\n"; print "\t\t\n"; while (!feof ($fd)) { $buffer = fgets($fd,4096); echo "$buffer\n
\n"; } fclose($fd); print "\t\t
\n"; print "\t
 
\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t
\n"; print "\t\t\n"; print "\t\t$get1stln\n"; print "\t\t\n"; print "\t\t
\n"; print "\t\t\n"; while (!feof ($fd)) { $buffer = fgets($fd,4096); echo "$buffer\n
\n"; } fclose($fd); print "\t\t
\n"; print "\t
 
\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t
\n"; print "\t\t\n"; print "\t\t$get1stln\n"; print "\t\t\n"; print "\t\t
\n"; print "\t\t\n"; while (!feof ($fd)) { $buffer = fgets($fd,4096); echo "$buffer\n
\n"; } fclose($fd); print "\t\t
\n"; print "\t
 
\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t\n"; print "\t\t
\n"; print "\t\t\n"; print "\t\t$get1stln\n"; print "\t\t\n"; print "\t\t
\n"; print "\t\t\n"; while (!feof ($fd)) { $buffer = fgets($fd,4096); echo "$buffer\n
\n"; } fclose($fd); print "\t\t
\n"; print "\t
 
\n"; } } } closedir($dir); ?>