diff --git a/upload/ajax/view_profile.php b/upload/ajax/view_profile.php index a25d0b41c..2c6cda510 100644 --- a/upload/ajax/view_profile.php +++ b/upload/ajax/view_profile.php @@ -12,7 +12,7 @@ switch ($mode) $user_id = (int) $this->request['user_id']; if(!$user_id) $this->ajax_die($lang['NO_USER_ID_SPECIFIED']); $user_info = get_userdata($user_id); - if(bf($user_info['user_opt'], 'user_opt', 'allow_dls') && !IS_AM && $user_id != $userdata['user_id']) $this->ajax_die($lang['CUR_ACTIVE_DLS_DISALLOWED']); + if(!bf($user_info['user_opt'], 'user_opt', 'allow_dls') && !IS_AM && $user_id != $userdata['user_id']) $this->ajax_die($lang['CUR_ACTIVE_DLS_DISALLOWED']); $excluded_forums_csv = $user->get_excluded_forums(AUTH_VIEW); $not_auth_forums_sql = ($excluded_forums_csv) ? " diff --git a/upload/includes/functions_selects.php b/upload/includes/functions_selects.php index e1e03e40f..6e1e5ee8e 100644 --- a/upload/includes/functions_selects.php +++ b/upload/includes/functions_selects.php @@ -92,12 +92,14 @@ function templates_select($default_style, $select_name = 'tpl_name') global $bb_cfg; $templates_select = ' '; - return $templates_select; + return ($x > 1) ? $templates_select : ''; } \ No newline at end of file diff --git a/upload/includes/ucp/usercp_viewprofile.php b/upload/includes/ucp/usercp_viewprofile.php index ec79fdf64..8c3d72a87 100644 --- a/upload/includes/ucp/usercp_viewprofile.php +++ b/upload/includes/ucp/usercp_viewprofile.php @@ -123,7 +123,7 @@ $template->assign_vars(array( 'ICQ' => $profiledata['user_icq'], 'LAST_VISIT_TIME' => ($profiledata['user_lastvisit']) ? (bf($profiledata['user_opt'], 'user_opt', 'allow_viewonline') && !IS_ADMIN) ? $lang['HIDDEN_USER'] : bb_date($profiledata['user_lastvisit'], 'Y-m-d H:i', 'false') : $lang['NEVER'], 'LAST_ACTIVITY_TIME' => ($profiledata['user_session_time']) ? (bf($profiledata['user_opt'], 'user_opt', 'allow_viewonline') && !IS_ADMIN) ? $lang['HIDDEN_USER'] : bb_date($profiledata['user_session_time'], 'Y-m-d H:i', 'false') : $lang['NEVER'], - 'ALLOW_DLS' => (!bf($profiledata['user_opt'], 'user_opt', 'allow_dls') || (IS_AM || $profile_user_id)), + 'ALLOW_DLS' => bf($profiledata['user_opt'], 'user_opt', 'allow_dls'), 'LOCATION' => $profiledata['user_from'], 'USER_ACTIVE' => $profiledata['user_active'], diff --git a/upload/templates/default/usercp_register.tpl b/upload/templates/default/usercp_register.tpl index e1aade043..ea6fb1a2d 100644 --- a/upload/templates/default/usercp_register.tpl +++ b/upload/templates/default/usercp_register.tpl @@ -140,6 +140,7 @@ document.write('');