Пример #1
0
 /**
  * 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);
 }
Пример #2
0
echo $brd_encode;
?>
">本讨论区</a>]<br/>
标&nbsp;&nbsp;题: <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="修改" />&nbsp;&nbsp;&nbsp;&nbsp;
<input type="reset" value="复原" />&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" value="返回" onclick="history.go(-1)" />
<input type="hidden" name="code" id="post_code" value="abcd" />
</div></fieldset>
</form>
<?php 
page_footer();
Пример #3
0
 /**
  * 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);
 }