4 function viewsrc_content(App &$a) {
7 notice( t('Access denied.') . EOL);
11 $item_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
15 notice( t('Item not found.') . EOL);
19 $r = q("SELECT `item`.`body` FROM `item`
20 WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0
21 and `item`.`moderated` = 0
22 AND `item`.`id` = '%s' LIMIT 1",
27 if (dbm::is_result($r))
29 echo str_replace("\n",'<br />',$r[0]['body']);
32 $o .= str_replace("\n",'<br />',$r[0]['body']);