Vergleich inc/functions_post.php - 1.8.27 - 1.8.38

  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)


$post['useravatar'] = '';
if(isset($mybb->user['showavatars']) && $mybb->user['showavatars'] != 0 || $mybb->user['uid'] == 0)

Zeile 348Zeile 358
		$post['button_rep'] = '';
if($post_type != 3 && $mybb->settings['enablereputation'] == 1 && $mybb->settings['postrep'] == 1 && $mybb->usergroup['cangivereputations'] == 1 && $usergroup['usereputationsystem'] == 1 && ($mybb->settings['posrep'] || $mybb->settings['neurep'] || $mybb->settings['negrep']) && $post['uid'] != $mybb->user['uid'] && (!isset($post['visible']) || $post['visible'] == 1) && (!isset($thread['visible']) || $thread['visible'] == 1))
{

		$post['button_rep'] = '';
if($post_type != 3 && $mybb->settings['enablereputation'] == 1 && $mybb->settings['postrep'] == 1 && $mybb->usergroup['cangivereputations'] == 1 && $usergroup['usereputationsystem'] == 1 && ($mybb->settings['posrep'] || $mybb->settings['neurep'] || $mybb->settings['negrep']) && $post['uid'] != $mybb->user['uid'] && (!isset($post['visible']) || $post['visible'] == 1) && (!isset($thread['visible']) || $thread['visible'] == 1))
{

			if(!$post['pid'])

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

			{
$post['pid'] = 0;
}

			{
$post['pid'] = 0;
}

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

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

		}
else

		}
else

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

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

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

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

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


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



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


Zeile 641Zeile 653
				if($post['visible'] == -1)
{
$display = '';

				if($post['visible'] == -1)
{
$display = '';

				}

				}

				$postbit_qrestore = $lang->postbit_qrestore_post;
eval("\$post['button_quickrestore'] = \"".$templates->get("postbit_quickrestore")."\";");
}

				$postbit_qrestore = $lang->postbit_qrestore_post;
eval("\$post['button_quickrestore'] = \"".$templates->get("postbit_quickrestore")."\";");
}

Zeile 656Zeile 668
				}
$postbit_qrestore = $lang->postbit_qrestore_thread;
eval("\$post['button_quickrestore'] = \"".$templates->get("postbit_quickrestore")."\";");

				}
$postbit_qrestore = $lang->postbit_qrestore_thread;
eval("\$post['button_quickrestore'] = \"".$templates->get("postbit_quickrestore")."\";");

			}
}

			}
}


if(!isset($ismod))
{


if(!isset($ismod))
{

Zeile 671Zeile 683
			{
$inlinecheck = "checked=\"checked\"";
$inlinecount++;

			{
$inlinecheck = "checked=\"checked\"";
$inlinecount++;

			}
else

			}
else

			{
$inlinecheck = "";
}

			{
$inlinecheck = "";
}





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

if($post['visible'] == 0)

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

if($post['visible'] == 0)

			{

			{

				$invisiblepost = 1;
}
}

				$invisiblepost = 1;
}
}

Zeile 696Zeile 708
		if($forum['open'] != 0 && ($thread['closed'] != 1 || is_moderator($forum['fid'], "canpostclosedthreads")) && ($thread['uid'] == $mybb->user['uid'] || empty($forumpermissions['canonlyreplyownthreads'])))
{
eval("\$post['button_quote'] = \"".$templates->get("postbit_quote")."\";");

		if($forum['open'] != 0 && ($thread['closed'] != 1 || is_moderator($forum['fid'], "canpostclosedthreads")) && ($thread['uid'] == $mybb->user['uid'] || empty($forumpermissions['canonlyreplyownthreads'])))
{
eval("\$post['button_quote'] = \"".$templates->get("postbit_quote")."\";");

		}


		}


		if($forumpermissions['canpostreplys'] != 0 && ($thread['uid'] == $mybb->user['uid'] || empty($forumpermissions['canonlyreplyownthreads'])) && ($thread['closed'] != 1 || is_moderator($fid, "canpostclosedthreads")) && $mybb->settings['multiquote'] != 0 && $forum['open'] != 0 && !$post_type)

		if($forumpermissions['canpostreplys'] != 0 && ($thread['uid'] == $mybb->user['uid'] || empty($forumpermissions['canonlyreplyownthreads'])) && ($thread['closed'] != 1 || is_moderator($fid, "canpostclosedthreads")) && $mybb->settings['multiquote'] != 0 && $forum['open'] != 0 && !$post_type)

		{

		{

			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
{

Zeile 765Zeile 784
	$post['poststatus'] = '';
if(!$post_type && $post['visible'] != 1)
{

	$post['poststatus'] = '';
if(!$post_type && $post['visible'] != 1)
{

 
		$status_type = '';

		if(is_moderator($fid, "canviewdeleted") && $postcounter != 1 && $post['visible'] == -1)
{
$status_type = $lang->postbit_post_deleted;

		if(is_moderator($fid, "canviewdeleted") && $postcounter != 1 && $post['visible'] == -1)
{
$status_type = $lang->postbit_post_deleted;

Zeile 978Zeile 998

if(!$attachment['dateuploaded'])
{


if(!$attachment['dateuploaded'])
{

					$attachment['dateuploaded'] = $attachment['dateline'];

					$attachment['dateuploaded'] = $post['dateline'];

				}
$attachdate = my_date('normal', $attachment['dateuploaded']);
// Support for [attachment=id] code

				}
$attachdate = my_date('normal', $attachment['dateuploaded']);
// Support for [attachment=id] code

Zeile 1011Zeile 1031
						eval("\$post['thumblist'] .= \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");
if($tcount == 5)
{

						eval("\$post['thumblist'] .= \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");
if($tcount == 5)
{

							$thumblist .= "<br />";

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

							$tcount = 0;
}
++$tcount;

							$tcount = 0;
}
++$tcount;

Zeile 1027Zeile 1047
							eval("\$post['thumblist'] .= \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");
if($tcount == 5)
{

							eval("\$post['thumblist'] .= \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");
if($tcount == 5)
{

								$thumblist .= "<br />";

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

								$tcount = 0;
}
++$tcount;

								$tcount = 0;
}
++$tcount;