local email function _init() print(fs.post("login.php", "status").."\n") print("Please enter same e-mail address twice to log in:") end function _step(t) line = readln() if line then if line == email then if email == "" then print("Login aborted..") return sys.exit() else print() print(fs.post("login.php", "email="..email, "application/x-www-form-urlencoded")) return sys.exit() end else email = line end end end local _line = "" function readln() local line _line = _line .. sys.read() if string.sub(_line, -1) == "\n" then line = string.sub(_line, 1, -2) _line = "" end return line end