Old ads module removal.

This commit is contained in:
Yuriy Pikhtarev 2017-05-27 13:12:07 +03:00
commit 46127baf3f
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
11 changed files with 49 additions and 270 deletions

View file

@ -129,7 +129,6 @@ $template->assign_vars(array(
$bb_cfg['lang'][$userdata['user_lang']]['encoding'] : 'utf-8',
'IN_ADMIN' => defined('IN_ADMIN'),
'SHOW_ADS' => (!$logged_in || isset($bb_cfg['show_ads_users'][$user->id]) || (!IS_AM && $user->show_ads)),
'USER_HIDE_CAT' => (BB_SCRIPT == 'index'),
'USER_LANG' => $userdata['user_lang'],
@ -253,17 +252,6 @@ if (!empty($page_cfg['show_torhelp'][BB_SCRIPT]) && !empty($userdata['torhelp'])
}
}
// Ads
if ($user->show_ads) {
$load_ads = array('trans');
if (defined('BB_SCRIPT')) {
$load_ads[] = BB_SCRIPT;
}
foreach ($ads->get($load_ads) as $block_id => $ad_html) {
$template->assign_var("AD_BLOCK_{$block_id}", $ad_html);
}
}
// Login box
$in_out = ($logged_in) ? 'in' : 'out';
$template->assign_block_vars("switch_user_logged_{$in_out}", array());