Zeile 3 | Zeile 3 |
---|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html
| * Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html
|
*
|
*
|
* $Id: report.php 2165 2006-08-30 06:24:52Z chris $
| * $Id: report.php 3030 2007-04-26 00:19:47Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 31 | Zeile 31 |
---|
if(!$post['pid']) {
|
if(!$post['pid']) {
|
error($lang->error_invalidpost);
| $error = $lang->error_invalidpost; eval("\$report_error = \"".$templates->get("report_error")."\";"); output_page($report_error); exit;
|
}
$forum = get_forum($post['fid']); if(!$forum) {
|
}
$forum = get_forum($post['fid']); if(!$forum) {
|
error($lang->error_invalidforum);
| $error = $lang->error_invalidforum; eval("\$report_error = \"".$templates->get("report_error")."\";"); output_page($report_error); exit;
|
}
|
}
|
|
|
// Password protected forums ......... yhummmmy! check_forum_password($forum['fid'], $forum['password']);
| // Password protected forums ......... yhummmmy! check_forum_password($forum['fid'], $forum['password']);
|
Zeile 67 | Zeile 74 |
---|
$query = $db->query(" SELECT DISTINCT u.username, u.email, u.receivepms, u.uid FROM ".TABLE_PREFIX."moderators m, ".TABLE_PREFIX."users u
|
$query = $db->query(" SELECT DISTINCT u.username, u.email, u.receivepms, u.uid FROM ".TABLE_PREFIX."moderators m, ".TABLE_PREFIX."users u
|
WHERE u.uid=m.uid AND m.fid IN (".$forum[parentlist].")
| WHERE u.uid=m.uid AND m.fid IN (".$forum['parentlist'].")
|
"); $nummods = $db->num_rows($query); if(!$nummods)
| "); $nummods = $db->num_rows($query); if(!$nummods)
|
Zeile 83 | Zeile 90 |
---|
while($mod = $db->fetch_array($query)) { $emailsubject = sprintf($lang->emailsubject_reportpost, $mybb->settings['bbname']);
|
while($mod = $db->fetch_array($query)) { $emailsubject = sprintf($lang->emailsubject_reportpost, $mybb->settings['bbname']);
|
$emailmessage = sprintf($lang->email_reportpost, $mod['username'], $mybb->user['username'], $mybb->settings['bbname'], $post['subject'], $mybb->settings['bburl'], $thread['tid'], $pid, $thread['subject'], $mybb->input['reason']);
| $emailmessage = sprintf($lang->email_reportpost, $mod['username'], $mybb->user['username'], $mybb->settings['bbname'], $post['subject'], $mybb->settings['bburl'], $thread['tid'], $post['pid'], $thread['subject'], $mybb->input['reason']);
|
if($mybb->settings['reportmethod'] == "pms" && $mod['receivepms'] != "no" && $mybb->settings['enablepms'] != "no") {
| if($mybb->settings['reportmethod'] == "pms" && $mod['receivepms'] != "no" && $mybb->settings['enablepms'] != "no") {
|