mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 04:04:12 +02:00
Merge revisions:
r8974, r8975, r8976, r8977, r8978, r8979 git-svn-id: file:///svn/phpbb/trunk@8980 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1035,11 +1035,11 @@ function compose_pm($id, $mode, $action)
|
||||
// Build custom bbcodes array
|
||||
display_custom_bbcodes();
|
||||
|
||||
// Show attachment box for adding attachments if true
|
||||
$allowed = ($auth->acl_get('u_pm_attach') && $config['allow_pm_attach'] && $form_enctype);
|
||||
|
||||
// Attachment entry
|
||||
if ($auth->acl_get('u_pm_attach') && $config['allow_pm_attach'] && $form_enctype)
|
||||
{
|
||||
posting_gen_attachment_entry($attachment_data, $filename_data);
|
||||
}
|
||||
posting_gen_attachment_entry($attachment_data, $filename_data, $allowed);
|
||||
|
||||
// Message History
|
||||
if ($action == 'reply' || $action == 'quote' || $action == 'forward')
|
||||
|
@@ -35,7 +35,7 @@ class ucp_remind
|
||||
|
||||
if ($submit)
|
||||
{
|
||||
$sql = 'SELECT user_id, username, user_email, user_jabber, user_notify_type, user_type, user_lang, user_inactive_reason
|
||||
$sql = 'SELECT user_id, username, user_permissions, user_email, user_jabber, user_notify_type, user_type, user_lang, user_inactive_reason
|
||||
FROM ' . USERS_TABLE . "
|
||||
WHERE user_email = '" . $db->sql_escape($email) . "'
|
||||
AND username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'";
|
||||
@@ -65,6 +65,15 @@ class ucp_remind
|
||||
}
|
||||
}
|
||||
|
||||
// Check users permissions
|
||||
$auth2 = new auth();
|
||||
$auth2->acl($user_row);
|
||||
|
||||
if (!$auth2->acl_get('u_chgpasswd'))
|
||||
{
|
||||
trigger_error('NO_AUTH_PASSWORD_REMINDER');
|
||||
}
|
||||
|
||||
$server_url = generate_board_url();
|
||||
|
||||
$key_len = 54 - strlen($server_url);
|
||||
|
Reference in New Issue
Block a user