Lines Matching refs:cid

267             $cid  = $_REQUEST['cid'];
302 $this->save(array($cid), $raw);
306 $this->save(array($cid), '');
310 $this->save(array($cid), '', 'toogle');
322 $cid = $_REQUEST['cid'];
323 if(!$cid) {
324 $cid = $_REQUEST['reply'];
328 $this->_show(NULL, $cid);
331 $this->_show($cid);
339 protected function _redirect($cid) { argument
353 $url = wl($ID) . '#comment_' . $cid;
476 foreach($keys as $cid) {
477 if (!empty($comments[$cid]['replies'])) {
478 $rids = $comments[$cid]['replies'];
480 $comments[$cid]['replies'] = array();
482 $comments[$cid]['parent'] = '';
537 $cid = md5($comment['user']['id'].$date); // create a unique id
547 $data['comments'][$cid] = array(
582 $data['comments'][$parent]['replies'][] = $cid;
589 $data['comments'][$cid]['cid'] = $cid;
590 $this->_notify($data['comments'][$cid], $data['subscribers']);
594 $this->_addLogEntry($date, $ID, 'cc', '', $cid);
596 $this->_redirect($cid);
633 foreach ($cids as $cid) {
635 if (is_array($data['comments'][$cid]['user'])) {
636 $user = $data['comments'][$cid]['user']['id'];
639 $user = $data['comments'][$cid]['user'];
650 $data['comments'][$cid]['user'] = array(
652 'name' => $data['comments'][$cid]['name'],
653 'mail' => $data['comments'][$cid]['mail'],
654 'url' => $data['comments'][$cid]['url'],
655 'address' => $data['comments'][$cid]['address'],
657 $data['comments'][$cid]['date'] = array(
658 'created' => $data['comments'][$cid]['date']
663 $now = $data['comments'][$cid]['show'];
664 $data['comments'][$cid]['show'] = !$now;
667 $type = ($data['comments'][$cid]['show'] ? 'sc' : 'hc');
670 $data['comments'][$cid]['show'] = true;
676 $data['comments'][$cid]['show'] = false;
682 $data['comments'] = $this->_removeComment($cid, $data['comments']);
691 $data['comments'][$cid]['date']['modified'] = $date;
692 $data['comments'][$cid]['raw'] = $raw;
693 $data['comments'][$cid]['xhtml'] = $xhtml;
701 $this->_addLogEntry($date, $ID, $type, '', $cid);
703 $this->_redirect($cid);
710 protected function _removeComment($cid, $comments) { argument
711 if (is_array($comments[$cid]['replies'])) {
712 foreach ($comments[$cid]['replies'] as $rid) {
716 unset($comments[$cid]);
723 * @param string $cid
730 protected function _print($cid, &$data, $parent = '', $reply = '', $visible = true) { argument
731 if (!isset($data['comments'][$cid])) return false; // comment was removed
732 $comment = $data['comments'][$cid];
746 $this->_print_comment($cid, $data, $parent, $reply, $visible, $hidden);
748 $this->_print_replies($cid, $data, $reply, $visible);
750 $this->_print_form($cid, $reply);
762 protected function _print_comment($cid, &$data, $parent, $reply, $visible, $hidden) { argument
764 $comment = $data['comments'][$cid];
769 ptln('<a name="comment_'.$cid.'" id="comment_'.$cid.'"></a>', 8);
845 $this->_button($cid, $this->getLang('btn_reply'), 'reply', true);
850 $this->_button($cid, $lang['btn_secedit'], 'edit', true);
852 $this->_button($cid, $label, 'toogle');
853 $this->_button($cid, $lang['btn_delete'], 'delete');
861 * @param string $cid
864 protected function _print_form($cid, $reply) argument
866 if ($this->getConf('usethreading') && $reply == $cid) {
868 $this->_form('', 'add', $cid);
874 * @param string $cid
879 protected function _print_replies($cid, &$data, $reply, &$visible) argument
881 $comment = $data['comments'][$cid];
888 $this->_print($rid, $data, $cid, $reply, $visible);
936 protected function _form($raw = '', $act = 'add', $cid = NULL) { argument
967 <input type="hidden" name="reply" value="<?php echo $cid ?>" />
1027 <input type="hidden" name="cid" value="<?php echo $cid ?>" />
1088 * @param string $cid
1094 protected function _button($cid, $label, $act, $jump = false) { argument
1105 <input type="hidden" name="cid" value="<?php echo $cid ?>" />
1632 function comment_phrase_match($phrase, $cid, &$data, $parent = '') { argument
1633 if (!isset($data['comments'][$cid])) return false; // comment was removed
1634 $comment = $data['comments'][$cid];
1647 if ($this->comment_phrase_match($phrase, $rid, $data, $cid)) {
1696 * @param string $cid
1701 protected function _addCommentWords($cid, &$data, $parent = '') { argument
1703 if (!isset($data['comments'][$cid])) return ''; // comment was removed
1704 $comment = $data['comments'][$cid];
1713 $text .= $this->_addCommentWords($rid, $data, $cid);