This CGI is designed for use with ad banners. In order for you to properly calculate compensation for banners, you need to know who is clicking through them.
To install, you need to create a file that is world-writable so that all of the click-throughs can be logged. For example, if you want it to be named logfile.log, type touch logfile.log and then chmod a w logfile.log.
Every time you go to the URL of the CGI, it will redirect you to the location specified in the $redirect variable and log your hit in the $logfile.