#!/usr/bin/ruby require 'cgi' puts "Content-Type: text/html" puts puts "Index of micmoo.org" a = [] b = [] Dir.foreach(".") {|x| a.push("#{x}
\n") b.push(x) } a.each_with_index do |link,index| if link.to_s.slice(9..9) == "." or link.to_s.slice(9..10) == "00" or link.to_s.slice(9..11) == "404" a.delete_at(index) b.delete_at(index) end if File.file?(b[index]) a[index].insert(0," ") else a[index].insert(0," ") end end puts " welcome to micmoo.org" system("php -r 'include(\"header.php\"); echo $header;'") puts"

Index of micmoo.org

#{a.sort { |a,b| a.downcase <=> b.downcase }}


   

" system("php -r 'include(\"header.php\"); echo $footer;'") puts "
Site Design by Awesome Graphics
"