In this case, you would take information given by the user and DevUsername and DevPassword would be set to those values. DevPassword will then be turned to a SHA1 value. It will then check if the Username and SHA1 value matches any user in the database and if it does, DevLoggedIn is assigned a...
Wrote this for someone on ac-web and for a ticket reader I'm making for myself. Thought I'd share so maybe it would help someone else out. Just set the value of each string except for expire time and deliver time. That's taken care of by taking the datetime and converting it to a unix timestamp...