#!/usr/bin/perl %DISABLED = ( '1123' => 'y', '1124' => 'y', ); ($user_id,$banner_id,$page) = split(/\&/,$ENV{QUERY_STRING}); $redirect = 'http://www.myaffiliateprogram.com/u/' . $user_id . '/t.asp?id=' . $banner_id . '&p=' . $page; $redirect = 'http://www.excellnow.com/?b=' . $banner_id; # print "Content-type:text/html\n\n"; # print "Content-type: html/text\n\n"; if($DISABLED{$banner_id}) { $redirect = 'http://www.excellnow.com/disabled.html'; } print "Location: $redirect\n\n"; exit(0);