Vergleich portal.php - 1.6.7 - 1.6.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: portal.php 5744 2012-01-23 16:37:22Z ralgith $

 * $Id: portal.php 5821 2012-05-02 15:40:38Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 440Zeile 440
	$announcementsfids = implode(',', $fid_array);
}
// And get them!

	$announcementsfids = implode(',', $fid_array);
}
// And get them!

$query = $db->simple_select("forums", "*", "fid IN (".$announcementsfids.")");
while($forumrow = $db->fetch_array($query))

foreach($forum_cache as $fid => $f)


{

{

    $forum[$forumrow['fid']] = $forumrow;




	if(is_array($fid_array) && in_array($fid, $fid_array))
{
$forum[$fid] = $f;
}

}

$numannouncements = intval($mybb->settings['portal_numannouncements']);

}

$numannouncements = intval($mybb->settings['portal_numannouncements']);

Zeile 500Zeile 502
{
// Make sure we can view this announcement
if($forumpermissions[$announcement['fid']]['canview'] == 0 || $forumpermissions[$announcement['fid']]['canviewthreads'] == 0 || $forumpermissions[$announcement['fid']]['canonlyviewownthreads'] == 1 && $announcement['uid'] != $mybb->user['uid'])

{
// Make sure we can view this announcement
if($forumpermissions[$announcement['fid']]['canview'] == 0 || $forumpermissions[$announcement['fid']]['canviewthreads'] == 0 || $forumpermissions[$announcement['fid']]['canonlyviewownthreads'] == 1 && $announcement['uid'] != $mybb->user['uid'])

	{

	{

		continue;
}


		continue;
}


Zeile 510Zeile 512
	$announcement['threadlink'] = get_thread_link($announcement['tid']);

if($announcement['uid'] == 0)

	$announcement['threadlink'] = get_thread_link($announcement['tid']);

if($announcement['uid'] == 0)

	{

	{

		$profilelink = htmlspecialchars_uni($announcement['threadusername']);

		$profilelink = htmlspecialchars_uni($announcement['threadusername']);

	}
else

	}
else

	{
$profilelink = build_profile_link($announcement['username'], $announcement['uid']);

	{
$profilelink = build_profile_link($announcement['username'], $announcement['uid']);

	}

	}

	
if(!$announcement['username'])
{

	
if(!$announcement['username'])
{

Zeile 527Zeile 529
	{
$icon = $icon_cache[$announcement['icon']];
$icon = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" />";

	{
$icon = $icon_cache[$announcement['icon']];
$icon = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" />";

	}
else

	}
else

	{
$icon = "&nbsp;";
}

	{
$icon = "&nbsp;";
}

Zeile 584Zeile 586
		$validationcount = 0;
$id = $announcement['pid'];
foreach($attachcache[$id] as $aid => $attachment)

		$validationcount = 0;
$id = $announcement['pid'];
foreach($attachcache[$id] as $aid => $attachment)

		{

		{

			if($attachment['visible'])
{ // There is an attachment thats visible!
$attachment['filename'] = htmlspecialchars_uni($attachment['filename']);

			if($attachment['visible'])
{ // There is an attachment thats visible!
$attachment['filename'] = htmlspecialchars_uni($attachment['filename']);

Zeile 593Zeile 595
				if($ext == "jpeg" || $ext == "gif" || $ext == "bmp" || $ext == "png" || $ext == "jpg")
{
$isimage = true;

				if($ext == "jpeg" || $ext == "gif" || $ext == "bmp" || $ext == "png" || $ext == "jpg")
{
$isimage = true;

				}

				}

				else
{
$isimage = false;

				else
{
$isimage = false;

Zeile 610Zeile 612
					{
// Image is small enough to show - no thumbnail
eval("\$attbit = \"".$templates->get("postbit_attachments_images_image")."\";");

					{
// Image is small enough to show - no thumbnail
eval("\$attbit = \"".$templates->get("postbit_attachments_images_image")."\";");

					}
else
{

					}
else
{

						// Show standard link to attachment
eval("\$attbit = \"".$templates->get("postbit_attachments_attachment")."\";");
}

						// Show standard link to attachment
eval("\$attbit = \"".$templates->get("postbit_attachments_attachment")."\";");
}

Zeile 640Zeile 642
						eval("\$post['attachmentlist'] .= \"".$templates->get("postbit_attachments_attachment")."\";");
}
}

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

			}

			}

			else
{
$validationcount++;
}
}
if($post['thumblist'])

			else
{
$validationcount++;
}
}
if($post['thumblist'])

		{

		{

			eval("\$post['attachedthumbs'] = \"".$templates->get("postbit_attachments_thumbnails")."\";");
}
if($post['imagelist'])

			eval("\$post['attachedthumbs'] = \"".$templates->get("postbit_attachments_thumbnails")."\";");
}
if($post['imagelist'])

		{

		{

			eval("\$post['attachedimages'] = \"".$templates->get("postbit_attachments_images")."\";");
}
if($post['attachmentlist'] || $post['thumblist'] || $post['imagelist'])

			eval("\$post['attachedimages'] = \"".$templates->get("postbit_attachments_images")."\";");
}
if($post['attachmentlist'] || $post['thumblist'] || $post['imagelist'])

Zeile 668Zeile 670

eval("\$portal = \"".$templates->get("portal")."\";");
output_page($portal);


eval("\$portal = \"".$templates->get("portal")."\";");
output_page($portal);



 
?>

?>