Lines Matching refs:comment

272                         $comment['user']['id'] = $_SERVER['REMOTE_USER'];
273 $comment['user']['name'] = $INFO['userinfo']['name'];
274 $comment['user']['mail'] = $INFO['userinfo']['mail'];
281 $comment['user']['id'] = 'test'.hsc($_REQUEST['user']);
282 $comment['user']['name'] = hsc($_REQUEST['name']);
283 $comment['user']['mail'] = hsc($_REQUEST['mail']);
286 … $comment['user']['address'] = ($this->getConf('addressfield')) ? hsc($_REQUEST['address']) : '';
287 … $comment['user']['url'] = ($this->getConf('urlfield')) ? $this->_checkURL($_REQUEST['url']) : '';
288 … $comment['subscribe'] = ($this->getConf('subscribe')) ? $_REQUEST['subscribe'] : '';
289 $comment['date'] = array('created' => $_REQUEST['date']);
290 $comment['raw'] = cleanText($_REQUEST['text']);
293 $comment['show'] = false;
295 $comment['show'] = true;
297 $this->_add($comment, $repl);
490 * @param array $comment
494 protected function _add($comment, $parent) { argument
499 $TEXT = $comment['raw'];
508 && ($comment['user']['id'] != $_SERVER['REMOTE_USER'])
527 if ($comment['date']['created']) {
528 $date = strtotime($comment['date']['created']);
537 $cid = md5($comment['user']['id'].$date); // create a unique id
544 $xhtml = $this->_render($comment['raw']);
548 'user' => $comment['user'],
550 'raw' => $comment['raw'],
554 'show' => $comment['show']
557 if($comment['subscribe']) {
558 $mail = $comment['user']['mail'];
732 $comment = $data['comments'][$cid];
734 if (!is_array($comment)) return false; // corrupt datatype
736 if ($comment['parent'] != $parent) return true; // reply to an other comment
738 if (!$comment['show']) { // comment hidden
764 $comment = $data['comments'][$cid];
773 if (is_array($comment['user'])) { // new format
774 $user = $comment['user']['id'];
775 $name = $comment['user']['name'];
776 $mail = $comment['user']['mail'];
777 $url = $comment['user']['url'];
778 $address = $comment['user']['address'];
780 $user = $comment['user'];
781 $name = $comment['name'];
782 $mail = $comment['mail'];
783 $url = $comment['url'];
784 $address = $comment['address'];
786 if (is_array($comment['date'])) { // new format
787 $created = $comment['date']['created'];
788 $modified = $comment['date']['modified'];
790 $created = $comment['date'];
791 $modified = $comment['edited'];
835 echo ($HIGH?html_hilight($comment['xhtml'],$HIGH):$comment['xhtml']).DOKU_LF;
842 if (($data['status'] == 1) && !$reply && $comment['show']
851 … $label = ($comment['show'] ? $this->getLang('btn_hide') : $this->getLang('btn_show'));
881 $comment = $data['comments'][$cid];
882 if (!count($comment['replies'])) {
886 $visible = ($comment['show'] && $visible);
887 foreach ($comment['replies'] as $rid) {
1226 * @param array $comment data array of the new comment
1232 protected function _notify($comment, &$subscribers) { argument
1249 'DATE' => dformat($comment['date']['created'], $conf['dformat']),
1250 'NAME' => $comment['user']['name'],
1251 'TEXT' => $comment['raw'],
1252 'COMMENTURL' => wl($ID, '', true) . '#comment_' . $comment['cid'],
1360 foreach ($data['comments'] as $comment) {
1361 if ($comment['parent']) continue;
1362 if (!$comment['show']) continue;
1364 $rids = $comment['replies'];
1634 $comment = $data['comments'][$cid];
1636 if (!is_array($comment)) return false; // corrupt datatype
1637 if ($comment['parent'] != $parent) return false; // reply to an other comment
1638 if (!$comment['show']) return false; // hidden comment
1640 $text = utf8_strtolower($comment['raw']);
1645 if (is_array($comment['replies'])) { // and the replies
1646 foreach ($comment['replies'] as $rid) {
1704 $comment = $data['comments'][$cid];
1706 if (!is_array($comment)) return ''; // corrupt datatype
1707 if ($comment['parent'] != $parent) return ''; // reply to an other comment
1708 if (!$comment['show']) return ''; // hidden comment
1710 $text = $comment['raw']; // we only add the raw comment text
1711 if (is_array($comment['replies'])) { // and the replies
1712 foreach ($comment['replies'] as $rid) {