mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Fix some bugs with MySQL strict mode
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
b02fe1dcc5
commit
5429a3bcb8
8 changed files with 34 additions and 16 deletions
|
@ -21,9 +21,9 @@ $bb_cfg = [];
|
|||
$bb_cfg['js_ver'] = $bb_cfg['css_ver'] = 1;
|
||||
|
||||
// Version info
|
||||
$bb_cfg['tp_version'] = '2.2.3';
|
||||
$bb_cfg['tp_release_date'] = '07-08-2017';
|
||||
$bb_cfg['tp_release_codename'] = 'Aurochs';
|
||||
$bb_cfg['tp_version'] = '2.3.0';
|
||||
$bb_cfg['tp_release_date'] = '26-06-2018';
|
||||
$bb_cfg['tp_release_codename'] = 'Bison';
|
||||
|
||||
// Database
|
||||
// Настройка баз данных ['db']['srv_name'] => (array) srv_cfg;
|
||||
|
|
|
@ -59,7 +59,7 @@ if ($bb_cfg['birthday_check_day'] && $bb_cfg['birthday_enabled']) {
|
|||
$sql = DB()->fetch_rowset("SELECT user_id, username, user_rank , user_birthday
|
||||
FROM " . BB_USERS . "
|
||||
WHERE user_id NOT IN(" . EXCLUDED_USERS . ")
|
||||
AND user_birthday != '0000-00-00'
|
||||
AND user_birthday != '1900-01-01'
|
||||
AND user_birthday IS NOT NULL
|
||||
AND user_active = 1
|
||||
ORDER BY user_level DESC, username
|
||||
|
|
|
@ -98,8 +98,8 @@ $template->assign_vars(array(
|
|||
'TWITTER' => $profiledata['user_twitter'],
|
||||
'USER_POINTS' => $profiledata['user_points'],
|
||||
'GENDER' => ($bb_cfg['gender']) ? $lang['GENDER_SELECT'][$profiledata['user_gender']] : '',
|
||||
'BIRTHDAY' => ($bb_cfg['birthday_enabled'] && !empty($profiledata['user_birthday']) && $profiledata['user_birthday'] != '0000-00-00') ? $profiledata['user_birthday'] : '',
|
||||
'AGE' => ($bb_cfg['birthday_enabled'] && !empty($profiledata['user_birthday']) && $profiledata['user_birthday'] != '0000-00-00') ? birthday_age($profiledata['user_birthday']) : '',
|
||||
'BIRTHDAY' => ($bb_cfg['birthday_enabled'] && !empty($profiledata['user_birthday']) && $profiledata['user_birthday'] != '1900-01-01') ? $profiledata['user_birthday'] : '',
|
||||
'AGE' => ($bb_cfg['birthday_enabled'] && !empty($profiledata['user_birthday']) && $profiledata['user_birthday'] != '1900-01-01') ? birthday_age($profiledata['user_birthday']) : '',
|
||||
|
||||
'L_VIEWING_PROFILE' => sprintf($lang['VIEWING_USER_PROFILE'], $profiledata['username']),
|
||||
'L_MY_PROFILE' => sprintf($lang['VIEWING_MY_PROFILE'], 'profile.php?mode=editprofile'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue