I can sell you the entire affiliate system (pay-per-click). It is OS independent and features a lot of scripts(User panel/Admin panel/ registration etc).
It is fully functional and has ability to load customizable templates. I wrote it in PHP about a month ago, but the buyer failed to pay, so there will be no copyright problems.