Zeile 6 | Zeile 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 3135 2007-06-14 20:10:46Z dennis $
| * $Id: functions_post.php 3635 2008-02-06 23:19:49Z Tikitiki $
|
*/
/**
| */
/**
|
Zeile 319 | Zeile 319 |
---|
if(!$post_type) { // Figure out if we need to show an "edited by" message
|
if(!$post_type) { // Figure out if we need to show an "edited by" message
|
// Only show if at least one of "showeditedby" or "showeditedbyadmin" is enabled if($post['edituid'] != "" && $post['edittime'] != "" && $post['editusername'] != "" && $mybb->settings['showeditedby'] != "no" && $mybb->settings['showeditedbyadmin'] != "no")
| if($post['edituid'] != 0 && $post['edittime'] != 0 && $post['editusername'] != "" && ($mybb->settings['showeditedby'] != "no" && $usergroup['cancp'] == "no" || $mybb->settings['showeditbyadmin'] != "no" && $usergroup['cancp'] == "yes"))
|
{ $post['editdate'] = my_date($mybb->settings['dateformat'], $post['edittime']); $post['edittime'] = my_date($mybb->settings['timeformat'], $post['edittime']);
| { $post['editdate'] = my_date($mybb->settings['dateformat'], $post['edittime']); $post['edittime'] = my_date($mybb->settings['timeformat'], $post['edittime']);
|
Zeile 475 | Zeile 474 |
---|
global $attachcache, $mybb, $theme, $templates, $forumpermissions, $lang;
$validationcount = 0;
|
global $attachcache, $mybb, $theme, $templates, $forumpermissions, $lang;
$validationcount = 0;
|
| $tcount = 0;
|
if(is_array($attachcache[$id])) { // This post has 1 or more attachments foreach($attachcache[$id] as $aid => $attachment) { if($attachment['visible']) { // There is an attachment thats visible!
|
if(is_array($attachcache[$id])) { // This post has 1 or more attachments foreach($attachcache[$id] as $aid => $attachment) { if($attachment['visible']) { // There is an attachment thats visible!
|
$attachment['name'] = htmlspecialchars_uni($attachment['name']);
| $attachment['filename'] = htmlspecialchars_uni($attachment['filename']);
|
$attachment['filesize'] = get_friendly_size($attachment['filesize']); $ext = get_extension($attachment['filename']); if($ext == "jpeg" || $ext == "gif" || $ext == "bmp" || $ext == "png" || $ext == "jpg")
| $attachment['filesize'] = get_friendly_size($attachment['filesize']); $ext = get_extension($attachment['filename']); if($ext == "jpeg" || $ext == "gif" || $ext == "bmp" || $ext == "png" || $ext == "jpg")
|
Zeile 503 | Zeile 503 |
---|
{ eval("\$attbit = \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";"); }
|
{ eval("\$attbit = \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";"); }
|
elseif(($attachment['thumbnail'] == "SMALL" && $forumpermissions['candlattachments'] == "yes") || $mybb->settings['attachthumbnails'] == 'no')
| elseif((($attachment['thumbnail'] == "SMALL" && $forumpermissions['candlattachments'] == "yes") || $mybb->settings['attachthumbnails'] == 'no') && $isimage)
|
{ eval("\$attbit = \"".$templates->get("postbit_attachments_images_image")."\";"); }
| { eval("\$attbit = \"".$templates->get("postbit_attachments_images_image")."\";"); }
|
Zeile 528 | Zeile 528 |
---|
} $tcount++; }
|
} $tcount++; }
|
elseif(($attachment['thumbnail'] == "SMALL" && $forumpermissions['candlattachments'] == "yes") || $mybb->settings['attachthumbnails'] == 'no')
| elseif((($attachment['thumbnail'] == "SMALL" && $forumpermissions['candlattachments'] == "yes") || $mybb->settings['attachthumbnails'] == 'no') && $isimage)
|
{ eval("\$post['imagelist'] .= \"".$templates->get("postbit_attachments_images_image")."\";"); }
| { eval("\$post['imagelist'] .= \"".$templates->get("postbit_attachments_images_image")."\";"); }
|