mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-24 15:15:46 -07:00
r159
git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@159 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
7ebfc90092
commit
0749e0de82
2 changed files with 9 additions and 5 deletions
|
@ -144,10 +144,10 @@ if ($bb_cfg['show_latest_news'] AND $news_forum_ids = $bb_cfg['latest_news_forum
|
||||||
//
|
//
|
||||||
// Ads
|
// Ads
|
||||||
//
|
//
|
||||||
$ad_html = $ad_block_assignment = array();
|
|
||||||
|
|
||||||
if ($bb_cfg['show_ads'])
|
if ($bb_cfg['show_ads'])
|
||||||
{
|
{
|
||||||
|
$ad_html = $ad_block_assignment = array();
|
||||||
|
|
||||||
$active_ads = DB()->fetch_rowset("
|
$active_ads = DB()->fetch_rowset("
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM ". BB_ADS ."
|
FROM ". BB_ADS ."
|
||||||
|
@ -168,7 +168,6 @@ if ($bb_cfg['show_ads'])
|
||||||
|
|
||||||
$ad_html[$ad['ad_id']] = $ad['ad_html'];
|
$ad_html[$ad['ad_id']] = $ad['ad_html'];
|
||||||
}
|
}
|
||||||
|
$this->store('ads', $ad_html);
|
||||||
|
bb_update_config(array('active_ads' => serialize($ad_block_assignment)));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->store('ads', $ad_html);
|
|
||||||
bb_update_config(array('active_ads' => serialize($ad_block_assignment)));
|
|
||||||
|
|
|
@ -533,6 +533,11 @@ $html = new html_common();
|
||||||
$log_action = new log_action();
|
$log_action = new log_action();
|
||||||
$ads = new ads_common();
|
$ads = new ads_common();
|
||||||
|
|
||||||
|
// !!! Temporarily (??) 'cat_forums' always enqueued
|
||||||
|
$datastore->enqueue(array(
|
||||||
|
'cat_forums',
|
||||||
|
));
|
||||||
|
|
||||||
// Cron
|
// Cron
|
||||||
if ((empty($_POST) && !defined('IN_ADMIN') && !defined('IN_AJAX') && !defined('IN_SERVICE') && !file_exists(CRON_RUNNING) && ($bb_cfg['cron_enabled'] || defined('START_CRON'))) || defined('FORCE_CRON'))
|
if ((empty($_POST) && !defined('IN_ADMIN') && !defined('IN_AJAX') && !defined('IN_SERVICE') && !file_exists(CRON_RUNNING) && ($bb_cfg['cron_enabled'] || defined('START_CRON'))) || defined('FORCE_CRON'))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue