Zeile 933 | Zeile 933 |
---|
if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0) { continue;
|
if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0) { continue;
|
| }
if($thread['uid'] != $subscribedmember['uid'] && $forumpermissions['canonlyviewownthread'] == 1 && !is_moderator($thread['fid'], "", $subscribedmember['uid'])) { // User isn't a moderator or the author of the thread... continue;
|
} if($subscribedmember['language'] != '' && $lang->language_exists($subscribedmember['language']))
| } if($subscribedmember['language'] != '' && $lang->language_exists($subscribedmember['language']))
|
Zeile 1039 | Zeile 1045 |
---|
} if($this->method == "insert" || array_key_exists('prefix', $thread))
|
} if($this->method == "insert" || array_key_exists('prefix', $thread))
|
{
| {
|
$this->verify_prefix(); }
if($this->method == "insert" || array_key_exists('subject', $thread)) { $this->verify_subject();
|
$this->verify_prefix(); }
if($this->method == "insert" || array_key_exists('subject', $thread)) { $this->verify_subject();
|
}
| }
|
if($this->method == "insert" || array_key_exists('message', $thread)) { $this->verify_message(); $this->verify_image_count(); $this->verify_video_count();
|
if($this->method == "insert" || array_key_exists('message', $thread)) { $this->verify_message(); $this->verify_image_count(); $this->verify_video_count();
|
}
| }
|
if($this->method == "insert" || array_key_exists('dateline', $thread)) { $this->verify_dateline();
|
if($this->method == "insert" || array_key_exists('dateline', $thread)) { $this->verify_dateline();
|
}
| }
|
if($this->method == "insert" || array_key_exists('icon', $thread)) { $this->verify_post_icon(); }
if($this->method == "insert" || array_key_exists('options', $thread))
|
if($this->method == "insert" || array_key_exists('icon', $thread)) { $this->verify_post_icon(); }
if($this->method == "insert" || array_key_exists('options', $thread))
|
{
| {
|
$this->verify_options(); }
| $this->verify_options(); }
|
Zeile 1092 | Zeile 1098 |
---|
function insert_thread() { global $db, $mybb, $plugins, $cache, $lang;
|
function insert_thread() { global $db, $mybb, $plugins, $cache, $lang;
|
|
|
// Yes, validating is required. if(!$this->get_validated()) {
| // Yes, validating is required. if(!$this->get_validated()) {
|
Zeile 1195 | Zeile 1201 |
---|
"fid" => $thread['fid'], "subject" => $db->escape_string($thread['subject']), "prefix" => intval($thread['prefix']),
|
"fid" => $thread['fid'], "subject" => $db->escape_string($thread['subject']), "prefix" => intval($thread['prefix']),
|
"icon" => intval($thread['icon']), "uid" => $thread['uid'], "username" => $db->escape_string($thread['username']),
| "icon" => intval($thread['icon']), "uid" => $thread['uid'], "username" => $db->escape_string($thread['username']),
|
"dateline" => intval($thread['dateline']), "lastpost" => intval($thread['dateline']), "lastposter" => $db->escape_string($thread['username']),
| "dateline" => intval($thread['dateline']), "lastpost" => intval($thread['dateline']), "lastposter" => $db->escape_string($thread['username']),
|
Zeile 1303 | Zeile 1309 |
---|
{ // Yes this has a single quote within a double quote. It's not a bug. $update_query['lastpost'] = "'{$thread['dateline']}'";
|
{ // Yes this has a single quote within a double quote. It's not a bug. $update_query['lastpost'] = "'{$thread['dateline']}'";
|
}
| }
|
// Update the post count if this forum allows post counts to be tracked if($forum['usepostcounts'] != 0) {
| // Update the post count if this forum allows post counts to be tracked if($forum['usepostcounts'] != 0) {
|
Zeile 1314 | Zeile 1320 |
---|
if(!empty($update_query)) { $db->update_query("users", $update_query, "uid='{$thread['uid']}'", 1, true);
|
if(!empty($update_query)) { $db->update_query("users", $update_query, "uid='{$thread['uid']}'", 1, true);
|
} }
| } }
|
if(!$forum['lastpost']) { $forum['lastpost'] = 0; } $done_users = array();
|
if(!$forum['lastpost']) { $forum['lastpost'] = 0; } $done_users = array();
|
|
|
// Queue up any forum subscription notices to users who are subscribed to this forum. $excerpt = my_substr($thread['message'], 0, $mybb->settings['subscribeexcerpt']).$lang->emailbit_viewthread;
| // Queue up any forum subscription notices to users who are subscribed to this forum. $excerpt = my_substr($thread['message'], 0, $mybb->settings['subscribeexcerpt']).$lang->emailbit_viewthread;
|
Zeile 1355 | Zeile 1361 |
---|
{ continue; }
|
{ continue; }
|
| if(!is_moderator($thread['fid'], "", $subscribedmember['uid']) && $forumpermissions['canonlyviewownthreads'] == 1) { // In a 'view own only' forum and not a moderator continue; }
|
// Determine the language pack we'll be using to send this email in and load it if it isn't already. if($subscribedmember['language'] != '' && $lang->language_exists($subscribedmember['language'])) {
| // Determine the language pack we'll be using to send this email in and load it if it isn't already. if($subscribedmember['language'] != '' && $lang->language_exists($subscribedmember['language'])) {
|