Zeile 394 | Zeile 394 |
---|
$redirect = get_thread_link($tid); }
|
$redirect = get_thread_link($tid); }
|
if($mybb->input['ajax'] == 1)
| if($mybb->get_input('ajax', MyBB::INPUT_INT) == 1)
|
{ header("Content-type: application/json; charset={$lang->settings['charset']}"); if(is_moderator($fid, "canviewdeleted"))
| { header("Content-type: application/json; charset={$lang->settings['charset']}"); if(is_moderator($fid, "canviewdeleted"))
|
Zeile 602 | Zeile 602 |
---|
{ $plugins->run_hooks("editpost_action_start");
|
{ $plugins->run_hooks("editpost_action_start");
|
| $preview = '';
|
if(!isset($mybb->input['previewpost'])) { $icon = $post['icon'];
| if(!isset($mybb->input['previewpost'])) { $icon = $post['icon'];
|
Zeile 616 | Zeile 617 |
---|
eval("\$loginbox = \"".$templates->get("changeuserbox")."\";");
$deletebox = '';
|
eval("\$loginbox = \"".$templates->get("changeuserbox")."\";");
$deletebox = '';
|
if($post['visible'] != -1 && (($thread['firstpost'] == $pid && (is_moderator($fid, "candeletethreads") || $forumpermissions['candeletethreads'] == 1 && $mybb->user['uid'] == $post['uid'])) || ($thread['firstpost'] != $pid && (is_moderator($fid, "candeleteposts") || $forumpermissions['candeleteposts'] == 1 && $mybb->user['uid'] == $post['uid']))))
| if(isset($post['visible']) && $post['visible'] != -1 && (($thread['firstpost'] == $pid && (is_moderator($fid, "candeletethreads") || $forumpermissions['candeletethreads'] == 1 && $mybb->user['uid'] == $post['uid'])) || ($thread['firstpost'] != $pid && (is_moderator($fid, "candeleteposts") || $forumpermissions['candeleteposts'] == 1 && $mybb->user['uid'] == $post['uid']))))
|
{ eval("\$deletebox = \"".$templates->get("editpost_delete")."\";"); }
| { eval("\$deletebox = \"".$templates->get("editpost_delete")."\";"); }
|