* ffluci.fs.isfile: fixed several typos
authorSteven Barth <steven@midlink.org>
Wed, 7 May 2008 20:47:22 +0000 (20:47 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 7 May 2008 20:47:22 +0000 (20:47 +0000)
core/contrib/ffluci
core/src/ffluci/fs.lua

index 183a6ad412d466831b372374ce1ac0e1ce43dd06..2c0362eba7f5c1b055bddc74e75a97f7423ab80d 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/haserl --shell=luac
 package.path  = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path
 package.cpath = "/usr/lib/lua/?.so;" .. package.cpath
+print("Content-Type: text/plain\n")
 require("ffluci.dispatcher").httpdispatch()
\ No newline at end of file
index ffa4cb84fa9ff1b3aa208cd64c63fb696a2c4bc1..0ca191be94791fc20ff4017414186e8d20dfcb48 100644 (file)
@@ -35,9 +35,9 @@ end
 
 -- Checks whether a file exists
 function isfile(filename)
-       local fp = io.open(path, "r")
-       if file then file:close() end
-       return file ~= nil
+       local fp = io.open(filename, "r")
+       if fp then fp:close() end
+       return fp ~= nil
 end    
 
 -- Returns the content of file