Changeset 2486 for trunk/app/views/elements/one_entry.ctp
- Timestamp:
- 08/27/10 17:14:12 (21 months ago)
- File:
-
- 1 edited
-
trunk/app/views/elements/one_entry.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/elements/one_entry.ctp
r2327 r2486 59 59 e($this->Html->para(null, nl2br(h($v['comment'])))); #we don't wanna XSS so escape comments 60 60 e('<span class="small" style="font-size:7pt;font-weight:bold;">' . $v['created'] . '</span>'); 61 if ( $ session->check('Auth.User') and $session->check('Auth.User.id') == $blogger['User']['id']): # teacher see his/her own blog61 if ( $this->Session->check('Auth.User') and $this->Session->check('Auth.User.id') == $blogger['User']['id']): # teacher see his/her own blog 62 62 $msg = __('Are you sure to want to delete this?', True); 63 63 echo $this->Html->div(Null); … … 77 77 e($this->Form->hidden('Comment.entry_id', array('value'=>$entry_id))); 78 78 e($this->Form->hidden('Comment.blogger_id', array('value'=> $val['Entry']['user_id']))); 79 if ( $ session->check('Auth.User') ): # user is logged in ?>79 if ( $this->Session->check('Auth.User') ): # user is logged in ?> 80 80 <fieldset> 81 81 <legend id="new_comment"><?php __('New Comment'); ?></legend> 82 82 <?php 83 echo $ session->read('Auth.User.username') . ' '. __('writes', True) .' ';83 echo $this->Session->read('Auth.User.username') . ' '. __('writes', True) .' '; 84 84 else: 85 85 # show captcha if anonymous user and discution is enabled 86 #debug($ session->read());86 #debug($this->Session->read()); 87 87 echo $this->Html->image($this->webroot.'comments/captcha/', array('id'=>'captcha', 'alt'=>'CAPTCHA Image')); 88 88 echo $this->Form->input('Comment.captcha', array('size'=>10,'maxlenbgth'=>10, 'between'=>':<br />','label'=>__('Enter characters showing up',True)));
Note: See TracChangeset
for help on using the changeset viewer.
