<?php /* $Id$ */ include "output_modules/common.inc.php"; $t = makedownloadbar($o); $st = convertTagsToInteralLinks($site, $t); if ($o->getField("texttype") == 'text') { $st = nl2br($st); } $wikiResolver =& WikiResolver::instance(); $st = $wikiResolver->parseText($st, $site, $section, $page); printc($st); if ($o->getField("discuss")) { include dirname(__FILE__) . "/discussionLink.inc.php"; }
} if ($storyObj->getField("type") == 'image') { $filename = urldecode(db_get_value("media", "media_tag", "media_id='" . addslashes($storyObj->getField("longertext")) . "'")); $dir = db_get_value("media INNER JOIN slot ON media.FK_site = slot.FK_site", "slot_name", "media_id='" . addslashes($storyObj->getField("longertext")) . "'"); $imagepath = "{$uploadurl}/{$dir}/{$filename}"; $fulltext = "\n<div style='text-align: center'><br /><img src='{$imagepath}' border='0' /></div>"; /* if ($story->getField("title")) $fulltext .= "<tr><td align='center'><b>".spchars($story->getField("title"))."</b></td></tr>"; */ if ($storyObj->getField("shorttext")) { $captiontext = $st = convertTagsToInteralLinks($site, $storyObj->getField("shorttext")); $captiontext = "<br />" . stripslashes($captiontext); } $fulltext .= ""; } if ($storyObj->getField("type") == 'file') { $fulltext = "<br />"; $fulltext .= makedownloadbar($storyObj); } /****************************************************************************** * print out shory and discussion (if any) ******************************************************************************/ printc("\n<table width='100%' id='maintable' cellspacing='1'>"); printc($pagePagination); /****************************************************************************** * print out title and options ******************************************************************************/ printc("<tr><td align='left' class='title'>"); printc("<a href='index.php?action=" . $action . "&" . $getinfo2 . "'>" . spchars($pageObj->getField('title')) . "</a>"); if ($storyObj->getField('title')) { printc(" > " . spchars($storyObj->getField('title'))); } /******************************************************************************