Vergleich inc/functions_post.php - 1.8.27 - 1.8.36

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 147Zeile 147
		}
$post_extra_style = "border-top-width: 0;";
}

		}
$post_extra_style = "border-top-width: 0;";
}

	elseif($mybb->input['mode'] == "threaded")

	elseif($mybb->get_input('mode') == "threaded")

	{
$post_extra_style = "border-top-width: 0;";
}

	{
$post_extra_style = "border-top-width: 0;";
}

Zeile 195Zeile 195
	// Fetch display group data.
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");


	// Fetch display group data.
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");


	if(!$post['displaygroup'])

	if(empty($post['displaygroup']))

	{
$post['displaygroup'] = $post['usergroup'];

	{
$post['displaygroup'] = $post['usergroup'];

 
	}

// Set to hardcoded Guest usergroup ID (1) for guest author or deleted user.
if(empty($post['usergroup']))
{
$post['usergroup'] = 1;
}
if(empty($post['displaygroup']))
{
$post['displaygroup'] = 1;

	}

$displaygroup = usergroup_displaygroup($post['displaygroup']);

	}

$displaygroup = usergroup_displaygroup($post['displaygroup']);

Zeile 207Zeile 217
	}

if(!is_array($titlescache))

	}

if(!is_array($titlescache))

	{

	{

		$cached_titles = $cache->read("usertitles");
if(!empty($cached_titles))
{

		$cached_titles = $cache->read("usertitles");
if(!empty($cached_titles))
{

Zeile 215Zeile 225
			{
$titlescache[$usertitle['posts']] = $usertitle;
}

			{
$titlescache[$usertitle['posts']] = $usertitle;
}

		}


		}


		if(is_array($titlescache))
{
krsort($titlescache);
}
unset($usertitle, $cached_titles);

		if(is_array($titlescache))
{
krsort($titlescache);
}
unset($usertitle, $cached_titles);

	}


	}


	// Work out the usergroup/title stuff
$post['groupimage'] = '';
if(!empty($usergroup['image']))

	// Work out the usergroup/title stuff
$post['groupimage'] = '';
if(!empty($usergroup['image']))

Zeile 239Zeile 249
		eval("\$post['groupimage'] = \"".$templates->get("postbit_groupimage")."\";");

if($mybb->settings['postlayout'] == "classic")

		eval("\$post['groupimage'] = \"".$templates->get("postbit_groupimage")."\";");

if($mybb->settings['postlayout'] == "classic")

		{

		{

			$post['groupimage'] .= "<br />";
}
}

			$post['groupimage'] .= "<br />";
}
}

Zeile 255Zeile 265
		if(trim($post['usertitle']) != "")
{
$hascustomtitle = 1;

		if(trim($post['usertitle']) != "")
{
$hascustomtitle = 1;

		}

		}


if($usergroup['usertitle'] != "" && !$hascustomtitle)
{
$post['usertitle'] = $usergroup['usertitle'];
}
elseif(is_array($titlescache) && !$usergroup['usertitle'])


if($usergroup['usertitle'] != "" && !$hascustomtitle)
{
$post['usertitle'] = $usergroup['usertitle'];
}
elseif(is_array($titlescache) && !$usergroup['usertitle'])

		{

		{

			reset($titlescache);
foreach($titlescache as $key => $titleinfo)
{

			reset($titlescache);
foreach($titlescache as $key => $titleinfo)
{

Zeile 276Zeile 286
					$post['starimage'] = $titleinfo['starimage'];
break;
}

					$post['starimage'] = $titleinfo['starimage'];
break;
}

			}
}

$post['usertitle'] = htmlspecialchars_uni($post['usertitle']);

			}
}

$post['usertitle'] = htmlspecialchars_uni($post['usertitle']);


if($usergroup['stars'])
{
$post['stars'] = $usergroup['stars'];


if($usergroup['stars'])
{
$post['stars'] = $usergroup['stars'];

		}


		}


		if(empty($post['starimage']))
{
$post['starimage'] = $usergroup['starimage'];

		if(empty($post['starimage']))
{
$post['starimage'] = $usergroup['starimage'];

Zeile 300Zeile 310
			for($i = 0; $i < $post['stars']; ++$i)
{
eval("\$post['userstars'] .= \"".$templates->get("postbit_userstar", 1, 0)."\";");

			for($i = 0; $i < $post['stars']; ++$i)
{
eval("\$post['userstars'] .= \"".$templates->get("postbit_userstar", 1, 0)."\";");

			}

			}


$post['userstars'] .= "<br />";
}


$post['userstars'] .= "<br />";
}

Zeile 324Zeile 334
			else
{
eval("\$post['onlinestatus'] = \"".$templates->get("postbit_offline")."\";");

			else
{
eval("\$post['onlinestatus'] = \"".$templates->get("postbit_offline")."\";");

			}
}

			}
}


