diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2005-04-10 18:07:12 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-04-10 18:07:12 +0000 |
commit | 557d09bb72f7e9848b6fc50ed4e2ba651b89e743 (patch) | |
tree | 9db78285f2e35af8f70dfbb240712164b45bcfd2 /phpBB/report.php | |
parent | c9478353171267a3ebc5d87b43d759d22684b21e (diff) | |
download | forums-557d09bb72f7e9848b6fc50ed4e2ba651b89e743.tar forums-557d09bb72f7e9848b6fc50ed4e2ba651b89e743.tar.gz forums-557d09bb72f7e9848b6fc50ed4e2ba651b89e743.tar.bz2 forums-557d09bb72f7e9848b6fc50ed4e2ba651b89e743.tar.xz forums-557d09bb72f7e9848b6fc50ed4e2ba651b89e743.zip |
- added updated coding guidelines
- introduced is_registered and is_bot flags for correct determinition of guest/registered/bot users
- changed bot code to act on useragent || ip
git-svn-id: file:///svn/phpbb/trunk@5117 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/report.php')
-rw-r--r-- | phpBB/report.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/report.php b/phpBB/report.php index d97cf4c755..19317afc78 100644 --- a/phpBB/report.php +++ b/phpBB/report.php @@ -24,7 +24,7 @@ $user->setup('mcp'); $id = request_var('p', request_var('pm', 0)); $report_post = (request_var('p', 0)) ? true : false; $reason_id = request_var('reason_id', 0); -$user_notify = (!empty($_REQUEST['notify']) && $user->data['user_id'] != ANONYMOUS) ? true : false; +$user_notify = (!empty($_REQUEST['notify']) && $user->data['is_registered']) ? true : false; $report_text = request_var('report_text', ''); if (!$id) @@ -100,7 +100,7 @@ $result = $db->sql_query($sql); if ($row = $db->sql_fetchrow($result)) { - if ($user->data['user_id'] != ANONYMOUS) + if ($user->data['is_registered']) { // A report exists, extract $row if we're going to display the form if ($reason_id) @@ -295,7 +295,7 @@ $template->assign_vars(array( 'S_REPORT_ACTION' => "{$phpbb_root_path}report.$phpEx$SID&$u_report" . (($report_id) ? "&report_id=$report_id" : ''), 'S_NOTIFY' => (!empty($user_notify)) ? true : false, - 'S_CAN_NOTIFY' => ($user->data['user_id'] == ANONYMOUS) ? false : true, + 'S_CAN_NOTIFY' => ($user->data['is_registered']) ? true : false, 'S_REPORT_POST' => $report_post) ); |