<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel rdf:about="https://www.ishiguang.cn/feed/rss/18249.html">
<title>拾光 - Typecho如何判断是否加密文章 的评论</title>
<link>https://www.ishiguang.cn/18249.html</link>
<description>Typecho如何判断是否加密文章typecho判断加密文章的方法if ($this-&amp;gt;hidden) {    //是加密文章并且未解锁} else {    //不是加密文章或者已解锁...</description>
<items>
<rdf:Seq>
<rdf:li resource="https://www.ishiguang.cn/18249.html/comment-page-1#comment-528"/>
<rdf:li resource="https://www.ishiguang.cn/18249.html/comment-page-1#comment-527"/>
</rdf:Seq>
</items>
</channel>
<item rdf:about="https://www.ishiguang.cn/18249.html/comment-page-1#comment-528">
<title>admin</title>
<link>https://www.ishiguang.cn/18249.html/comment-page-1#comment-528</link>
<dc:date>2023-11-15T10:12:09+08:00</dc:date>
<description>去更新最新版本吧</description>
</item>
<item rdf:about="https://www.ishiguang.cn/18249.html/comment-page-1#comment-527">
<title>小白</title>
<link>https://www.ishiguang.cn/18249.html/comment-page-1#comment-527</link>
<dc:date>2023-11-15T09:51:37+08:00</dc:date>
<description>我的还在用0.9版本 用的默认文章加密 第一次输入密码正确能打开 后面就一直说密码错误 是什么原因啊？/** 处理密码保护流程 */
if (!empty($value['password']) &&
$value['password'] != $this->request->protectPassword &&
$value['authorId'] != $this->user->uid &&
!$this->user->pass('editor', true)) {
$value['hidden'] = true;/** 抛出错误 */
if ($this->request->isPost() && isset($this->request->protectPassword)) {
throw new Typecho_Widget_Exception(_t('对不起,您输入的密码错误'), 403);
}
}$value = $this->pluginHandle(__CLASS__)->filter($value, $this);/** 如果访问权限被禁止 */
if ($value['hidden']) {
$value['text'] = '' .
'' . _t('请输入密码访问') . '' .
'
            ' .
'';//$value['title'] = _t('此内容被密码保护');
$value['tags'] = array();
$value['commentsNum'] = 0;
}return $value;
}</description>
</item>
</rdf:RDF>