mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Minor fixes (#94)
This commit is contained in:
parent
04f9aa82c3
commit
accc87da38
@ -10,35 +10,39 @@ $html = '';
|
||||
switch($mode)
|
||||
{
|
||||
case 'birthday_week':
|
||||
$stats = $datastore->get('stats');
|
||||
$datastore->enqueue(array(
|
||||
'stats',
|
||||
));
|
||||
|
||||
$users = array();
|
||||
$stats = $datastore->get('stats');
|
||||
|
||||
if ($stats['birthday_week_list'])
|
||||
{
|
||||
foreach($stats['birthday_week_list'] as $week)
|
||||
{
|
||||
$html[] = profile_url($week) .' <span class="small">('. birthday_age(date('Y-m-d', strtotime('-1 year', strtotime($week['user_birthday'])))) .')</span>';
|
||||
$users[] = profile_url($week) .' <span class="small">('. birthday_age(date('Y-m-d', strtotime('-1 year', strtotime($week['user_birthday'])))) .')</span>';
|
||||
}
|
||||
$html = sprintf($lang['BIRTHDAY_WEEK'], $bb_cfg['birthday_check_day'], join(', ', $html));
|
||||
$html = sprintf($lang['BIRTHDAY_WEEK'], $bb_cfg['birthday_check_day'], join(', ', $users));
|
||||
}
|
||||
else $html = sprintf($lang['NOBIRTHDAY_WEEK'], $bb_cfg['birthday_check_day']);
|
||||
break;
|
||||
|
||||
case 'birthday_today':
|
||||
$stats = $datastore->get('stats');
|
||||
$datastore->enqueue(array(
|
||||
'stats',
|
||||
));
|
||||
|
||||
$users = array();
|
||||
$stats = $datastore->get('stats');
|
||||
|
||||
if ($stats['birthday_today_list'])
|
||||
{
|
||||
foreach($stats['birthday_today_list'] as $today)
|
||||
{
|
||||
$html[] = profile_url($today) .' <span class="small">('. birthday_age($today['user_birthday']) .')</span>';
|
||||
$users[] = profile_url($today) .' <span class="small">('. birthday_age($today['user_birthday']) .')</span>';
|
||||
}
|
||||
$html = $lang['BIRTHDAY_TODAY'] . join(', ', $html);
|
||||
$html = $lang['BIRTHDAY_TODAY'] . join(', ', $users);
|
||||
}
|
||||
else $html = $lang['NOBIRTHDAY_TODAY'];
|
||||
break;
|
||||
|
@ -72,9 +72,9 @@ $domain_name = 'torrentpier.com'; // enter here your primary domain name of your
|
||||
$domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $domain_name;
|
||||
|
||||
// Version info
|
||||
$bb_cfg['tp_version'] = '2.1.5';
|
||||
$bb_cfg['tp_release_date'] = '06-12-2014';
|
||||
$bb_cfg['tp_release_state'] = 'ALPHA';
|
||||
$bb_cfg['tp_version'] = '2.1.5-2023.03';
|
||||
$bb_cfg['tp_release_date'] = '04-04-2023';
|
||||
$bb_cfg['tp_release_state'] = 'LTS';
|
||||
$bb_cfg['tp_zf_version'] = '2.3.3';
|
||||
|
||||
// Database
|
||||
@ -84,7 +84,7 @@ $pconnect = false;
|
||||
// Настройка баз данных ['db']['srv_name'] => (array) srv_cfg;
|
||||
// порядок параметров srv_cfg (хост, название базы, пользователь, пароль, charset, pconnect);
|
||||
$bb_cfg['db'] = array(
|
||||
'db1' => array('localhost', 'tp_215', 'user', 'pass', $charset, $pconnect),
|
||||
'db1' => array('localhost', 'tp_215_lts', 'user', 'pass', $charset, $pconnect),
|
||||
//'db2' => array('localhost2', 'dbase2', 'user2', 'pass2', $charset, $pconnect),
|
||||
//'db3' => array('localhost3', 'dbase3', 'user2', 'pass3', $charset, $pconnect),
|
||||
);
|
||||
|
@ -85,6 +85,7 @@ class CACHES
|
||||
$this->ref[$cache_name] =& $this->obj[$cache_name];
|
||||
break;
|
||||
|
||||
case 'filecache':
|
||||
default: //filecache
|
||||
if (!isset($this->obj[$cache_name]))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user