phpBB

Code Changes

File: includes/ucp/ucp_pm_compose.php

  Unmodified   Added   Modified   Removed
Line 271Line 271
			// Passworded forum?
if ($post['forum_id'])
{

			// Passworded forum?
if ($post['forum_id'])
{

				$sql = 'SELECT forum_password

				$sql = 'SELECT forum_id, forum_name, forum_password

					FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . (int) $post['forum_id'];
$result = $db->sql_query($sql);

					FROM ' . FORUMS_TABLE . '
WHERE forum_id = ' . (int) $post['forum_id'];
$result = $db->sql_query($sql);

				$forum_password = (string) $db->sql_fetchfield('forum_password');

				$forum_data = $db->sql_fetchrow($result);

				$db->sql_freeresult($result);


				$db->sql_freeresult($result);


				if ($forum_password)

				if (!empty($forum_data['forum_password']))

				{

				{

					login_forum_box(array(
'forum_id' => $post['forum_id'],
'forum_password' => $forum_password,
));

					login_forum_box($forum_data);




				}
}
}

				}
}
}

Line 359Line 356
		$message_attachment = 0;
$message_text = $message_subject = '';


		$message_attachment = 0;
$message_text = $message_subject = '';


		if ($to_user_id && $action == 'post')

		if ($to_user_id && $to_user_id != ANONYMOUS && $action == 'post')

		{
$address_list['u'][$to_user_id] = 'to';
}

		{
$address_list['u'][$to_user_id] = 'to';
}

Line 755Line 752
			$return_box_lang = ($action === 'post' || $action === 'edit') ? 'PM_OUTBOX' : 'PM_INBOX';



			$return_box_lang = ($action === 'post' || $action === 'edit') ? 'PM_OUTBOX' : 'PM_INBOX';



			$message = $user->lang['MESSAGE_STORED'] . '<br /><br />' . sprintf($user->lang['VIEW_PRIVATE_MESSAGE'], '<a href="' . $return_message_url . '">', '</a>');


			$save_message = ($action === 'edit') ? $user->lang['MESSAGE_EDITED'] : $user->lang['MESSAGE_STORED'];
$message = $save_message . '<br /><br />' . $user->lang('VIEW_PRIVATE_MESSAGE', '<a href="' . $return_message_url . '">', '</a>');


$last_click_type = 'CLICK_RETURN_FOLDER';
if ($folder_url)


$last_click_type = 'CLICK_RETURN_FOLDER';
if ($folder_url)