echo.lp 223 B

12345678
  1. <?
  2. function print(txt) mg.write(txt .. "\r\n") end
  3. mg.write("HTTP/1.1 200 OK\r\n")
  4. n = string.match(mg.request_info.uri, "^(.*)%.lp$")
  5. n = string.gsub(n, [[/]], [[\]])
  6. n = mg.document_root .. n .. ".cgi"
  7. dofile(n)
  8. ?>