function displayBottomAds() { global $wgUser, $wgOut; if ($wgUser->getID() == 0) { $sk = $wgUser->getSkin(); $channels = wikihowAds::getCustomGoogleChannels('imagead2', false); $embed_ads = wfMsg('imagead2', $channels[0], $channels[1]); $embed_ads = preg_replace('/\\<[\\/]?pre\\>/', '', $embed_ads); $wgOut->addHTML($embed_ads); } }