Zeile 183 | Zeile 183 |
---|
$post['subject_title'] = $post['subject'];
// Get the usergroup
|
$post['subject_title'] = $post['subject'];
// Get the usergroup
|
if($post['userusername'])
| if($post['usergroup'])
|
{
|
{
|
if(!$post['displaygroup']) { $post['displaygroup'] = $post['usergroup']; } $usergroup = $groupscache[$post['displaygroup']];
| $usergroup = usergroup_permissions($post['usergroup']); } else { $usergroup = usergroup_permissions(1); }
// Fetch display group data. $displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");
if(!$post['displaygroup']) { $post['displaygroup'] = $post['usergroup'];
|
}
|
}
|
else
| $displaygroup = usergroup_displaygroup($post['displaygroup']); if(is_array($displaygroup))
|
{
|
{
|
$usergroup = $groupscache[1];
| $usergroup = array_merge($usergroup, $displaygroup);
|
}
if(!is_array($titlescache))
| }
if(!is_array($titlescache))
|
Zeile 391 | Zeile 401 |
---|
// If we can warn them, it's not the same person, and we're in a PM or a post. if($mybb->usergroup['canwarnusers'] != 0 && $post['uid'] != $mybb->user['uid'] && ($post_type == 0 || $post_type == 2))
|
// If we can warn them, it's not the same person, and we're in a PM or a post. if($mybb->usergroup['canwarnusers'] != 0 && $post['uid'] != $mybb->user['uid'] && ($post_type == 0 || $post_type == 2))
|
{
| {
|
eval("\$post['button_warn'] = \"".$templates->get("postbit_warn")."\";"); $warning_link = "warnings.php?uid={$post['uid']}"; }
| eval("\$post['button_warn'] = \"".$templates->get("postbit_warn")."\";"); $warning_link = "warnings.php?uid={$post['uid']}"; }
|
Zeile 596 | Zeile 606 |
---|
if($post['visible'] == -1) { $display = "none";
|
if($post['visible'] == -1) { $display = "none";
|
}
| }
|
eval("\$post['button_quickdelete'] = \"".$templates->get("postbit_quickdelete")."\";"); }
| eval("\$post['button_quickdelete'] = \"".$templates->get("postbit_quickdelete")."\";"); }
|
Zeile 703 | Zeile 713 |
---|
else if($show_ips == "hide" && (is_moderator($fid, "canviewips") || $mybb->usergroup['issupermod'])) { $action = 'getip';
|
else if($show_ips == "hide" && (is_moderator($fid, "canviewips") || $mybb->usergroup['issupermod'])) { $action = 'getip';
|
| $javascript = 'getIP';
|
if($post_type == 2) { $action = 'getpmip';
|
if($post_type == 2) { $action = 'getpmip';
|
| $javascript = 'getPMIP';
|
}
|
}
|
|
|
eval("\$post['iplogged'] = \"".$templates->get("postbit_iplogged_hiden")."\";"); } }
| eval("\$post['iplogged'] = \"".$templates->get("postbit_iplogged_hiden")."\";"); } }
|
Zeile 752 | Zeile 766 |
---|
// If we have incoming search terms to highlight - get it done. if(!empty($mybb->input['highlight']))
|
// If we have incoming search terms to highlight - get it done. if(!empty($mybb->input['highlight']))
|
{
| {
|
$parser_options['highlight'] = $mybb->input['highlight']; $post['subject'] = $parser->highlight_message($post['subject'], $parser_options['highlight']);
|
$parser_options['highlight'] = $mybb->input['highlight']; $post['subject'] = $parser->highlight_message($post['subject'], $parser_options['highlight']);
|
}
$post['message'] = $parser->parse_message($post['message'], $parser_options);
| }
$post['message'] = $parser->parse_message($post['message'], $parser_options);
|
$post['attachments'] = ''; if($mybb->settings['enableattachments'] != 0) { get_post_attachments($id, $post);
|
$post['attachments'] = ''; if($mybb->settings['enableattachments'] != 0) { 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']) && !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']))
|
Zeile 777 | Zeile 791 |
---|
"me_username" => $parser_options['me_username'], "filter_badwords" => 1 );
|
"me_username" => $parser_options['me_username'], "filter_badwords" => 1 );
|
|
|
if($usergroup['signofollow']) { $sig_parser['nofollow_on'] = 1;
| if($usergroup['signofollow']) { $sig_parser['nofollow_on'] = 1;
|
Zeile 801 | Zeile 815 |
---|
if(isset($post['icon']) && $post['icon'] > 0 && $icon_cache[$post['icon']]) { $icon = $icon_cache[$post['icon']];
|
if(isset($post['icon']) && $post['icon'] > 0 && $icon_cache[$post['icon']]) { $icon = $icon_cache[$post['icon']];
|
|
|
$icon['path'] = htmlspecialchars_uni($icon['path']); $icon['path'] = str_replace("{theme}", $theme['imgdir'], $icon['path']); $icon['name'] = htmlspecialchars_uni($icon['name']);
| $icon['path'] = htmlspecialchars_uni($icon['path']); $icon['path'] = str_replace("{theme}", $theme['imgdir'], $icon['path']); $icon['name'] = htmlspecialchars_uni($icon['name']);
|
Zeile 1006 | Zeile 1020 |
---|
eval("\$post['attachments'] = \"".$templates->get("postbit_attachments")."\";"); } }
|
eval("\$post['attachments'] = \"".$templates->get("postbit_attachments")."\";"); } }
|
| }
/** * Returns bytes count from human readable string * Used to parse ini_get human-readable values to int * * @param string $val Human-readable value */ function return_bytes($val) { $val = trim($val); if ($val == "") { return 0; }
$last = strtolower($val[strlen($val)-1]); switch($last) { case 'g': $val *= 1024; case 'm': $val *= 1024; case 'k': $val *= 1024; }
return intval($val);
|
}
| }
|