/** * function getContent get the raw content of archive without html escape * attention, it has attachment data * * @return string the content of archive * @access public * @throws ArchiveFileNullException */ public function getContent() { $file = $this->getFileName(); if (!file_exists($file)) { throw new ArchiveFileNullException("can't find file:{$file}"); } return bbs_originfile($file); }
echo $brd_encode; ?> ">本讨论区</a>]<br/> 标 题: <input type="text" name="title" size="40" maxlength="100" value="<?php echo htmlspecialchars($articles[1]['TITLE'], ENT_QUOTES); ?> " /> <?php if (defined("ENABLE_JSMATH")) { ?> <input type="checkbox" name="havemath" value="1" <?php print $articles[1]["IS_TEX"] ? "checked " : ""; ?> />数学公式 <?php } ?> <textarea name="text" onkeydown='return textarea_okd(dosubmit, event);' wrap="physical" id="sfocus"> <?php print htmlspecialchars(bbs_originfile($board, $articles[1]['FILENAME'])); ?> </textarea> <div class="oper"> <input type="button" onclick="dosubmit();" name="post" value="修改" /> <input type="reset" value="复原" /> <input type="button" value="返回" onclick="history.go(-1)" /> <input type="hidden" name="code" id="post_code" value="abcd" /> </div></fieldset> </form> <?php page_footer();
/** * function getContent get the content(signature) of article * no title, no attachment data, but only for article * * @return string * @access public * @override */ public function getContent() { return bbs_originfile($this->_board->NAME, $this->FILENAME); }