A simple refferal script written in PHP. Requires MySQL.