From 9439a3f49a0c528782ed9e7d34aee4770e07bdc2 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Mon, 3 Oct 2005 15:44:41 +0000 Subject: blabla git-svn-id: file:///svn/phpbb/trunk@5250 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/report.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'phpBB/report.php') diff --git a/phpBB/report.php b/phpBB/report.php index c8441f6efa..3d53d06724 100644 --- a/phpBB/report.php +++ b/phpBB/report.php @@ -14,9 +14,10 @@ define('IN_PHPBB', true); $phpbb_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.'.$phpEx); +include($phpbb_root_path . 'includes/functions_display.'.$phpEx); // Start session management -$user->start(); +$user->session_begin(); $auth->acl($user->data); $user->setup('mcp'); @@ -380,8 +381,11 @@ function report_notification($notify_user, $report_post, $report_data) // do not put in reporters outbox submit_pm('post', $report_data['subject'], '', array(), array(), array( - 'address_list' => array('u' => array($user_id => 'to')), - 'icon_id' => 0, + 'address_list' => array('u' => array($user_id => 'to')), + 'from_user_id' => $user->data['user_id'], + 'from_user_ip' => $user->ip, + 'from_usernae' => $user->data['username'], + 'icon_id' => 0, 'enable_bbcode' => 0, 'enable_html' => 0, 'enable_smilies' => 0, @@ -392,7 +396,7 @@ function report_notification($notify_user, $report_post, $report_data) 'bbcode_uid' => 0, 'attachment_data' => array(), 'filename_data' => array(), - 'message' => $messenger->msg + 'message' => $messenger->msg ), true, false); } } -- cgit v1.2.1