Line 159 | Line 159 |
---|
phpbb_timezone_select($template, $user, $data['tz'], true);
// check if there are any user-selectable languages
|
phpbb_timezone_select($template, $user, $data['tz'], true);
// check if there are any user-selectable languages
|
$sql = 'SELECT COUNT(lang_id) as languages_count FROM ' . LANG_TABLE;
| $sql = 'SELECT lang_iso, lang_local_name FROM ' . LANG_TABLE . ' ORDER BY lang_english_name';
|
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
if ($db->sql_fetchfield('languages_count') > 1) { $s_more_languages = true; } else { $s_more_languages = false; }
| $lang_row = (array) $db->sql_fetchrowset($result);
|
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
| $s_more_languages = count($lang_row) > 1;
|
// check if there are any user-selectable styles
|
// check if there are any user-selectable styles
|
$sql = 'SELECT COUNT(style_id) as styles_count
| $sql = 'SELECT style_id, style_name
|
FROM ' . STYLES_TABLE . '
|
FROM ' . STYLES_TABLE . '
|
WHERE style_active = 1';
| WHERE style_active = 1 ORDER BY style_name';
|
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
if ($db->sql_fetchfield('styles_count') > 1) { $s_more_styles = true; } else { $s_more_styles = false; }
| $styles_row = (array) $db->sql_fetchrowset($result);
|
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
| $s_more_styles = count($styles_row) > 1;
|
$template->assign_vars(array( 'ERROR' => (count($error)) ? implode('<br />', $error) : '',
| $template->assign_vars(array( 'ERROR' => (count($error)) ? implode('<br />', $error) : '',
|
Line 205 | Line 195 |
---|
'DEFAULT_DATEFORMAT' => $config['default_dateformat'], 'A_DEFAULT_DATEFORMAT' => addslashes($config['default_dateformat']),
|
'DEFAULT_DATEFORMAT' => $config['default_dateformat'], 'A_DEFAULT_DATEFORMAT' => addslashes($config['default_dateformat']),
|
'S_MORE_LANGUAGES' => $s_more_languages,
| 'S_MORE_LANGUAGES' => $s_more_languages,
|
'S_MORE_STYLES' => $s_more_styles,
|
'S_MORE_STYLES' => $s_more_styles,
|
'S_LANG_OPTIONS' => language_select($data['lang']), 'S_STYLE_OPTIONS' => ($config['override_user_style']) ? '' : style_select($data['user_style']),
| 'S_LANG_OPTIONS' => language_select($data['lang'], $lang_row), 'S_STYLE_OPTIONS' => ($config['override_user_style']) ? '' : style_select($data['user_style'], false, $styles_row),
|
'S_CAN_HIDE_ONLINE' => ($auth->acl_get('u_hideonline')) ? true : false, 'S_SELECT_NOTIFY' => ($config['jab_enable'] && $user->data['user_jabber'] && @extension_loaded('xml')) ? true : false) );
| 'S_CAN_HIDE_ONLINE' => ($auth->acl_get('u_hideonline')) ? true : false, 'S_SELECT_NOTIFY' => ($config['jab_enable'] && $user->data['user_jabber'] && @extension_loaded('xml')) ? true : false) );
|
Line 498 | Line 488 |
---|
}
$template->assign_vars(array(
|
}
$template->assign_vars(array(
|
| 'S_SIG_ALLOWED' => $config['allow_sig'] && $auth->acl_get('u_sig'),
|
'S_BBCODE' => $data['bbcode'], 'S_SMILIES' => $data['smilies'], 'S_SIG' => $data['sig'],
| 'S_BBCODE' => $data['bbcode'], 'S_SMILIES' => $data['smilies'], 'S_SIG' => $data['sig'],
|