Skip to content

Runner Checkin

rubin110 edited this page Mar 1, 2012 · 2 revisions
  • Grab cid_code from url and clean it
  • Validate cid_code is populated
  • Validate cid_code exists
  • Grab cid from cid_code
  • If blank or invalid, redirect to root
  • Grab rid cookie
  • Grab rid and clean it
  • Validate rid is populated
  • Validate rid exists
  • If blank or invalid, error that something went wrong and link to registration page
  • Check rid hasn't already checked into that checkpoint
  • If so, skip checkin process, display the stats
  • Add record for checkin
  • populate time stamp for checkin on rid record for that checkpoint
  • Increase checkpoint_hits by +1
  • Grab checkpoint_hits and and populate rid record for that checkpoint
  • Check if rid player name is populated
  • If blank, redirect to registration for their rid
  • Display checkin stat for that checkpoint
Clone this wiki locally