- select()->from('table.comments') - ->where('cid = ?', $this->cid) - ->where('mail = ?', $this->remember('mail', true)) - ->limit(1); - $result = $db->fetchAll($sql); - if ($this->user->hasLogin() || $result) { - $content = preg_replace("/\[hide\](.*?)\[\/hide\]/sm", '
$1
', $this->content); - } else { - $content = preg_replace("/\[hide\](.*?)\[\/hide\]/sm", '

此处内容 回复 可见

', $this->content); - } - echo $content; - ?> + select()->from('table.comments') + ->where('cid = ?', $this->cid) + ->where('mail = ?', $this->remember('mail', true)) + ->limit(1); + $result = $db->fetchAll($sql); + if ($this->user->hasLogin() || $result) { + $content = preg_replace("/\[hide\](.*?)\[\/hide\]/sm", '
$1
', $this->content); + } else { + $content = preg_replace("/\[hide\](.*?)\[\/hide\]/sm", '

此处内容 回复 可见

', $this->content); + } + echo $content; + ?>