Vergleich inc/functions_post.php - 1.2.7 - 1.2.9

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * $Id: functions_post.php 2942 2007-03-10 21:36:18Z dennis $

 * $Id: functions_post.php 3135 2007-06-14 20:10:46Z dennis $

 */

/**

 */

/**

Zeile 496Zeile 496
				// Support for [attachment=id] code
if(stripos($post['message'], "[attachment=".$attachment['aid']."]") !== false)
{

				// Support for [attachment=id] code
if(stripos($post['message'], "[attachment=".$attachment['aid']."]") !== false)
{

					if($attachment['thumbnail'] != "SMALL" && $attachment['thumbnail'] != "")
{ // We have a thumbnail to show (and its not the "SMALL" enough image




					// Show as thumbnail IF image is big && thumbnail exists && setting=='yes'
// Show as full size image IF setting=='no' || (image is small && permissions allow)
// Show as download for all other cases
if($attachment['thumbnail'] != "SMALL" && $attachment['thumbnail'] != "" && $mybb->settings['attachthumbnails'] == 'yes')
{

						eval("\$attbit = \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");

						eval("\$attbit = \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");

					}
elseif($attachment['thumbnail'] == "SMALL" && $forumpermissions['candlattachments'] == "yes")

					}
elseif(($attachment['thumbnail'] == "SMALL" && $forumpermissions['candlattachments'] == "yes") || $mybb->settings['attachthumbnails'] == 'no')

					{

					{

						// Image is small enough to show - no thumbnail

 
						eval("\$attbit = \"".$templates->get("postbit_attachments_images_image")."\";");

						eval("\$attbit = \"".$templates->get("postbit_attachments_images_image")."\";");

					}

					}

					else

					else

					{
// Show standard link to attachment

					{


						eval("\$attbit = \"".$templates->get("postbit_attachments_attachment")."\";");
}
$post['message'] = preg_replace("#\[attachment=".$attachment['aid']."]#si", $attbit, $post['message']);
}
else
{

						eval("\$attbit = \"".$templates->get("postbit_attachments_attachment")."\";");
}
$post['message'] = preg_replace("#\[attachment=".$attachment['aid']."]#si", $attbit, $post['message']);
}
else
{

					if($attachment['thumbnail'] != "SMALL" && $attachment['thumbnail'] != "")
{ // We have a thumbnail to show




					// Show as thumbnail IF image is big && thumbnail exists && setting=='thumb'
// Show as full size image IF setting=='fullsize' || (image is small && permissions allow)
// Show as download for all other cases
if($attachment['thumbnail'] != "SMALL" && $attachment['thumbnail'] != "" && $mybb->settings['attachthumbnails'] == 'yes')
{

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

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

Zeile 524Zeile 528
						}
$tcount++;
}

						}
$tcount++;
}

					elseif($attachment['thumbnail'] == "SMALL" && $forumpermissions['candlattachments'] == "yes")

					elseif(($attachment['thumbnail'] == "SMALL" && $forumpermissions['candlattachments'] == "yes") || $mybb->settings['attachthumbnails'] == 'no')

					{

					{

						// Image is small enough to show - no thumbnail

 
						eval("\$post['imagelist'] .= \"".$templates->get("postbit_attachments_images_image")."\";");
}
else

						eval("\$post['imagelist'] .= \"".$templates->get("postbit_attachments_images_image")."\";");
}
else