Zeile 36 | Zeile 36 |
---|
{ $thread = get_thread($mybb->input['tid']);
|
{ $thread = get_thread($mybb->input['tid']);
|
$query = $db->simple_select("posts", "*", "tid='".$mybb->get_input('tid', MyBB::INPUT_INT)."' AND visible='-2'", array('order_by' => 'dateline, pid', 'limit' => 1));
| $query = $db->simple_select("posts", "*", "tid='".$mybb->input['tid']."' AND visible='-2'", array('order_by' => 'dateline, pid', 'limit' => 1));
|
$post = $db->fetch_array($query);
|
$post = $db->fetch_array($query);
|
if(!$thread['tid'] || !$post['pid'] || $thread['visible'] != -2 || $thread['uid'] != $mybb->user['uid'])
| if(!$thread || !$post || $thread['visible'] != -2 || $thread['uid'] != $mybb->user['uid'])
|
{ error($lang->invalidthread); }
| { error($lang->invalidthread); }
|
Zeile 95 | Zeile 95 |
---|
check_forum_password($forum['fid']);
// If MyCode is on for this forum and the MyCode editor is enabled in the Admin CP, draw the code buttons and smilie inserter.
|
check_forum_password($forum['fid']);
// If MyCode is on for this forum and the MyCode editor is enabled in the Admin CP, draw the code buttons and smilie inserter.
|
| $codebuttons = ''; $smilieinserter = '';
|
if($mybb->settings['bbcodeinserter'] != 0 && $forum['allowmycode'] != 0 && (!$mybb->user['uid'] || $mybb->user['showcodebuttons'] != 0)) { $codebuttons = build_mycode_inserter("message", $forum['allowsmilies']);
| if($mybb->settings['bbcodeinserter'] != 0 && $forum['allowmycode'] != 0 && (!$mybb->user['uid'] || $mybb->user['showcodebuttons'] != 0)) { $codebuttons = build_mycode_inserter("message", $forum['allowsmilies']);
|
Zeile 184 | Zeile 186 |
---|
eval("\$postinsert = \"".$templates->get("post_attachments_attachment_postinsert")."\";"); } eval("\$attach_rem_options = \"".$templates->get("post_attachments_attachment_remove")."\";");
|
eval("\$postinsert = \"".$templates->get("post_attachments_attachment_postinsert")."\";"); } eval("\$attach_rem_options = \"".$templates->get("post_attachments_attachment_remove")."\";");
|
| $attach_mod_options = '';
|
eval("\$attemplate = \"".$templates->get("post_attachments_attachment")."\";"); $ret['template'] = $attemplate;
| eval("\$attemplate = \"".$templates->get("post_attachments_attachment")."\";"); $ret['template'] = $attemplate;
|
Zeile 393 | Zeile 396 |
---|
// Apply moderation options if we have them $new_thread['modoptions'] = $mybb->get_input('modoptions', MyBB::INPUT_ARRAY);
|
// Apply moderation options if we have them $new_thread['modoptions'] = $mybb->get_input('modoptions', MyBB::INPUT_ARRAY);
|
|
|
$posthandler->set_data($new_thread);
// Now let the post handler do all the hard work.
| $posthandler->set_data($new_thread);
// Now let the post handler do all the hard work.
|
Zeile 691 | Zeile 694 |
---|
$posticons = get_post_icons(); } $subscription_method = get_subscription_method($tid); // Subscription method doesn't get saved in drafts
|
$posticons = get_post_icons(); } $subscription_method = get_subscription_method($tid); // Subscription method doesn't get saved in drafts
|
| $numpolloptions = "2";
|
}
// Otherwise, this is our initial visit to this page.
| }
// Otherwise, this is our initial visit to this page.
|
Zeile 812 | Zeile 816 |
---|
$post['includesig'] = $mybb->input['postoptions']['signature']; } if(!isset($post['includesig']) || $post['includesig'] != 1)
|
$post['includesig'] = $mybb->input['postoptions']['signature']; } if(!isset($post['includesig']) || $post['includesig'] != 1)
|
{
| {
|
$post['includesig'] = 0; }
| $post['includesig'] = 0; }
|
Zeile 1022 | Zeile 1026 |
---|
eval("\$attachbox = \"".$templates->get("post_attachments")."\";");
$bgcolor = alt_trow();
|
eval("\$attachbox = \"".$templates->get("post_attachments")."\";");
$bgcolor = alt_trow();
|
| } else { $attachbox = '';
|
}
|
}
|
| $savedraftbutton = '';
|
if($mybb->user['uid']) { eval("\$savedraftbutton = \"".$templates->get("post_savedraftbutton", 1, 0)."\";");
| if($mybb->user['uid']) { eval("\$savedraftbutton = \"".$templates->get("post_savedraftbutton", 1, 0)."\";");
|
Zeile 1096 | Zeile 1105 |
---|
$forum['rulestitle'] = $lang->sprintf($lang->forum_rules, $forum['name']); }
|
$forum['rulestitle'] = $lang->sprintf($lang->forum_rules, $forum['name']); }
|
if(!$parser)
| if(empty($parser))
|
{ require_once MYBB_ROOT.'inc/class_parser.php'; $parser = new postParser;
| { require_once MYBB_ROOT.'inc/class_parser.php'; $parser = new postParser;
|