"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/inc/datahandlers/post.php" between
mybb_1822.zip and mybb_1823.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

post.php  (mybb_1822):post.php  (mybb_1823)
skipping to change at line 1249 skipping to change at line 1249
if(!$post['uid'] && !$post['username']) if(!$post['uid'] && !$post['username'])
{ {
$post['username'] = $langcache[$u selang]['guest']; $post['username'] = $langcache[$u selang]['guest'];
} }
} }
if($subscribedmember['notification'] == 1) if($subscribedmember['notification'] == 1)
{ {
$emailsubject = $lang->sprintf($emailsubj ect, $subject); $emailsubject = $lang->sprintf($emailsubj ect, $subject);
$post_code = md5($subscribedmember['login $emailmessage = $lang->sprintf($emailmess
key'].$subscribedmember['salt'].$subscribedmember['regdate']); age, $subscribedmember['username'], $post['username'], $mybb->settings['bbname']
$emailmessage = $lang->sprintf($emailmess , $subject, $excerpt, $mybb->settings['bburl'], str_replace("&", "&", get_th
age, $subscribedmember['username'], $post['username'], $mybb->settings['bbname'] read_link($thread['tid'], 0, "newpost")), $thread['tid']);
, $subject, $excerpt, $mybb->settings['bburl'], str_replace("&", "&", get_th
read_link($thread['tid'], 0, "newpost")), $thread['tid'], $post_code);
$new_email = array( $new_email = array(
"mailto" => $db->escape_string($s ubscribedmember['email']), "mailto" => $db->escape_string($s ubscribedmember['email']),
"mailfrom" => '', "mailfrom" => '',
"subject" => $db->escape_string($ emailsubject), "subject" => $db->escape_string($ emailsubject),
"message" => $db->escape_string($ emailmessage), "message" => $db->escape_string($ emailmessage),
"headers" => '' "headers" => ''
); );
$db->insert_query("mailqueue", $new_email ); $db->insert_query("mailqueue", $new_email );
unset($userlang); unset($userlang);
$queued_email = 1; $queued_email = 1;
} }
elseif($subscribedmember['notification'] == 2) elseif($subscribedmember['notification'] == 2)
{ {
$post_code = md5($subscribedmember['login key'].$subscribedmember['salt'].$subscribedmember['regdate']);
$pm = array( $pm = array(
'subject' => array('pmsubject_sub scription', $subject), 'subject' => array('pmsubject_sub scription', $subject),
'message' => array('pm_subscripti on', $subscribedmember['username'], $post['username'], $subject, $excerpt, $mybb ->settings['bburl'], str_replace("&", "&", get_thread_link($thread['tid'], 0 , "newpost")), $thread['tid'], $post_code), 'message' => array('pm_subscripti on', $subscribedmember['username'], $post['username'], $subject, $excerpt, $mybb ->settings['bburl'], str_replace("&", "&", get_thread_link($thread['tid'], 0 , "newpost")), $thread['tid']),
'touid' => $subscribedmember['uid '], 'touid' => $subscribedmember['uid '],
'language' => $subscribedmember[' language'], 'language' => $subscribedmember[' language'],
'language_file' => 'messages' 'language_file' => 'messages'
); );
send_pm($pm, -1, true); send_pm($pm, -1, true);
} }
} }
$plugins->run_hooks('datahandler_post_insert_subscribed', $args); $plugins->run_hooks('datahandler_post_insert_subscribed', $args);
skipping to change at line 1741 skipping to change at line 1739
$emailmessage = $langcache[$usela ng]['email_forumsubscription']; $emailmessage = $langcache[$usela ng]['email_forumsubscription'];
// If the poster is unregistered and hasn't set a username, call them Guest // If the poster is unregistered and hasn't set a username, call them Guest
if(!$thread['uid'] && !$thread['u sername']) if(!$thread['uid'] && !$thread['u sername'])
{ {
$thread['username'] = $la ngcache[$uselang]['guest']; $thread['username'] = $la ngcache[$uselang]['guest'];
} }
} }
$emailsubject = $lang->sprintf($emailsubj ect, $forum['name']); $emailsubject = $lang->sprintf($emailsubj ect, $forum['name']);
$post_code = md5($subscribedmember['login $emailmessage = $lang->sprintf($emailmess
key'].$subscribedmember['salt'].$subscribedmember['regdate']); age, $subscribedmember['username'], $thread['username'], $forum['name'], $mybb->
$emailmessage = $lang->sprintf($emailmess settings['bbname'], $thread['subject'], $excerpt, $mybb->settings['bburl'], get_
age, $subscribedmember['username'], $thread['username'], $forum['name'], $mybb-> thread_link($this->tid), $thread['fid']);
settings['bbname'], $thread['subject'], $excerpt, $mybb->settings['bburl'], get_
thread_link($this->tid), $thread['fid'], $post_code);
$new_email = array( $new_email = array(
"mailto" => $db->escape_string($s ubscribedmember['email']), "mailto" => $db->escape_string($s ubscribedmember['email']),
"mailfrom" => '', "mailfrom" => '',
"subject" => $db->escape_string($ emailsubject), "subject" => $db->escape_string($ emailsubject),
"message" => $db->escape_string($ emailmessage), "message" => $db->escape_string($ emailmessage),
"headers" => '' "headers" => ''
); );
$db->insert_query("mailqueue", $new_email ); $db->insert_query("mailqueue", $new_email );
unset($userlang); unset($userlang);
$queued_email = 1; $queued_email = 1;
 End of changes. 4 change blocks. 
14 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)