Zeile 317 | Zeile 317 |
---|
$post['useravatar'] = ''; if(isset($mybb->user['showavatars']) && $mybb->user['showavatars'] != 0 || $mybb->user['uid'] == 0) {
|
$post['useravatar'] = ''; if(isset($mybb->user['showavatars']) && $mybb->user['showavatars'] != 0 || $mybb->user['uid'] == 0) {
|
$useravatar = format_avatar(htmlspecialchars_uni($post['avatar']), $post['avatardimensions'], $mybb->settings['postmaxavatarsize']);
| $useravatar = format_avatar($post['avatar'], $post['avatardimensions'], $mybb->settings['postmaxavatarsize']);
|
eval("\$post['useravatar'] = \"".$templates->get("postbit_avatar")."\";"); } else
| eval("\$post['useravatar'] = \"".$templates->get("postbit_avatar")."\";"); } else
|
Zeile 343 | Zeile 343 |
---|
eval("\$post['button_rep'] = \"".$templates->get("postbit_rep_button")."\";"); }
|
eval("\$post['button_rep'] = \"".$templates->get("postbit_rep_button")."\";"); }
|
if($post['website'] != "" && $mybb->settings['hidewebsite'] != -1 && !is_member($mybb->settings['hidewebsite']) && $usergroup['canchangewebsite'] == 1)
| if($post['website'] != "" && !is_member($mybb->settings['hidewebsite']) && $usergroup['canchangewebsite'] == 1)
|
{ $post['website'] = htmlspecialchars_uni($post['website']); eval("\$post['button_www'] = \"".$templates->get("postbit_www")."\";");
| { $post['website'] = htmlspecialchars_uni($post['website']); eval("\$post['button_www'] = \"".$templates->get("postbit_www")."\";");
|
Zeile 540 | Zeile 540 |
---|
eval("\$post['editedmsg'] = \"".$templates->get("postbit_editedby")."\";"); }
|
eval("\$post['editedmsg'] = \"".$templates->get("postbit_editedby")."\";"); }
|
if((is_moderator($fid, "caneditposts") || ($forumpermissions['caneditposts'] == 1 && $mybb->user['uid'] == $post['uid'])) && $mybb->user['uid'] != 0)
| $time = TIME_NOW; if((is_moderator($fid, "caneditposts") || ($forumpermissions['caneditposts'] == 1 && $mybb->user['uid'] == $post['uid'] && $thread['closed'] != 1 && ($mybb->usergroup['edittimelimit'] == 0 || $mybb->usergroup['edittimelimit'] != 0 && $post['dateline'] > ($time-($mybb->usergroup['edittimelimit']*60))))) && $mybb->user['uid'] != 0)
|
{ eval("\$post['button_edit'] = \"".$templates->get("postbit_edit")."\";"); }
// Quick Delete button $can_delete_thread = $can_delete_post = 0;
|
{ eval("\$post['button_edit'] = \"".$templates->get("postbit_edit")."\";"); }
// Quick Delete button $can_delete_thread = $can_delete_post = 0;
|
if($mybb->user['uid'] == $post['uid'])
| if($mybb->user['uid'] == $post['uid'] && $thread['closed'] == 0)
|
{ if($forumpermissions['candeletethreads'] == 1 && $postcounter == 1) {
| { if($forumpermissions['candeletethreads'] == 1 && $postcounter == 1) {
|
Zeile 559 | Zeile 560 |
---|
} }
|
} }
|
$postbit_qdelete = '';
| $postbit_qdelete = $postbit_qrestore = '';
|
if($mybb->user['uid'] != 0) {
|
if($mybb->user['uid'] != 0) {
|
if((is_moderator($fid, "candeleteposts") || $can_delete_post == 1) && $postcounter != 1)
| if((is_moderator($fid, "candeleteposts") || is_moderator($fid, "cansoftdeleteposts") || $can_delete_post == 1) && $postcounter != 1)
|
{ $postbit_qdelete = $lang->postbit_qdelete_post;
|
{ $postbit_qdelete = $lang->postbit_qdelete_post;
|
$display = "";
| $display = '';
|
if($post['visible'] == -1) { $display = "none"; } eval("\$post['button_quickdelete'] = \"".$templates->get("postbit_quickdelete")."\";");
|
if($post['visible'] == -1) { $display = "none"; } eval("\$post['button_quickdelete'] = \"".$templates->get("postbit_quickdelete")."\";");
|
// Restore Post if(is_moderator($fid, "canrestoreposts"))
| } else if((is_moderator($fid, "candeletethreads") || is_moderator($fid, "cansoftdeletethreads") || $can_delete_thread == 1) && $postcounter == 1) { $postbit_qdelete = $lang->postbit_qdelete_thread; $display = ''; if($post['visible'] == -1)
|
{ $display = "none";
|
{ $display = "none";
|
if($post['visible'] == -1) { $display = ""; } $postbit_qrestore = $lang->postbit_qrestore_post; eval("\$post['button_quickrestore'] = \"".$templates->get("postbit_quickrestore")."\";"); }
| } eval("\$post['button_quickdelete'] = \"".$templates->get("postbit_quickdelete")."\";"); }
// Restore Post if(is_moderator($fid, "canrestoreposts") && $postcounter != 1) { $display = "none"; if($post['visible'] == -1) { $display = ''; } $postbit_qrestore = $lang->postbit_qrestore_post; eval("\$post['button_quickrestore'] = \"".$templates->get("postbit_quickrestore")."\";");
|
}
|
}
|
else if((is_moderator($fid, "candeletethreads") || $can_delete_thread == 1) && $postcounter == 1)
| // Restore Thread else if(is_moderator($fid, "canrestorethreads") && $postcounter == 1)
|
{
|
{
|
$postbit_qdelete = $lang->postbit_qdelete_thread; $display = "";
| $display = "none";
|
if($post['visible'] == -1) {
|
if($post['visible'] == -1) {
|
$display = "none";
| $display = "";
|
} $postbit_qrestore = $lang->postbit_qrestore_thread;
|
} $postbit_qrestore = $lang->postbit_qrestore_thread;
|
eval("\$post['button_quickdelete'] = \"".$templates->get("postbit_quickdelete")."\";");
// Restore Post if(is_moderator($fid, "canrestoreposts")) { $display = "none"; if($post['visible'] == -1) { $display = ""; } eval("\$post['button_quickrestore'] = \"".$templates->get("postbit_quickrestore")."\";"); }
| eval("\$post['button_quickrestore'] = \"".$templates->get("postbit_quickrestore")."\";");
|
} }
| } }
|
Zeile 720 | Zeile 721 |
---|
get_post_attachments($id, $post); }
|
get_post_attachments($id, $post); }
|
if(isset($post['includesig']) && $post['includesig'] != 0 && $post['username'] && $post['signature'] != "" && ($mybb->user['uid'] == 0 || $mybb->user['showsigs'] != 0) && ($post['suspendsignature'] == 0 || $post['suspendsignature'] == 1 && $post['suspendsigtime'] != 0 && $post['suspendsigtime'] < TIME_NOW) && $usergroup['canusesig'] == 1 && ($usergroup['canusesigxposts'] == 0 || $usergroup['canusesigxposts'] > 0 && $postnum > $usergroup['canusesigxposts']) && $mybb->settings['hidesignatures'] != -1 && !is_member($mybb->settings['hidesignatures']))
| if(isset($post['includesig']) && $post['includesig'] != 0 && $post['username'] && $post['signature'] != "" && ($mybb->user['uid'] == 0 || $mybb->user['showsigs'] != 0) && ($post['suspendsignature'] == 0 || $post['suspendsignature'] == 1 && $post['suspendsigtime'] != 0 && $post['suspendsigtime'] < TIME_NOW) && $usergroup['canusesig'] == 1 && ($usergroup['canusesigxposts'] == 0 || $usergroup['canusesigxposts'] > 0 && $postnum > $usergroup['canusesigxposts']) && !is_member($mybb->settings['hidesignatures']))
|
{ $sig_parser = array( "allow_html" => $mybb->settings['sightml'],
| { $sig_parser = array( "allow_html" => $mybb->settings['sightml'],
|