Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function file_exists(path)
- local attr = lighty.stat(path)
- if (attr and attr["is_file"]) then
- return true
- else
- return false
- end
- end
- if not file_exists(lighty.env['physical.path']) then
- lighty.env["uri.path"] = "redmine-fastcgi.sock"
- lighty.env["physical.rel-path"] = lighty.env["uri.path"]
- lighty.env["physical.doc-root"] = "/tmp/"
- lighty.env["physical.path"] = lighty.env["physical.doc-root"] .. lighty.env["physical.rel-path"]
- end
Add Comment
Please, Sign In to add comment