setExtraData($data1); // check if this affiliate and banner exist // IMPORTANT! we have to check for affiliate first if(!$bannerViewer->checkUserExists($affiliateID)) { $errorMsg = "Show banner: Affiliate with ID '$affiliateID' doesn't exist"; LogError($errorMsg, __FILE__, __LINE__); return; } if(!$bannerViewer->checkBannerExists($bannerID)) { $errorMsg = "Show banner: Banner with ID '$bannerID' doesn't exist"; LogError($errorMsg, __FILE__, __LINE__); return; } // redirect to destination page $bannerViewer->redirect(); ?>