#!/usr/bin/perl %DISABLED = ( # '1043' => 'y', '1026' => 'y', ); $website = "mydailydose.com"; # remember mydailydose is different ($user_id,$banner_id,$page) = split(/\&/,$ENV{QUERY_STRING}); if(($banner_id eq "")&&($user_id =~ /^\d+$/)) { $banner_id = $user_id; } # $redirect = 'http://www.myaffiliateprogram.com/u/' . $user_id . '/t.asp?id=' . $banner_id . '&p=' . $page; $redirect = 'http://www.' .$website . '/?b=' . $banner_id; # print "Content-type:text/html\n\n"; # print "Content-type: html/text\n\n"; if($DISABLED{$banner_id}) { $redirect = 'http://www.' . $website . '/disabled.html'; } print "Location: $redirect\n\n"; exit(0);