echo.lsp 217 B

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