Code: Select all
// If the user is replying or posting and not already watching this topic but set to always being notified we need to overwrite this setting
$notify_set = ($mode != 'edit' && $config['allow_topic_notify'] && $user->data['is_registered'] && !$post_data['notify_set']) ? $user->data['user_notify'] : $post_data['notify_set'];
$notify_checked = (isset($notify)) ? $notify : (($mode == 'post') ? $user->data['user_notify'] : $notify_set);
Code: Select all
AND w.notify_status = 0
Code: Select all
AND fw.notify_status = 0
Code: Select all
// Send Notifications
if ($mode != 'edit' && $mode != 'delete' && ($auth->acl_get('f_noapprove', $data['forum_id']) || auth->acl_get('m_approve', $data['forum_id'])))
{
user_notification($mode, $subject, $data['topic_title'], $data['forum_name'], $data['forum_id'], data['topic_id'], $data['post_id']);
}
Code: Select all
../../../../forum/
Code: Select all
// set variables for later use
$board_url = generate_board_url();
if (substr($board_url, -1) != "/") $board_url .= "/";
$forum_url = $board_url . "viewforum.php?f=$data[forum_id]";
$thread_url = $board_url . "viewtopic.php?f=$data[forum_id]&t=$data[topic_id]";
$post_url = $board_url . "viewtopic.php?f=$data[forum_id]&t=$data[topic_id]&p=$data[post_id]#p$data[post_id]";
$u_profile_url = $board_url . "memberlist.php?mode=viewprofile&u=$post_data[poster_id]";
$e_profile_url = $board_url . "memberlist.php?mode=viewprofile&u=$post_data[post_edit_user]";
$reply_url = $board_url . "posting.php?mode=reply&f=$data[forum_id]&t=$data[topic_id]";
$edit_url = $board_url . "posting.php?mode=edit&f=$data[forum_id]&p=$data[post_id]";
$quote_url = $board_url . "posting.php?mode=quote&f=$data[forum_id]&p=$data[post_id]";
$delete_url = $board_url . "posting.php?mode=delete&f=$data[forum_id]&p=$data[post_id]";
$info_url = $board_url . "mcp.php?i=main&mode=post_details&f=$data[forum_id]&p=$data[post_id]";
$pm_url = $board_url . "ucp.php?i=pm&mode=compose&action=quotepost&p=$data[post_id]";
$email_url = $board_url . "memberlist.php?mode=email&u=$post_data[poster_id]";
Code: Select all
$board_url = "http://www.iam.me/";
Code: Select all
was -- $redirect_url = submit_post($mode, $post_data['post_subject'], $post_data['username'], $post_data['topic_type'], $poll, $data, $update_message);
is-- $redirect_url = submit_post($mode, $post_data['post_subject'], $post_data['username'], $post_data['topic_type'], $poll, $data, $update_message);
include($phpbb_root_path . 'newpost2mail.php');