{% local worked = false if verified and request.querystring.csrf and DB.csrfverify(verified.id, Escapes.urlunescape(request.querystring.csrf)) and request.querystring.z and DB.isemailvalid(Escapes.urlunescape(request.querystring.z)) then local em = Escapes.urlspunescape(request.querystring.z) local u = DB.getuserbyemail(em) -- When done this way, a member can't tell if another is already registered. worked = true if not u and ( (BigGlobe.cfg.membexcl == BigGlobe.MEMBEXCL_MEMBERS_INVITE and verified.privs >= DB.USER_PRIVS_APPROVED) or (BigGlobe.cfg.membexcl == BigGlobe.MEMBEXCL_MODS_INVITE and verified.privs >= DB.USER_PRIVS_MOD) or (BigGlobe.cfg.membexcl == BigGlobe.MEMBEXCL_ADMIN_INVITES and verified.privs >= DB.USER_PRIVS_ADMIN)) then -- Invitation SMTPAuth.sendregisterinfo(em) end end title = BigGlobe.cfg.sitename .. " - Invitation" %} {% function content() %} {% if worked then %}
Invite sent.
{% elseif verified then %} {% end %} {% end %} {# base.inc