Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html *
|
* $Id: report.php 3030 2007-04-26 00:19:47Z Tikitiki $
| * $Id: report.php 3501 2007-11-21 00:42:05Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 48 | Zeile 48 |
---|
}
// Password protected forums ......... yhummmmy!
|
}
// Password protected forums ......... yhummmmy!
|
check_forum_password($forum['fid'], $forum['password']);
| check_forum_password($forum['parentlist']);
|
$thread = get_thread($post['tid']);
| $thread = get_thread($post['tid']);
|
Zeile 69 | Zeile 69 |
---|
output_page($report); exit; }
|
output_page($report); exit; }
|
if($mybb->settings['reportmethod'] == "email" || $mybb->settings['reportmethod'] == "pm")
| if($mybb->settings['reportmethod'] == "email" || $mybb->settings['reportmethod'] == "pms")
|
{ $query = $db->query(" SELECT DISTINCT u.username, u.email, u.receivepms, u.uid
| { $query = $db->query(" SELECT DISTINCT u.username, u.email, u.receivepms, u.uid
|
Zeile 81 | Zeile 81 |
---|
{ unset($query); $query = $db->query("
|
{ unset($query); $query = $db->query("
|
SELECT u.username, u.email, u.receivepms, u.uid
| SELECT u.username, u.email, u.receivepms, u.pmpopup, u.uid, u.newpms, u.unreadpms, u.totalpms
|
FROM ".TABLE_PREFIX."users u
|
FROM ".TABLE_PREFIX."users u
|
LEFT JOIN ".TABLE_PREFIX."usergroups g ON (g.gid=u.usergroup)
| LEFT JOIN ".TABLE_PREFIX."usergroups g ON (((CONCAT(',', u.additionalgroups, ',') LIKE CONCAT('%,', g.gid, ',%')) OR u.usergroup = g.gid))
|
WHERE (g.cancp='yes' OR g.issupermod='yes') "); }
| WHERE (g.cancp='yes' OR g.issupermod='yes') "); }
|
Zeile 97 | Zeile 97 |
---|
$reportpm = array( "uid" => $mod['uid'], "toid" => $mod['uid'],
|
$reportpm = array( "uid" => $mod['uid'], "toid" => $mod['uid'],
|
"fromid" => -2,
| "fromid" => 0,
|
"folder" => 1, "subject" => $db->escape_string($emailsubject), "message" => $db->escape_string($emailmessage),
| "folder" => 1, "subject" => $db->escape_string($emailsubject), "message" => $db->escape_string($emailmessage),
|
Zeile 106 | Zeile 106 |
---|
"readtime" => 0 ); $db->insert_query(TABLE_PREFIX."privatemessages", $reportpm);
|
"readtime" => 0 ); $db->insert_query(TABLE_PREFIX."privatemessages", $reportpm);
|
$db->update_query(TABLE_PREFIX."users", array('pmpopup' => 'new'), "uid='{$mod['uid']}'");
| $updated_user = array( "newpms" => $mod['newpms']+1, "unreadpms" => $mod['unreadpms']+1, "totalpms" => $mod['totalpms']+1 ); if($mod['pmpopup'] == "yes") { $updated_user['pmpopup'] = "new"; } $db->update_query(TABLE_PREFIX."users", $updated_user, "uid='{$mod['uid']}'");
|
} else {
| } else {
|