PHP index source code:
Software index
"; $file_array=readfile($readme_path); } else { echo "
No $filename available: tried $readme_path
"; } echo ""; } function list_dir($dirname) { $handle=opendir($dirname); while ($file= readdir($handle)) { if ($file=='.' || $file=='..') continue; if ($file=='icons') continue; if ($file=='sessions') continue; if(is_dir($file)){ $result_array[]=$file; } } closedir($handle); return $result_array; } function output_array($myarray) { $beforename="
"; $aftername="
"; for($i=0; $i
[visit]"; echo " $aftername\n"; $dirname="/".$myarray[$i]."/"; print_file('README',$dirname); } } echo "
"; echo "
Software index
\n"; echo "
"; $foo=list_dir('.'); sort($foo); output_array($foo); ?>