$post['useravatar'] = '';
if(isset($mybb->user['showavatars']) && $mybb->user['showavatars'] != 0 || $mybb->user['uid'] == 0)
{
$useravatar = format_avatar($post['avatar'], $post['avatardimensions'], $mybb->settings['postmaxavatarsize']);
eval("\$post['useravatar'] = \"".$templates->get("postbit_avatar")."\";");


$post['useravatar'] = '';
if(isset($mybb->user['showavatars']) && $mybb->user['showavatars'] != 0 || $mybb->user['uid'] == 0)
{
$useravatar = format_avatar($post['avatar'], $post['avatardimensions'], $mybb->settings['postmaxavatarsize']);
eval("\$post['useravatar'] = \"".$templates->get("postbit_avatar")."\";");

		}


		}


		$post['button_find'] = '';
if($mybb->usergroup['cansearch'] == 1)
{

		$post['button_find'] = '';
if($mybb->usergroup['cansearch'] == 1)
{

Zeile 341Zeile 351
		}

if($mybb->settings['enablepms'] == 1 && $post['uid'] != $mybb->user['uid'] && (($post['receivepms'] != 0 && $usergroup['canusepms'] != 0 && $mybb->usergroup['cansendpms'] == 1 && my_strpos(",".$post['ignorelist'].",", ",".$mybb->user['uid'].",") === false) || $mybb->usergroup['canoverridepm'] == 1))

		}

if($mybb->settings['enablepms'] == 1 && $post['uid'] != $mybb->user['uid'] && (($post['receivepms'] != 0 && $usergroup['canusepms'] != 0 && $mybb->usergroup['cansendpms'] == 1 && my_strpos(",".$post['ignorelist'].",", ",".$mybb->user['uid'].",") === false) || $mybb->usergroup['canoverridepm'] == 1))

		{

		{

			eval("\$post['button_pm'] = \"".$templates->get("postbit_pm")."\";");
}


			eval("\$post['button_pm'] = \"".$templates->get("postbit_pm")."\";");
}


Zeile 357Zeile 367
		}

if($post['website'] != "" && !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")."\";");

		}

		}

		else
{
$post['button_www'] = "";

		else
{
$post['button_www'] = "";

		}


		}


		if($post['hideemail'] != 1 && $post['uid'] != $mybb->user['uid'] && $mybb->usergroup['cansendemail'] == 1)

		if($post['hideemail'] != 1 && $post['uid'] != $mybb->user['uid'] && $mybb->usergroup['cansendemail'] == 1)

		{

		{

			eval("\$post['button_email'] = \"".$templates->get("postbit_email")."\";");
}
else
{
$post['button_email'] = "";

			eval("\$post['button_email'] = \"".$templates->get("postbit_email")."\";");
}
else
{
$post['button_email'] = "";

		}

		}


$post['userregdate'] = my_date($mybb->settings['regdateformat'], $post['regdate']);



$post['userregdate'] = my_date($mybb->settings['regdateformat'], $post['regdate']);


Zeile 388Zeile 398
		if($post_type != 3 && $mybb->settings['enablewarningsystem'] != 0 && $usergroup['canreceivewarnings'] != 0 && ($mybb->usergroup['canwarnusers'] != 0 || ($mybb->user['uid'] == $post['uid'] && $mybb->settings['canviewownwarning'] != 0)))
{
if($mybb->settings['maxwarningpoints'] < 1)

		if($post_type != 3 && $mybb->settings['enablewarningsystem'] != 0 && $usergroup['canreceivewarnings'] != 0 && ($mybb->usergroup['canwarnusers'] != 0 || ($mybb->user['uid'] == $post['uid'] && $mybb->settings['canviewownwarning'] != 0)))
{
if($mybb->settings['maxwarningpoints'] < 1)

			{

			{

				$mybb->settings['maxwarningpoints'] = 10;
}


				$mybb->settings['maxwarningpoints'] = 10;
}


Zeile 514Zeile 524
		if($usergroup['usertitle'])
{
$post['usertitle'] = $usergroup['usertitle'];

		if($usergroup['usertitle'])
{
$post['usertitle'] = $usergroup['usertitle'];

		}

		}

		else
{
$post['usertitle'] = $lang->guest;
}

$post['usertitle'] = htmlspecialchars_uni($post['usertitle']);

		else
{
$post['usertitle'] = $lang->guest;
}

$post['usertitle'] = htmlspecialchars_uni($post['usertitle']);

 
		$post['userstars'] = '';
$post['useravatar'] = '';


$usergroup['title'] = $lang->na;



$usergroup['title'] = $lang->na;


Zeile 703Zeile 715
			eval("\$post['button_multiquote'] = \"".$templates->get("postbit_multiquote")."\";");
}


			eval("\$post['button_multiquote'] = \"".$templates->get("postbit_multiquote")."\";");
}


		$skip_report = my_unserialize($post['reporters']);
if(is_array($skip_report))

		if(isset($post['reporters']))


		{

		{

			$skip_report[] = 0;









			$skip_report = my_unserialize($post['reporters']);
if(is_array($skip_report))
{
$skip_report[] = 0;
}
else
{
$skip_report = array(0);
}

		}
else
{

		}
else
{