Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local username = admin
- local pass = admin
- local logged, err, logoutURL
- if cgilua.authentication then
- logged, err = cgilua.authentication.check(admin, admin)
- username = cgilua.authentication.username() or ""
- logoutURL = cgilua.authentication.logoutURL("cows.html")
- else
- logged = false
- err = "Your are not ADMIN"
- username = ""
- end
- if logged and username then
- cgilua.redirect(cgilua.authentication.refURL("cows.html"))
- else
- err = err or ""
- cgilua.htmlheader()
- cgilua.lp.include ("index.lp", {
- logged = logged, errorMsg = err, username = username,
- cgilua = cgilua, logoutURL = logoutURL})
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement