echo.lp 254 B

123456789
  1. <?
  2. -- This *.lp file simply runs the *.lua file in the same directory.
  3. n = string.match(mg.request_info.uri, "^(.*)%.lp$")
  4. if mg.system:find("Windows") then
  5. n = string.gsub(n, [[/]], [[\]])
  6. end
  7. n = mg.document_root .. n .. ".lua"
  8. dofile(n)
  9. ?>