Zeile 6 | Zeile 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 440 | Zeile 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 500 | Zeile 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 510 | Zeile 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 527 | Zeile 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 = " "; }
| { $icon = " "; }
|
Zeile 584 | Zeile 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 593 | Zeile 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 610 | Zeile 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 640 | Zeile 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 668 | Zeile 670 |
---|
eval("\$portal = \"".$templates->get("portal")."\";"); output_page($portal);
|
eval("\$portal = \"".$templates->get("portal")."\";"); output_page($portal);
|
| |
?>
| ?>
|