header('Location:' . Params::getParam('baAdvertRedirect'));
header('Location:' . urldecode(Params::getParam('baAdvertRedirect')));
// ADVERT REDIRECTif(Params::getParam('baAdvertRedirect') <> '' && Params::getParam('baAdvertId') <> '' && Params::getParam('baAdvertId') > 0) { if(!osc_is_admin_user_logged_in()) { ModelBA::newInstance()->updateClicks(Params::getParam('baAdvertId')); } header('Location:' . Params::getParam('baAdvertRedirect'));}
// ADVERT REDIRECTfunction ba_banner_redirect() {if(Params::getParam('baAdvertRedirect') <> '' && Params::getParam('baAdvertId') <> '' && Params::getParam('baAdvertId') > 0) { if(!osc_is_admin_user_logged_in()) { ModelBA::newInstance()->updateClicks(Params::getParam('baAdvertId')); } header('Location:' . Params::getParam('baAdvertRedirect'));}}osc_add_hook('init', 'ba_banner_redirect');