Changeset 2486


Ignore:
Timestamp:
08/27/10 17:14:12 (18 months ago)
Author:
aarkerio
Message:

Helper updated

Location:
trunk/app/views
Files:
83 edited

Legend:

Unmodified
Added
Removed
  • trunk/app/views/acquaintances/admin_listing.ctp

    r2419 r2486  
    2121    echo $this->Html->div('title_section',  
    2222         $this->Html->image('ylinks.png',array('style'=>'width:35px;margin-right:6px;','alt'=>__('Usefull links',True),'title'=>__('Usefull links',True))) 
    23          .' '.$session->read('Auth.User.username') . '\'s '.__('Usefull links', True)); 
     23         .' '.$this->Session->read('Auth.User.username') . '\'s '.__('Usefull links', True)); 
    2424 
    2525    # Here beggins the cool stuff 
  • trunk/app/views/catfaqs/admin_edit.ctp

    r2450 r2486  
    11<?php  
    22 #die(debug($this->data));  
    3  $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     3 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    44 
    55 if ( !isset($add) ): # load only if not is an ajax call 
  • trunk/app/views/catforums/admin_listing.ctp

    r2259 r2486  
    6464                        'alt'=>__('Edit', True), 'title'=>__('Edit', True))),  
    6565                         '/admin/forums/edit/'.$v['catforum_id'].'/'.$v['id'], array('escape'=>False)) .'</td>'; 
    66      echo '<td>'.$this->Html->link($v['title'], '/forums/display/'.$session->read('Auth.User.username').'/'.$v['id'].'/'.$v['vclassroom_id']) .'</td>'; 
     66     echo '<td>'.$this->Html->link($v['title'], '/forums/display/'.$this->Session->read('Auth.User.username').'/'.$v['id'].'/'.$v['vclassroom_id']) .'</td>'; 
    6767     echo '<td colspan="2"> '. $v['description'] .' </td>'; 
    6868     echo '<td>'. $this->Html->link($this->Html->image($img, array('width'=>'14px', 'alt'=>$st, 'title'=>$st)),  
  • trunk/app/views/catglossaries/admin_edit.ctp

    r2420 r2486  
    11<?php 
    2  $helps = $session->read('Auth.User.helps'); # helps enabled ?  
     2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ?  
    33 $this->Html->addCrumb('Control Tools', '/admin/entries/start');  
    44 $this->Html->addCrumb(__('Glossaries', True), '/admin/catglossaries/listing');  
  • trunk/app/views/chats/admin_record.ctp

    r2473 r2486  
    22echo $this->set('title_for_layout', __('Chat Record', True)); 
    33#die(debug($msgs)); 
    4 $helps = $session->read('Auth.User.helps'); # helps enabled 
     4$helps = $this->Session->read('Auth.User.helps'); # helps enabled 
    55echo $this->Html->image('static/chat_logo.jpg', array('alt'=>'Chat')); 
    66echo '<h2>'.__('All chats in vClassroom', True).': '.$data['Vclassroom']['name'].'</h2>'; 
  • trunk/app/views/collections/admin_add.ctp

    r2450 r2486  
    44 
    55#die(debug($data)); 
    6 $helps = $session->read('Auth.User.helps'); # helps enabled 
     6$helps = $this->Session->read('Auth.User.helps'); # helps enabled 
    77$this->Html->addCrumb('Control Panel', '/admin/entries/start'); 
    88$this->Html->addCrumb(__('Collections', True), '/admin/collections/listing'); 
  • trunk/app/views/collections/admin_edit.ctp

    r2248 r2486  
    11<?php 
    2  $helps = $session->read('Auth.User.helps'); # helps enabled 
     2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled 
    33 $this->Html->addCrumb('Control Panel', '/admin/entries/start');  
    44 $this->Html->addCrumb(__('Collections', True), '/admin/collections/listing');  
  • trunk/app/views/collections/search.ctp

    r2450 r2486  
    1212$th = array ( __('Title', True), __('Author', True), __('Copies', True), __('Category', True), __('Clasification', True)); 
    1313 
    14 if ( $session->read('Auth.User') ): 
     14if ( $this->Session->read('Auth.User') ): 
    1515    #array_push($th, __('Request', True)); 
    1616    $logged = True; 
  • trunk/app/views/colleges/admin_edit.ctp

    r2417 r2486  
    1616echo $this->Form->input('College.name', array('size' => 60, 'class'=>'required')); 
    1717echo $this->Form->input('College.description', array('type'=>'textarea', 'cols' => 60, 'rows' => 3, 'class'=>'required')); 
    18 echo $ck->load('CollegeDescription', 'Karamelo', $session->read('Auth.User.lang')); 
     18echo $ck->load('CollegeDescription', 'Karamelo', $this->Session->read('Auth.User.lang')); 
    1919echo $this->Form->input('College.email', array('size' => 40, 'maxlength'=>60)); 
    2020echo $this->Form->input('College.twitter', array('size' => 9, 'maxlength'=>60)); 
  • trunk/app/views/colleges/calendar.ctp

    r2450 r2486  
    88    echo $this->Html->div(null, null, array('style'=>'margin:10px auto;text-align:center;')); 
    99    $title = 'Calendario '.$data['College']['name']; 
    10     $lang  = $session->check('Auth') ? $session->read('Auth.User.lang') : 'es'; 
     10    $lang  = $this->Session->check('Auth') ? $this->Session->read('Auth.User.lang') : 'es'; 
    1111?> 
    1212    <iframe src="http://www.google.com/calendar/embed?title=<?php echo $title;?>%20&amp;height=600&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;hl=<?php echo $lang; ?>&amp;src=<?php echo $data['College']['gcalendar_id'];?>&amp;color=%232952A3&amp;ctz=America%2FMexico_City" style=" border-width:0 " width="600" height="600" frameborder="0" scrolling="no"></iframe> 
  • trunk/app/views/comments/admin_edit.ctp

    r2248 r2486  
    1414<?php 
    1515  echo $this->Form->input('Comment.comment', array('cols'=>80, 'rows'=>65 'label' => __('Comment', True), 'type'=>'textarea')); 
    16   echo $ck->load('CommentComment', 'Karamelo', $session->read('Auth.User.lang'), 700, 300); 
     16  echo $ck->load('CommentComment', 'Karamelo', $this->Session->read('Auth.User.lang'), 700, 300); 
    1717  echo $this->Form->end(__('Save', True));   
    1818?> 
  • trunk/app/views/comments/admin_listing.ctp

    r2369 r2486  
    8585 
    8686      #Start the block 
    87       echo __('Entry', True) . ': '.$this->Html->link($v['Entry']['title'], '/entries/view/'.$session->read('Auth.User.username').'/'.$v['Entry']['id'], array('target'=>'_blank')) . '<br /><br />'; 
     87      echo __('Entry', True) . ': '.$this->Html->link($v['Entry']['title'], '/entries/view/'.$this->Session->read('Auth.User.username').'/'.$v['Entry']['id'], array('target'=>'_blank')) . '<br /><br />'; 
    8888      echo $user . ' ' . __('wrote', true) . ':<br />'; 
    8989      echo $this->Html->para(null, nl2br(h($v['Comment']['comment']))); 
  • trunk/app/views/ecourses/admin_assign.ctp

    r2248 r2486  
    11<?php 
    2  $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    33 
    44 $this->Html->addCrumb('Control Panel', '/admin/entries/start'); 
  • trunk/app/views/ecourses/admin_edactivity.ctp

    r2248 r2486  
    44 
    55$edit  =  isset($this->data['Activity']) ? True : False ; # edit or add form 
    6 $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     6$helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    77 
    88if ( $edit ): 
     
    6060 
    6161# Ck stuff 
    62 echo $ck->load('ActivityActivity', 'Basic', $session->read('Auth.User.lang'), 800, 150); 
    63 echo $ck->load('ActivityNotes', 'Basic', $session->read('Auth.User.lang'), 800, 150); 
     62echo $ck->load('ActivityActivity', 'Basic', $this->Session->read('Auth.User.lang'), 800, 150); 
     63echo $ck->load('ActivityNotes', 'Basic', $this->Session->read('Auth.User.lang'), 800, 150); 
    6464?> 
    6565</div> 
  • trunk/app/views/ecourses/admin_edit.ctp

    r2248 r2486  
    11<?php  
    2  $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    33 echo $this->Html->script('ckeditor/ckeditor'); 
    44 
     
    4646  echo $gags->helps('Describa el curso, las horas de duración, asi como los objetivos, la audiencia a la que va dirigida, y el temario', $helps, True); 
    4747  echo $this->Form->input('Ecourse.description', array('type'=>'textarea','cols'=>40, 'rows'=>4,'label'=>__('Description', True))); 
    48   echo $ck->load('EcourseDescription', 'Karamelo', $session->read('Auth.User.lang')); 
     48  echo $ck->load('EcourseDescription', 'Karamelo', $this->Session->read('Auth.User.lang')); 
    4949?> 
    5050 </td></tr> 
  • trunk/app/views/ecourses/admin_wzdone.ctp

    r2248 r2486  
    11<?php  
    2 $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     2$helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    33echo $this->Form->create('Ecourse', array('url'=>$this->here));  
    44?> 
  • trunk/app/views/ecourses/admin_wzdthree.ctp

    r2248 r2486  
    11<?php  
    2   $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     2  $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    33  echo $this->Form->create('Ecourse', array('url'=>$this->here));  
    44?> 
  • trunk/app/views/ecourses/admin_wzdtwo.ctp

    r2248 r2486  
    33 <legend><?php __('Step Two'); ?></legend> 
    44<?php 
    5 $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     5$helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    66#debug($this->data); 
    77echo $this->Html->div('wizard');  
  • trunk/app/views/elements/chat_messages.ctp

    r2473 r2486  
    11<?php 
    22#debug($msgs); 
    3 $user_id = $session->read('Auth.User.id'); # easier to read and faster 
     3$user_id = $this->Session->read('Auth.User.id'); # easier to read and faster 
    44$msgs = array_reverse($msgs); 
    55foreach ($msgs as $m): 
  • trunk/app/views/elements/chkmsg.ctp

    r2248 r2486  
    22$new_message = $this->requestAction('messages/chkMsg'); 
    33$img = ($new_message != False) ?  'static/mail.png' : 'static/mailgray.png'; 
    4 $url = ( $session->read('Auth.User.group_id') > 2 ) ?  '/messages/listing':  '/admin/messages/listing'; 
     4$url = ( $this->Session->read('Auth.User.group_id') > 2 ) ?  '/messages/listing':  '/admin/messages/listing'; 
    55echo $this->Html->link($this->Html->image($img, array('alt'=>__('Messages', True), 'title'=>__('Messages', True))), $url,array('escape'=>False)) . ' | '; 
    66?> 
  • trunk/app/views/elements/navmenu.ctp

    r2248 r2486  
    99               $this->Html->link(__('Contact', True),   '/messages/message/'.$blogger['User']['username']) 
    1010              ); 
    11 if ( $session->check('Auth.User') and ( $session->read('Auth.User.group_id') < 3 ) ): 
     11if ( $this->Session->check('Auth.User') and ( $this->Session->read('Auth.User.group_id') < 3 ) ): 
    1212    array_push($buttons,  $this->Html->link(__('Admin Panel', True),  '/admin/entries/start')); 
    1313endif; 
    1414 
    15 if ( $session->check('Auth.User') ): 
     15if ( $this->Session->check('Auth.User') ): 
    1616    array_push($buttons,  $this->Html->link(__('Logout', True),  '/users/logout')); 
    1717endif; 
  • trunk/app/views/elements/new.ctp

    r2248 r2486  
    4747        endforeach; 
    4848        echo '</div>'; 
    49         if ( $session->check('Auth.User') ): 
     49        if ( $this->Session->check('Auth.User') ): 
    5050            echo $this->Form->create('Discussion', array('action'=>'add')); 
    5151            echo $this->Form->hidden('Discussion.new_id',  array('value'=>$data['News']['id'])); 
     
    5656            <?php  
    5757            echo $this->Form->input('Discussion.comment', array('type'=>'textarea', 'between'=>'<br />', 'cols'=>60, 'rows'=>10,  
    58                          'label'=>'<b>'.$session->read('Auth.User.username') .'</b> '. __('write', True) )); 
     58                         'label'=>'<b>'.$this->Session->read('Auth.User.username') .'</b> '. __('write', True) )); 
    5959            echo $this->Form->end(__('Send comment', True)); 
    6060        else: 
  • trunk/app/views/elements/one_entry.ctp

    r2327 r2486  
    5959            e($this->Html->para(null, nl2br(h($v['comment'])))); #we don't wanna XSS so escape comments 
    6060            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 blog 
     61            if (  $this->Session->check('Auth.User') and  $this->Session->check('Auth.User.id') == $blogger['User']['id']):  # teacher see his/her own blog 
    6262                $msg   = __('Are you sure to want to delete this?', True); 
    6363                echo $this->Html->div(Null); 
     
    7777        e($this->Form->hidden('Comment.entry_id', array('value'=>$entry_id))); 
    7878        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 ?>  
    8080            <fieldset> 
    8181            <legend id="new_comment"><?php __('New Comment'); ?></legend> 
    8282            <?php 
    83             echo $session->read('Auth.User.username') . ' '.  __('writes', True) .' '; 
     83            echo $this->Session->read('Auth.User.username') . ' '.  __('writes', True) .' '; 
    8484        else: 
    8585            # show captcha if anonymous user and discution is enabled 
    86             #debug($session->read()); 
     86            #debug($this->Session->read()); 
    8787            echo $this->Html->image($this->webroot.'comments/captcha/', array('id'=>'captcha', 'alt'=>'CAPTCHA Image')); 
    8888            echo $this->Form->input('Comment.captcha', array('size'=>10,'maxlenbgth'=>10, 'between'=>':<br />','label'=>__('Enter characters showing up',True))); 
  • trunk/app/views/elements/permissions.ctp

    r2248 r2486  
    99          __('Current time', True).':  <b>'.date("F d, Y H:i:s", time()).'</b>'; 
    1010    e($this->Html->para(null, '<h1>'.__('Out of date', True).'</h1> '.$d)); 
    11     if ( $kandie_user_id == $session->read('Auth.User.id')): 
     11    if ( $kandie_user_id == $this->Session->read('Auth.User.id')): 
    1212        $img = $this->Html->image('admin/icon_jigsaw.png', array('alt'=>__('Kandies Manager', True), 'title'=>__('Kandies Manager', True), 'style'=>'margin:0')); 
    1313        echo $this->Html->para(null,  
  • trunk/app/views/elements/poll.ctp

    r2428 r2486  
    55echo $gags->ajaxDiv('add_pollrow'); 
    66$poll = $this->requestAction('polls/poll');  
    7 $poll_id = $session->read('poll_id'); 
     7$poll_id = $this->Session->read('poll_id'); 
    88#die(debug($poll)); 
    99$question =  $this->Html->para('negrita', $poll['Poll']['question'], array('style'=>'text-align:left;')); 
  • trunk/app/views/elements/toplink.ctp

    r2248 r2486  
    22<?php 
    33echo $this->Html->link(__('Home', True), '/') . ' | '; 
    4 if ( $session->check('Auth.User') ): 
     4if ( $this->Session->check('Auth.User') ): 
    55    echo '<span style="font-size:7pt;color:#ffe400;padding-right:3px">'.__('logged_in', True).' <b> '; 
    6     echo $session->read('Auth.User.username') .'</b></span>| '.$this->Html->link(__('Logout', True), '/users/logout') . ' | '; 
     6    echo $this->Session->read('Auth.User.username') .'</b></span>| '.$this->Html->link(__('Logout', True), '/users/logout') . ' | '; 
    77 
    8     if ( $session->read('Auth.User.group_id') < 3 ): # the logged user is teacher or admin? 
     8    if ( $this->Session->read('Auth.User.group_id') < 3 ): # the logged user is teacher or admin? 
    99         echo $this->Html->link(__('cPanel', True), '/admin/entries/start') . ' | '; 
    1010    endif; 
    1111     
    12     if (  $session->read('Auth.User.group_id') == 3 ): # logged user is student 
     12    if (  $this->Session->read('Auth.User.group_id') == 3 ): # logged user is student 
    1313         echo $this->Html->link(__('My profile', True), '/users/edit'). ' | '; 
    1414    endif; 
  • trunk/app/views/elements/userform.ctp

    r2326 r2486  
    11<?php 
    22#debug( $this->data ); 
    3 if ($this->data['User']['id'] != $session->read('Auth.User.id')):   #security check 
     3if ($this->data['User']['id'] != $this->Session->read('Auth.User.id')):   #security check 
    44    echo $this->__getSupport(); 
    55endif; 
     
    1313echo $this->Form->hidden('Profile.modified', array('value'=>'now()')); 
    1414echo '<fieldset>'; 
    15 echo '<legend>'.$session->read('Auth.User.username') .'\'s '.__('profile', True).'</legend>'; 
     15echo '<legend>'.$this->Session->read('Auth.User.username') .'\'s '.__('profile', True).'</legend>'; 
    1616echo $this->Html->div(Null, '<b>'.$this->data['User']['email'].'</b>'); 
    1717echo $this->Form->input('User.name', array('size' => 35, 'maxlength'=>50));  
     
    2525echo $this->Form->input('Profile.matricula', array('size'=>20,'maxlength'=>20,'title'=>__('If you are student, write your matricula number', True))); 
    2626 
    27 if ( $session->read('Auth.User.group_id') < 3):  # admin and teachers 
     27if ( $this->Session->read('Auth.User.group_id') < 3):  # admin and teachers 
    2828    echo $this->Form->input('Profile.quote', array('size' => 70, 'maxlength' => 150, 'label'=>__('Quote', True))); 
    2929    echo $this->Form->input('Profile.name_blog', array('size' => 45, 'maxlength' => 150, 'label'=>__('eduBlog name', True))); 
  • trunk/app/views/entries/admin_comments.ctp

    r2258 r2486  
    2323          $img   = 'static/status_0_icon.png'; 
    2424      endif; 
    25       echo __('Entry', True) . ': '.$this->Html->link($v['Entry']['title'], '/entries/view/'.$session->read('Auth.User.username').'/'.$v['Entry']['id'], array('target'=>'_blank')) . '<br /><br />'; 
     25      echo __('Entry', True) . ': '.$this->Html->link($v['Entry']['title'], '/entries/view/'.$this->Session->read('Auth.User.username').'/'.$v['Entry']['id'], array('target'=>'_blank')) . '<br /><br />'; 
    2626      echo $this->Html->link( 
    2727                  $this->Html->image('avatars/'.$c['User']['avatar'], array('alt'=>$c['User']['username'], 'title'=>$c['User']['username'])),  
  • trunk/app/views/entries/admin_edit.ctp

    r2482 r2486  
    2626  echo $this->Form->input('Entry.body', array('type'=>'textarea', 'cols'=>80, 'rows'=>22, 'label'=>False));  
    2727  echo $this->Html->scriptBlock("$('textarea#EntryBody').ckeditor({ toolbar:'Karamelo', width:800, height:500 });"); 
    28   #echo $ck->ckAjaxPlugin('EntryBody','Karamelo', $session->read('Auth.User.lang'), 800, 500); 
     28  #echo $ck->ckAjaxPlugin('EntryBody','Karamelo', $this->Session->read('Auth.User.lang'), 800, 500); 
    2929 ?> 
    3030  </td></tr> 
  • trunk/app/views/entries/admin_general.ctp

    r2338 r2486  
    11<?php 
    22# This is the Welcome message 
    3 $this->pageTitle = 'Welcome! '. $session->read('Auth.User.username'); 
     3$this->pageTitle = 'Welcome! '. $this->Session->read('Auth.User.username'); 
    44echo $this->Html->div('divblock'); 
    55 
  • trunk/app/views/entries/admin_listing.ctp

    r2481 r2486  
    4040echo $gags->ajaxDiv('list'); 
    4141 
    42 $username = $session->read('Auth.User.username'); 
     42$username = $this->Session->read('Auth.User.username'); 
    4343if ( count($data) < 1 ): 
    4444    echo '<h1>'.__('No entries yet', True) .'</h1>'; 
  • trunk/app/views/entries/admin_start.ctp

    r2426 r2486  
    99# no teacher entries, so show welcome message 
    1010if ( !$data ): 
    11     $link = '<i>'.$session->read('Auth.User.username') ."'s blog </i>"; 
     11    $link = '<i>'.$this->Session->read('Auth.User.username') ."'s blog </i>"; 
    1212    $str  =  $this->Html->image('static/help-renky.jpg', array('title'=>'renky', 'alt'=>'renky', 'style'=>'float:left;')) .' '; 
    1313    $str .= __("Hi! I'm Renky, the annoying Karamelo's pet", True) .'.<br /><br /> '; 
     
    1818<h2><?php __('Teacher tools');?></h2> 
    1919<?php 
    20 #debug($session->read('Auth.User')); 
     20#debug($this->Session->read('Auth.User')); 
    2121$tmp  = $this->Html->link($this->Html->image('blog.png', array('title'=>'EduBlog','alt'=>'EduBlog')), '/admin/entries/listing', array('escape'=>False));  
    2222$tmp .= $this->Html->link('eduBlog', '/admin/entries/listing', array('title'=>'Blog', 'class'=>'main-item-caption')); 
     
    125125<div style="clear:both;"></div> 
    126126<br /> 
    127 <?php if ( $session->read('Auth.User.group_id') == 1 ):  ?> 
     127<?php if ( $this->Session->read('Auth.User.group_id') == 1 ):  ?> 
    128128   <h2><?php __('Admin sections');?></h2> 
    129129<?php  
    130130endif;  
    131131 
    132 if ( $session->read('Auth.User.group_id') == 1 ):  
     132if ( $this->Session->read('Auth.User.group_id') == 1 ):  
    133133    $tmp  = $this->Html->link($this->Html->image('news-icon.png',array('title'=>__('News', True),'alt'=>__('News', True))), 
    134134                              '/admin/news/listing',array('escape'=>False));  
     
    137137endif;  
    138138 
    139 if ( $session->read('Auth.User.group_id') == 1 ): 
     139if ( $this->Session->read('Auth.User.group_id') == 1 ): 
    140140    $tmp  = $this->Html->link($this->Html->image('areas.png', array('title'=>__('Subjects', True),'alt'=>__('Subjects', True))), 
    141141                              '/admin/subjects/listing', array('escape'=>False));  
     
    144144endif;  
    145145 
    146 if ( $session->read('Auth.User.group_id') == 1 ): 
     146if ( $this->Session->read('Auth.User.group_id') == 1 ): 
    147147    $tmp  = $this->Html->link($this->Html->image('articles.png',array('title'=>__('News Themes', True),'alt'=>__('News Themes', True))), 
    148148                              '/admin/themes/listing', array('escape'=>False));  
     
    151151endif; 
    152152 
    153 if ( $session->read('Auth.User.group_id') == 1 ):  
     153if ( $this->Session->read('Auth.User.group_id') == 1 ):  
    154154    $tmp  = $this->Html->link($this->Html->image('Poll.png', array('title'=>__('Polls', True),'alt'=>__('Polls', True))), 
    155155                              '/admin/polls/listing', array('escape'=>False)); 
     
    158158endif; 
    159159 
    160 if ( $session->read('Auth.User.group_id') == 1 ): 
     160if ( $this->Session->read('Auth.User.group_id') == 1 ): 
    161161    $tmp = $this->Html->link($this->Html->image('karamelo_users.png', array('title'=>__('Users', True), 'alt'=>__('Users', True))),  
    162162                             '/admin/users/listing', array('escape'=>False));  
     
    165165endif;  
    166166 
    167 if ( $session->read('Auth.User.group_id') == 1 ): 
     167if ( $this->Session->read('Auth.User.group_id') == 1 ): 
    168168    $tmp  = $this->Html->link($this->Html->image('backup.png', array('title'=>__('Backup', True),'alt'=>__('Backups', True))), 
    169169                              '/admin/users/backup', array('escape'=>False));  
     
    173173 
    174174# Newsletter  
    175 if ( $session->read('Auth.User.group_id') == 1 ):  
     175if ( $this->Session->read('Auth.User.group_id') == 1 ):  
    176176    $tmp  = $this->Html->link($this->Html->image('static/newsletter-icon.png', array('title'=>__('Newsletters', True), 'alt'=>__('Newsletters', True))),  
    177177                              '/admin/newsletters/listing',  array('escape'=>False)); 
     
    181181 
    182182# Helps 
    183 if ( $session->read('Auth.User.group_id') == 1 ):  
     183if ( $this->Session->read('Auth.User.group_id') == 1 ):  
    184184    $tmp  = $this->Html->link($this->Html->image('admin/help-icon.png',array('title'=>__('Helps', True),'alt'=>__('Helps', True))), 
    185185                              '/admin/helps/listing', array('escape'=>False)); 
     
    189189 
    190190# College 
    191 if ( $session->read('Auth.User.group_id') == 1 ): 
     191if ( $this->Session->read('Auth.User.group_id') == 1 ): 
    192192  $tmp  = $this->Html->link($this->Html->image('admin.png', array('title'=>__('College', True), 'alt'=>__('College', True))), '/admin/colleges/listing',  array('escape'=>False)); 
    193193  $tmp .= $this->Html->link(__('College',True), '/admin/colleges/listing', array('title'=>__('College', True), 'class'=>'main-item-caption')); 
     
    196196 
    197197# School library 
    198 if ( $session->read('Auth.User.group_id') == 1 ):  
     198if ( $this->Session->read('Auth.User.group_id') == 1 ):  
    199199    $tmp  = $this->Html->link($this->Html->image('static/medias_icon.jpg',array('title'=>__('School library', True),'alt'=>__('School library', True))), 
    200200                              '/admin/collections/listing', array('escape'=>False)); 
     
    204204/* 
    205205# General Reports 
    206 if ( $session->read('Auth.User.group_id') == 1 ): 
     206if ( $this->Session->read('Auth.User.group_id') == 1 ): 
    207207    $tmp  = $this->Html->link($this->Html->image('admin/report_icon.png', array('title'=>__('Reports', True), 'alt'=>__('Reports', True))),  
    208208                              '/admin/colleges/reports', array('escape'=>False)); 
     
    212212 
    213213# External plugins 
    214 if ( $session->read('Auth.User.group_id') == 1 ): 
     214if ( $this->Session->read('Auth.User.group_id') == 1 ): 
    215215    $tmp  = $this->Html->link($this->Html->image('admin/plugins_icon.png', array('title'=>__('Plugins', True), 'alt'=>__('Plugins', True))),  
    216216                              '/admin/plugins/listing', array('escape'=>False)); 
  • trunk/app/views/faqs/admin_edit.ctp

    r2248 r2486  
    1717 echo $this->Form->input('Faq.question', array('size' => 40, 'maxlength' => 50, 'label'=>__('Question', True), 'class'=>'required'));  
    1818 echo $this->Form->input('Faq.answer', array('cols'=>70, 'rows'=>40, 'type'=>'textarea', 'label' => __('Answer',True))); 
    19 echo $ck->load('FaqAnswer', 'Karamelo', $session->read('Auth.User.lang')); 
     19echo $ck->load('FaqAnswer', 'Karamelo', $this->Session->read('Auth.User.lang')); 
    2020 echo $this->Form->input('Faq.status', array('type'=>'checkbox', 'label' => __('Published', True))); 
    2121 echo $this->Form->input('Faq.end', array('type'=>'checkbox', 'label' => __('End edition', True))); 
  • trunk/app/views/forums/display.ctp

    r2417 r2486  
    3232 else: 
    3333     $th = array(__('Read', True), __('Topics', True), __('Replies', True), __('Author', True), __('Views', True), __('Last Post', True)); 
    34      if ( $blogger['User']['id'] == $session->read('Auth.User.id')): 
     34     if ( $blogger['User']['id'] == $this->Session->read('Auth.User.id')): 
    3535         array_push($th,  __('Delete', True)); 
    3636    endif; 
     
    4848                   '<span style="font-size:6pt">'.$time->timeAgoInWords($val['created']) .'</span>' 
    4949                ); 
    50     if ( $blogger['User']['id'] == $session->read('Auth.User.id')): # delete button 
     50    if ( $blogger['User']['id'] == $this->Session->read('Auth.User.id')): # delete button 
    5151        $msg   = __('Are you sure to want to delete this?', True);  
    5252        $img = $this->Html->link($this->Html->image('static/delete_icon.png', array('width'=>'16px', 'alt'=>__('Delete', True),  
  • trunk/app/views/galleries/admin_listing.ctp

    r2419 r2486  
    1313        $gags->sendEdit($val['Gallery']['id'], 'galleries'), 
    1414        $this->Html->link($this->Html->image('admin/eye_icon.gif', array("alt"=>"See ". $val['Gallery']['title'], "title"=>"See ". $val['Gallery']['title'])), '#',  
    15                     array("onclick"=>"window.open('/galleries/display/". $session->read('Auth.User.username') .", null, 'status=1,toolbar=1,scrollbars=1,height=600,width=800';)"), null, null, false), 
     15                    array("onclick"=>"window.open('/galleries/display/". $this->Session->read('Auth.User.username') .", null, 'status=1,toolbar=1,scrollbars=1,height=600,width=800';)"), null, null, false), 
    1616        $this->Html->link($val['Gallery']['title'], '/admin/photos/listing/'.$val['Gallery']['id']), 
    1717        $gags->setStatus($val['Gallery']['status']), 
  • trunk/app/views/galleries/display.ctp

    r2248 r2486  
    6363<p> 
    6464  <?php  
    65   if ( $session->check('Auth.User')  )  
     65  if ( $this->Session->check('Auth.User')  )  
    6666  { 
    67      echo $session->read('Auth.User.username') . "  write:"; 
     67     echo $this->Session->read('Auth.User.username') . "  write:"; 
    6868      
    6969  }  
  • trunk/app/views/gaps/admin_edit.ctp

    r2397 r2486  
    11<?php   
    2   $helps = $session->read('Auth.User.helps'); # helps enabled 
     2  $helps = $this->Session->read('Auth.User.helps'); # helps enabled 
    33  $this->Html->addCrumb('Control Panel', '/admin/entries/start');  
    44  $this->Html->addCrumb(__('Gap filling', True).'s', '/admin/gaps/listing');  
  • trunk/app/views/groups/admin_edit.ctp

    r2248 r2486  
    11<?php  
    22 //die( debug( $this->data ) );  
    3  if ( $session->read('Auth.User.group_id') != 1 ): 
     3 if ( $this->Session->read('Auth.User.group_id') != 1 ): 
    44      $this->flash('Error, you are not allowed to be here'); 
    55 endif; 
  • trunk/app/views/images/admin_listing.ctp

    r2358 r2486  
    6969    endif; 
    7070 echo '<br />'; 
    71  if ( $session->read('Auth.User.id') == $val['Image']['user_id'] ): # user is owner image 
     71 if ( $this->Session->read('Auth.User.id') == $val['Image']['user_id'] ): # user is owner image 
    7272        echo  $this->Form->create('Image', array('action'=>'delete', 'onsubmit'=>"return confirm('$msg')")); 
    7373        echo  $this->Form->hidden('Image.return', array('value'=>'/admin/images/listing/'.$return));  
  • trunk/app/views/layouts/admin.ctp

    r2481 r2486  
    2323</div> 
    2424<div style="width:700px;float:left;">  
    25 <?php __('logged_in'); ?> <strong><?php echo $session->read('Auth.User.username'); ?></strong> | 
     25<?php __('logged_in'); ?> <strong><?php echo $this->Session->read('Auth.User.username'); ?></strong> | 
    2626<?php   
    27   echo $this->Html->link($session->read('Auth.User.username') . '\'s blog',  '/blog/'. $session->read('Auth.User.username')) . ' | ';  
     27  echo $this->Html->link($this->Session->read('Auth.User.username') . '\'s blog',  '/blog/'. $this->Session->read('Auth.User.username')) . ' | ';  
    2828  echo $this->Html->link($_SERVER['HTTP_HOST'], '/').' | '; 
    2929  echo $this->Html->link(__('My profile', True), '/admin/users/edit') .' | '. $this->Html->link(__('Logout', True), '/users/logout');  
  • trunk/app/views/layouts/gray.ctp

    r2294 r2486  
    2626   window.onload = timedMsg; 
    2727</script> 
    28 <?php $session->flash(); ?> 
     28<?php $this->Session->flash(); ?> 
    2929<!-- Begin Header --> 
    3030<div id="header"> 
     
    9191         
    9292 
    93  if ( !$session->check('Auth.User') ):   
     93 if ( !$this->Session->check('Auth.User') ):   
    9494      e($this->Html->para(null, $this->Html->link( 
    9595                           $this->Html->image('static/login.png', array('alt'=>'Login', 'title'=>'Login')),  
  • trunk/app/views/layouts/school.ctp

    r2352 r2486  
    8282 echo $this->element('acquaintances', $blogger);          
    8383 
    84  if ( !$session->check('Auth.User') ):   
     84 if ( !$this->Session->check('Auth.User') ):   
    8585      e($this->Html->para(null, $this->Html->link( 
    8686                           $this->Html->image('static/login.png', array('alt'=>'Login', 'title'=>'Login')),  
  • trunk/app/views/lessons/admin_comments.ctp

    r2258 r2486  
    2323          $img   = 'static/status_0_icon.png'; 
    2424      endif; 
    25       echo __('On', True) . ' '.$this->Html->link($v['Lesson']['title'], '/lessons/view/'.$session->read('Auth.User.username').'/'.$v['Lesson']['id'], array('target'=>'_blank')) . '<br /><br />'; 
     25      echo __('On', True) . ' '.$this->Html->link($v['Lesson']['title'], '/lessons/view/'.$this->Session->read('Auth.User.username').'/'.$v['Lesson']['id'], array('target'=>'_blank')) . '<br /><br />'; 
    2626      if ( $c['User']['id'] == 2): #comment made by a not logged user 
    2727           echo $this->Html->link( 
  • trunk/app/views/lessons/admin_edit.ctp

    r2373 r2486  
    11<?php  
    2  $helps = $session->read('Auth.User.helps'); # helps enabled ?  
     2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ?  
    33 if (isset($js)):  
    44      echo $this->Html->script( 
     
    3434 <?php  
    3535    echo $this->Form->input('Lesson.body', array('type'=>'textarea','cols'=>80, 'rows'=>20, 'class'=>'required', 'label'=>False)); 
    36     echo $ck->load('LessonBody', 'Karamelo',$session->read('Auth.User.lang') , 800, 600); 
     36    echo $ck->load('LessonBody', 'Karamelo',$this->Session->read('Auth.User.lang') , 800, 600); 
    3737  ?> 
    3838  </td></tr> 
  • trunk/app/views/lessons/admin_listing.ctp

    r2419 r2486  
    3434    $tr = array ( 
    3535    $gags->sendEdit($val['Lesson']['id'], 'lessons'), 
    36     $this->Html->link($val['Lesson']['title'],'/lessons/view/'.$session->read('Auth.User.username').'/'.$val['Lesson']['id']), 
     36    $this->Html->link($val['Lesson']['title'],'/lessons/view/'.$this->Session->read('Auth.User.username').'/'.$val['Lesson']['id']), 
    3737    $this->Html->link($this->Html->image($img, array('width'=>'14px', 'alt'=>$st, 'title'=>$st)), 
    3838               '/admin/lessons/change/'.$val['Lesson']['id'] .'/'. $val['Lesson']['status'], array('escape'=>False)), 
  • trunk/app/views/lessons/view.ctp

    r2470 r2486  
    99  
    1010if (  $data['Lesson']['disc'] == 1 ):   # is the comments in this lesson actived by blogger? 
    11    if ( $session->check('Auth.User') ):  # if user logged, anchor to textarea 
     11   if ( $this->Session->check('Auth.User') ):  # if user logged, anchor to textarea 
    1212       echo  $this->Html->div(null, $this->Html->image('static/comment.gif', array('alt'=>'Annotations')) .  
    1313                        ' '. __('Comments', True).':', array('id'=>'comments'));   
     
    4242 
    4343     # Teacher buttons 
    44      if ( $session->read('Auth.User.id') && $blogger['User']['id'] == $session->read('Auth.User.id')): # you are teacher so delete button 
     44     if ( $this->Session->read('Auth.User.id') && $blogger['User']['id'] == $this->Session->read('Auth.User.id')): # you are teacher so delete button 
    4545          echo $this->Html->div(Null); 
    4646          $msg   = __('Are you sure to want to delete this?', True);  
     
    6767   echo $this->Form->hidden('Annotation.lesson_id',  array('value'=> $data['Lesson']['id'])); 
    6868   echo $this->Form->hidden('Annotation.blogger_id', array('value'=> $data['Lesson']['user_id'])); 
    69    if ( $session->check('Auth.User') ): 
     69   if ( $this->Session->check('Auth.User') ): 
    7070?>    <fieldset> 
    7171      <legend id="new_comment"><?php __('New Comment', True);?></legend> 
    7272      <?php 
    73       echo $this->Form->hidden('Annotation.user_id',  array('value' => $session->read('Auth.User.id'))); 
    74       echo $this->Form->hidden('Annotation.username', array('value' => $session->read('Auth.User.username'))); 
    75       echo $session->read('Auth.User.username') . ' '.  __('writes', True) .' ';      
     73      echo $this->Form->hidden('Annotation.user_id',  array('value' => $this->Session->read('Auth.User.id'))); 
     74      echo $this->Form->hidden('Annotation.username', array('value' => $this->Session->read('Auth.User.username'))); 
     75      echo $this->Session->read('Auth.User.username') . ' '.  __('writes', True) .' ';      
    7676   else: 
    7777      # show captcha if anonymous user and discution is enabled 
    78       #debug($session->read()); 
     78      #debug($this->Session->read()); 
    7979      echo $this->Html->image($this->webroot.'annotations/captcha/', array('id'=>'captcha', 'alt'=>'CAPTCHA Image')); 
    8080      $lbl = __('All letters are vowels', True); 
  • trunk/app/views/messages/admin_add.ctp

    r2341 r2486  
    2020  echo $gags->ajaxDiv('updater') ; 
    2121   
    22   echo $session->read('Auth.User.username') . '  '.__('write', True).': <br />'; 
     22  echo $this->Session->read('Auth.User.username') . '  '.__('write', True).': <br />'; 
    2323  echo $this->Form->input('Message.title', array('size' => 35, 'maxlength' => 50, 'label'=>'Asunto')) . '<br />'; 
    2424  if ( isset($data) ): 
  • trunk/app/views/messages/admin_compose.ctp

    r2412 r2486  
    66<legend><?php __('Compose message'); ?></legend> 
    77<?php  
    8   echo $session->read('Auth.User.username'). '  '. __('write', True).':'; 
     8  echo $this->Session->read('Auth.User.username'). '  '. __('write', True).':'; 
    99  echo $this->Form->input('Message.title', array('size' => 27, 'maxlength' => 50, 'label'=>__('Title', True))); 
    1010  echo $this->Form->input('Message.body', array('cols'=>30, 'rows'=>10, 'type'=>'textarea', 'label'=>False));  
  • trunk/app/views/messages/admin_listing.ctp

    r2419 r2486  
    88echo $this->Html->para(null,$this->Html->link($this->Html->image('admin/compose_on.gif', array('alt'=>__('Compose new message', true), 'title'=>__('Compose new message', true))), '/admin/messages/add', array('escape'=>False))); 
    99 
    10 if ( $session->read('Auth.User.group_id') == 1):   # if user belongs to admin group 
     10if ( $this->Session->read('Auth.User.group_id') == 1):   # if user belongs to admin group 
    1111   echo '<div style="position:absolute;right:300px;top:75px;">'; 
    1212   echo $this->Html->link($this->Html->image('admin/message_board.gif', array('alt'=>__('General Message', true), 'title'=>__('General Message', true))), '/admin/messages/general', array('escape'=>False)); 
  • trunk/app/views/messages/display.ctp

    r2334 r2486  
    3131<?php 
    3232  echo $this->Form->create();  
    33   echo $this->Form->hidden('Message.username',   array('value'=> $session->read('Auth.User.username'))); 
     33  echo $this->Form->hidden('Message.username',   array('value'=> $this->Session->read('Auth.User.username'))); 
    3434  echo $this->Form->hidden('Message.message_id', array('value'=> $data['Message']['id'])); 
    3535  echo $this->Form->hidden('Message.user_id',    array('value'=> $data['Message']['sender_id']));  
     
    3838<legend><?php __('Reply'); ?></legend> 
    3939  <?php  
    40   echo $session->read('Auth.User.username') .' '. __('writes', True).': <br />'; 
     40  echo $this->Session->read('Auth.User.username') .' '. __('writes', True).': <br />'; 
    4141  
    4242  echo $this->Form->input('Message.title', array('size'=>35,'maxlength'=>50,'value'=> 'Re: ' . $data['Message']['title'])) . '<br />'; 
  • trunk/app/views/messages/message.ctp

    r2348 r2486  
    44echo $this->Html->script(array('ckeditor/ckeditor','jquery.form', 'jquery.CKEditor', 'ckeditor/adapters/jquery')); 
    55 
    6 if ( $session->check('Auth.User') ):  
    7       $username =  $session->read('Auth.User.username'); 
     6if ( $this->Session->check('Auth.User') ):  
     7      $username =  $this->Session->read('Auth.User.username'); 
    88      $anonym   = 0;   
    99      $url      = '/messages/deliver/'; 
     
    1414endif; 
    1515 
    16 if ($blogger['User']['id'] ==  $session->read('Auth.User.id')): 
     16if ($blogger['User']['id'] ==  $this->Session->read('Auth.User.id')): 
    1717     echo $this->Html->para(null, '('.__('Will you send a message to yourself', True).'?)');; 
    1818endif; 
  • trunk/app/views/newsletters/admin_edit.ctp

    r2333 r2486  
    11<?php  
    2  $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    33 echo $this->Html->script('ckeditor/ckeditor');  
    44 
     
    2727  <?php 
    2828   echo $this->Form->input('Newsletter.body', array('type'=>'textarea', 'cols'=>60, 'rows'=>17)); 
    29    echo $ck->load('NewsletterBody', 'Karamelo', $session->read('Auth.User.lang'), 900, 500); 
     29   echo $ck->load('NewsletterBody', 'Karamelo', $this->Session->read('Auth.User.lang'), 900, 500); 
    3030  ?> 
    3131  </td> 
  • trunk/app/views/newsletters/display.ctp

    r2436 r2486  
    1515endforeach; 
    1616 
    17  if ( $session->check('Auth.User') ):  
     17 if ( $this->Session->check('Auth.User') ):  
    1818     echo $this->Html->para(null, __('Tip: you can suscribe/usubscribe to newsletter editing your profile.', True),  
    1919          array('style'=>'font-weight:bold;padding:7px;border:1px dotted orange')); 
  • trunk/app/views/participations/admin_add.ctp

    r2248 r2486  
    11<?php 
    2 $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     2$helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    33echo $this->Html->div(Null, Null, array('style'=>'margin:20px 5px 38px 5px;padding:5px;border:1px dotted gray;')); 
    44echo $this->Html->div(Null, __('Add participation', True), array('style'=>'margin:4px;font-size:12pt;font-weight:bold;')); 
  • trunk/app/views/podcasts/admin_edit.ctp

    r2248 r2486  
    11<?php 
    2 $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     2$helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    33$this->Html->addCrumb('Control Panel', '/admin/entries/start');  
    44$this->Html->addCrumb('Podcasts', '/admin/podcasts/listing'); 
  • trunk/app/views/podcasts/admin_listing.ctp

    r2419 r2486  
    44echo $this->Html->getCrumbs(' > '); 
    55 
    6 echo $this->Html->div('title_section', $this->Html->image('ipod.png', array('style'=>'width:35px;margin-right:6px;', 'alt'=>__('Podcasts', true), 'title'=>__('Podcasts', true))).' '.$session->read('Auth.User.username')."'s Podcasts"); 
     6echo $this->Html->div('title_section', $this->Html->image('ipod.png', array('style'=>'width:35px;margin-right:6px;', 'alt'=>__('Podcasts', true), 'title'=>__('Podcasts', true))).' '.$this->Session->read('Auth.User.username')."'s Podcasts"); 
    77 
    88 echo $this->Html->para(null, $this->Html->link($this->Html->image('actions/new.png',  
  • trunk/app/views/polls/admin_add.ctp

    r2417 r2486  
    11<?php  
    2  $helps = $session->read('Auth.User.helps'); # helps enabled 
     2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled 
    33 if (isset($this->Js)): 
    44      echo $this->Html->script('jquery-validate/jquery.validate'); 
  • trunk/app/views/questions/admin_edit.ctp

    r2248 r2486  
    11<?php  
    2  $helps = $session->read('Auth.User.helps'); # helps enabled 
     2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled 
    33 $this->Html->addCrumb('Control Panel', '/admin/entries/start'); 
    44 $this->Html->addCrumb(__('Tests', True), '/admin/tests/listing');  
  • trunk/app/views/quotes/admin_listing.ctp

    r2419 r2486  
    11<?php 
    22$this->set('title_for_layout',  __('Quotes', True)); 
    3 $helps = $session->read('Auth.User.helps'); # helps enabled 
     3$helps = $this->Session->read('Auth.User.helps'); # helps enabled 
    44#Paginator options for ajax 
    55$this->Paginator->options(array( 
  • trunk/app/views/shares/admin_listing.ctp

    r2419 r2486  
    1414    echo $this->Html->div('title_section', $this->Html->image('mmultimedia.png', array('style'=>'width:35px;margin-right:6px;',  
    1515                'alt'=>__('shared files', True), 'title'=>__('shared files', True))).' '. 
    16                 $session->read('Auth.User.username').'\'s '. __('shared files', True)); 
     16                $this->Session->read('Auth.User.username').'\'s '. __('shared files', True)); 
    1717echo $this->Html->para(Null,  
    1818                 $this->Html->link( 
  • trunk/app/views/tests/admin_edit.ctp

    r2248 r2486  
    11<?php 
    22 // die(debug($this->data));  
    3   $helps = $session->read('Auth.User.helps'); # helps enabled 
     3  $helps = $this->Session->read('Auth.User.helps'); # helps enabled 
    44 
    55 $this->Html->addCrumb('Control Panel', '/admin/entries/start'); 
  • trunk/app/views/tests/admin_questions.ctp

    r2325 r2486  
    11<?php  
    2  $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     2 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    33 
    44 $this->Html->addCrumb('Control Panel', '/admin/entries/start');  
  • trunk/app/views/tests/chk.ctp

    r2248 r2486  
    33<?php 
    44//die(print_r($data)); 
    5 if ( $session->check('Auth.User') ) 
     5if ( $this->Session->check('Auth.User') ) 
    66{ 
    77 echo '<h1>'. $data['Test']['title'] . '</h1>'; 
  • trunk/app/views/tests/read.ctp

    r2248 r2486  
    88# student belongs to vclassroom, kandie is in correct date and test has not been answered by student 
    99if ( $permissions['belongs'] == True and $permissions['chkdate'] == True and $permissions['already'] == False):  
    10     echo $this->Html->para(Null, 'hi! '.$session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;')); 
     10    echo $this->Html->para(Null, 'hi! '.$this->Session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;')); 
    1111    echo $this->Html->div('title', $blogger['User']['username'] .'s '.__('Quizz Test', True)); 
    1212    echo $this->Html->div('mes',__('Start date', True).': '.$linked['sdate']); 
  • trunk/app/views/tests/result.ctp

    r2248 r2486  
    1010 
    1111if ( $already === True ): 
    12     e($this->Html->para('message',$session->read('Auth.User.username') .' '. __('You have already answered this test', True))); 
     12    e($this->Html->para('message',$this->Session->read('Auth.User.username') .' '. __('You have already answered this test', True))); 
    1313endif; 
    1414 
     
    1919if ( $belongs === True && $already === False): 
    2020   echo $this->element('vccrumb', array('blogger'=> $blogger['User']['username'], 'vclassroom_id'=>$vclassroom_id)); 
    21    echo '<h2>' .$session->read('Auth.User.username') .'\'s ' . __('results', True).'</h2>'; 
     21   echo '<h2>' .$this->Session->read('Auth.User.username') .'\'s ' . __('results', True).'</h2>'; 
    2222   echo $this->Html->div('result', __('Percentage success', True).': '.$data['percentage'].'%'); 
    2323   echo $this->Html->para(null, __('Your result was', True).' : <b>'.$data['results'].'</b> '.__('from', True).' '.$data['maxpoints'] .' '.__('possible score. Result has been saved, Thanks', True).'!'); 
  • trunk/app/views/tests/view.ctp

    r2380 r2486  
    1111# student belongs to vclassroom, kandie is in correct date and test has not been answered by student 
    1212if ( $permissions['belongs'] == True and $permissions['chkdate'] == True and $permissions['already'] == False):  
    13     echo $this->Html->para(Null, 'hi! '.$session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;')); 
     13    echo $this->Html->para(Null, 'hi! '.$this->Session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;')); 
    1414    echo $this->Html->para(Null, '<b>Tip</b>:'.__('Avoid data loss, first write and save your answers in a text editor and then copy and paste here', True).'.'); 
    1515    echo $this->Html->div('title', $blogger['User']['username'] .'s '.__('Quizz Test', True)); 
  • trunk/app/views/topics/admin_edit.ctp

    r2248 r2486  
    33 echo $this->Form->input('Topic.subject', array('size'=>50, 'maxlength'=>150, 'class'=>'required')); 
    44 echo $this->Form->input('Topic.message', array('rows'=>50, 'columns'=>50, 'type'=>'textarea')); 
    5 echo $ck->load('TopicMessage', 'Karamelo', $session->read('Auth.User.lang')); 
     5echo $ck->load('TopicMessage', 'Karamelo', $this->Session->read('Auth.User.lang')); 
    66 echo $this->Form->input('Topic.status', array('type'=>'checkbox', 'value'=>'1')); 
    77 echo $this->Form->end(__('Save', True)); 
  • trunk/app/views/topics/display.ctp

    r2382 r2486  
    3232    echo $this->Html->div('reply'); 
    3333    echo $this->Html->div('replytxt', nl2br(h($val['reply']))); 
    34     if ( $blogger['User']['id'] == $session->read('Auth.User.id')): # you are teacher so delete button 
     34    if ( $blogger['User']['id'] == $this->Session->read('Auth.User.id')): # you are teacher so delete button 
    3535         $msg   = __('Are you sure to want to delete this?', True);  
    3636         echo $this->Html->link($this->Html->image('static/delete_icon.png',array('width'=>'16px','alt'=>__('Delete', True),'title'=>__('Delete', True))), 
  • trunk/app/views/topics/reply.ctp

    r2370 r2486  
    11<?php  
    2  if ( $session->check('Auth.User') ): 
     2 if ( $this->Session->check('Auth.User') ): 
    33     echo $this->Form->create('Reply',               array('action'=>'add')); 
    44     echo $this->Form->hidden('Reply.topic_id',      array('value'=>$topic_id)); 
     
    1010<?php  
    1111   echo $this->Form->input('Reply.reply', array('type'=>'textarea','between'=>': <br />','label'=>__('Your participation',True),'rows'=>10,'cols'=>50)); 
    12    echo $ck->load('ReplyReply', 'Basic', $session->read('Auth.User.lang'), 600, 300); 
     12   echo $ck->load('ReplyReply', 'Basic', $this->Session->read('Auth.User.lang'), 600, 300); 
    1313   echo $this->Form->end(__('Send', True)); 
    1414   echo '</fieldset>';  
  • trunk/app/views/treasures/admin_edit.ctp

    r2322 r2486  
    11<?php  
    2 $helps = $session->read('Auth.User.helps'); # helps enabled 
     2$helps = $this->Session->read('Auth.User.helps'); # helps enabled 
    33echo $this->Html->script('ckeditor/ckeditor');  
    44 
     
    2828  <?php  
    2929   echo $this->Form->input('Treasure.instructions', array('type'=>'textarea', 'cols'=>80, 'rows'=>25, 'label'=> __('Instructions', True))); 
    30    echo $ck->load('TreasureInstructions', 'Karamelo', $session->read('Auth.User.lang'), 800, 600);  
     30   echo $ck->load('TreasureInstructions', 'Karamelo', $this->Session->read('Auth.User.lang'), 800, 600);  
    3131  ?>  
    3232</td></tr> 
  • trunk/app/views/treasures/view.ctp

    r2397 r2486  
    77 
    88if ( $permissions['belongs'] == True and $permissions['chkdate'] == True  and $permissions['already'] == False): 
    9     echo $this->Html->para(null, 'hi! '.$session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;')); 
     9    echo $this->Html->para(null, 'hi! '.$this->Session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;')); 
    1010    echo $this->Html->div('title', $blogger['User']['username'] .'s Treasure Hunt'); 
    1111 
     
    2121    echo $this->Form->hidden('ResultTreasure.points',        array('value'=>$data['Treasure']['points'])); 
    2222    echo $this->Form->input('ResultTreasure.secret',         array('size' => 15, 'maxlength'=>15, 'title'=>__('Secret code', True), 'between'=>': ')); 
    23     echo $this->Js->submit(__('Send final code', True).' '. $session->read('Auth.User.username'),  
     23    echo $this->Js->submit(__('Send final code', True).' '. $this->Session->read('Auth.User.username'),  
    2424                                    array( 
    2525                                         'url'      => array('controller'=>'treasures', 'action'=>'chksw'),  
  • trunk/app/views/users/admin_listing.ctp

    r2419 r2486  
    4343         $st    = __('Disabled', True); 
    4444    endif; 
    45     $del = $session->read('Auth.User.group_id')  == 1 ? $this->Html->link($this->Html->image('static/delete_icon.png',  
     45    $del = $this->Session->read('Auth.User.group_id')  == 1 ? $this->Html->link($this->Html->image('static/delete_icon.png',  
    4646                              array('alt'=>__('Delete', True),'width'=>'16px', 'title'=>__('Delete', True))), '/admin/users/delete/'.$val['User']['id'],array('escape'=>False), $msg) : ''; # only admins can delete 
    4747    if ( $val['User']['id'] == 1 || $val['User']['id'] == 2): 
    4848         $del = ''; # user 1 and 2 can't be deleted 
    4949    endif; 
    50 $edit= $session->read('Auth.User.group_id') == 1 ? $this->Html->link($this->Html->image('static/edit_icon.gif', array('alt'=>__('Edit', True), 'title'=>__('Edit', True))), '/admin/users/add/'.$val['User']['id'], array('escape'=>False)) : ''; 
     50$edit= $this->Session->read('Auth.User.group_id') == 1 ? $this->Html->link($this->Html->image('static/edit_icon.gif', array('alt'=>__('Edit', True), 'title'=>__('Edit', True))), '/admin/users/add/'.$val['User']['id'], array('escape'=>False)) : ''; 
    5151    $status = ($val['User']['active'] == 1) ? __('Actived', True) : __('Desactived', True); 
    5252      
  • trunk/app/views/users/admin_search.ctp

    r2484 r2486  
    2626  
    2727   foreach ($data as $val): 
    28       $del    = ($session->read('Auth.User.group_id')  == 1) ? $gags->confirmDel($val['User']['id'], 'users')   : ''; # only admins can delete 
    29       $edit   = ($session->read('Auth.User.group_id')  == 1) ? $gags->sendEdit($val['User']['id'], 'users', 'add')   : ''; 
     28      $del    = ($this->Session->read('Auth.User.group_id')  == 1) ? $gags->confirmDel($val['User']['id'], 'users')   : ''; # only admins can delete 
     29      $edit   = ($this->Session->read('Auth.User.group_id')  == 1) ? $gags->sendEdit($val['User']['id'], 'users', 'add')   : ''; 
    3030      if ($val['User']['active'] == 1): 
    3131          $alt = __('Actived', True); 
     
    3535          $alt = __('Desactived', True); 
    3636      endif; 
    37       if ( $session->read('Auth.User.id') !=  $val['User']['id'] ): 
     37      if ( $this->Session->read('Auth.User.id') !=  $val['User']['id'] ): 
    3838          $stealth = $this->Html->link($this->Html->image('static/icon_key.gif', array('title'=>__('Stealth account', True),'alt'=>__('Stealth account', True))), 
    3939                                       '/admin/users/activities/'.$val['User']['id'], array('onclick'=>"return confirm('".$msg."')", 'escape'=>False)); 
  • trunk/app/views/users/directory.ctp

    r2248 r2486  
    1212foreach ($users as $val): 
    1313  echo '<tr><td>'. $val['User']['username'] .'</td> <td>'; 
    14   if ( $session->check('Auth')): 
     14  if ( $this->Session->check('Auth')): 
    1515      echo $this->Html->link($this->Html->image('phorum.png', array('width'=>'20px', 'title'=>__('Write message',True), 'alt'=>__('Write message',True))), '/messages/message/'. $val['User']['username'], array('escape'=>False)); 
    1616  else: 
  • trunk/app/views/users/register.ctp

    r2389 r2486  
    11<?php 
    2 if ( $session->check('Auth.User') ): 
     2if ( $this->Session->check('Auth.User') ): 
    33    e($this->Html->para(null, __('You are already a member', True))); 
    44else: 
  • trunk/app/views/vclassrooms/admin_edit.ctp

    r2416 r2486  
    44$this->set('title_for_layout',  'Virtual Classrooms'); 
    55 
    6 $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     6$helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    77 
    88if (isset($this->Js)): 
  • trunk/app/views/vclassrooms/admin_share.ctp

    r2419 r2486  
    22 #debug($data); 
    33 $this->pageTitle = __('Share', True); 
    4  $helps = $session->read('Auth.User.helps'); # helps enabled ? 
     4 $helps = $this->Session->read('Auth.User.helps'); # helps enabled ? 
    55 $this->Html->addCrumb('Control Panel', '/admin/entries/start');   
    66 $this->Html->addCrumb('vClassrooms', '/admin/vclassrooms/listing');  
  • trunk/app/views/vclassrooms/chat.ctp

    r2472 r2486  
    1515     echo $this->Html->div(null, $this->Html->image('static/chat_logo.jpg', array('alt'=>'Chat Room', 'title'=>'Chat Room')) . 
    1616                ' <br />Chat Room '. $data['Vclassroom']['name'], array('style'=>'font-size:12pt;margin:8px;')); 
    17      $user_id = $session->read('Auth.User.id'); # easier to read and faster 
     17     $user_id = $this->Session->read('Auth.User.id'); # easier to read and faster 
    1818     echo $gags->ajaxDiv('updater'); 
    1919     echo $this->element('chat_messages', array('msgs'=>$msgs)); 
     
    2121     echo $gags->ajaxDiv('chatters').$gags->divEnd('chatters'); 
    2222  
    23      echo $this->Html->div(Null, $session->read('Auth.User.username') .' '. __('writes', True)); 
     23     echo $this->Html->div(Null, $this->Session->read('Auth.User.username') .' '. __('writes', True)); 
    2424     echo $gags->imgLoad('loading'); 
    2525     echo $this->Form->create(); 
  • trunk/app/views/vclassrooms/show.ctp

    r2460 r2486  
    1414 
    1515# Superuser sudo hack 
    16 if ( !$belongs and $session->read('Auth.User.sudo')): 
     16if ( !$belongs and $this->Session->read('Auth.User.sudo')): 
    1717    $belongs = True; 
    1818endif; 
     
    2020#check if student is logged in and belongs to this vClassroom 
    2121if ( $belongs === True ): 
    22   echo $this->Html->div(Null,  __('Welcome', True) . '!<b> '. $session->read('Auth.User.username') .'</b>'); 
     22  echo $this->Html->div(Null,  __('Welcome', True) . '!<b> '. $this->Session->read('Auth.User.username') .'</b>'); 
    2323  # Prepare ecourse activities 
    2424  #die(debug($data['activities'])); 
     
    6969   
    7070  # hello teacher! 
    71   if ( $blogger['User']['id'] == $session->read('Auth.User.id') && $data['Vclassroom']['message']): 
     71  if ( $blogger['User']['id'] == $this->Session->read('Auth.User.id') && $data['Vclassroom']['message']): 
    7272      echo $this->element('helloteacher', array('vclassroom_id'=>$data['Vclassroom']['id'], 'code'=>$data['Vclassroom']['secret'],  
    7373'username'=> $blogger['User']['username'])); 
     
    217217 endif; # user is logged in and member 
    218218 
    219   if ( $session->check('Auth.User') && $session->read('Auth.User.group_id') < 4 && $belongs === False): # student is login in portal but does not belongs to VC, so, show "Join" button    
     219  if ( $this->Session->check('Auth.User') && $this->Session->read('Auth.User.group_id') < 4 && $belongs === False): # student is login in portal but does not belongs to VC, so, show "Join" button    
    220220     echo $this->Html->para(Null, __('In order to join this classroom you must know the access code, if you do not know it, please put in contact with classroom teacher', True)); 
    221221     echo $this->Form->create(); 
    222222     echo $this->Form->hidden('UsersVclassroom.vclassroom_id', array('value'=>$data['Vclassroom']['id'])); 
    223223     echo $this->Form->input('UsersVclassroom.code', array('size' => 9, 'maxlength'=>9, 'title'=>__('Access code', True), 'between'=>': ')); 
    224      echo $this->Js->submit(__('Join to this class', True).'  '.$session->read('Auth.User.username'), 
     224     echo $this->Js->submit(__('Join to this class', True).'  '.$this->Session->read('Auth.User.username'), 
    225225                                    array('url'         => '/vclassrooms/jointoclass/', 
    226226                                          'update'      => '#updater', 
     
    235235echo $gags->imgLoad('loading'); 
    236236 
    237 if ( !$session->check('Auth.User') ):   # the user is anonymus 
     237if ( !$this->Session->check('Auth.User') ):   # the user is anonymus 
    238238     e($this->Html->link(__('Login to join this group', True), '/users/login')); 
    239239endif; 
  • trunk/app/views/webquests/admin_get.ctp

    r2338 r2486  
    8888 echo $this->Html->scriptEnd();  
    8989 if ( $textarea ): 
    90      #echo $ck->load($WebTextArea, 'Karamelo', $session->read('Auth.User.lang'), 800, 300); 
     90     #echo $ck->load($WebTextArea, 'Karamelo', $this->Session->read('Auth.User.lang'), 800, 300); 
    9191     echo $this->Html->scriptBlock("$('textarea#".$WebTextArea."').ckeditor({ toolbar:'Karamelo', width:800, height:500 });"); 
    9292 endif; 
  • trunk/app/views/webquests/view.ctp

    r2248 r2486  
    55echo $this->element('vccrumb', array('blogger'=> $blogger['User']['username'], 'vclassroom_id'=>$linked['vclassroom_id'])); 
    66if ( $permissions['belongs'] == True and $permissions['chkdate'] == True  and $permissions['already'] == False): 
    7     echo $this->Html->para(null, 'hi! '.$session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;')); 
     7    echo $this->Html->para(null, 'hi! '.$this->Session->read('Auth.User.username'), array('style'=>'font-weight:bold;font-size:12pt;')); 
    88    echo $this->Html->div('title_section', $data['Webquest']['title']); 
    99 
     
    4545    echo $this->element('permissions', array('permissions'=>$permissions, 'dates'=>$linked, 'kandie_user_id'=>$blogger['User']['id'])); 
    4646endif; 
    47 ?> 
     47 
     48# ? > EOF 
  • trunk/app/views/wikis/admin_listing.ctp

    r2419 r2486  
    3232         $val['Wiki']['title'], 
    3333         $this->Html->link($this->Html->image($img, array('width'=>'14px','alt'=>$st, 'title'=>$st)),'/admin/wikis/change/'.$val['Wiki']['id'].'/'.$val['Wiki']['status'], array('escape'=>False)),  
    34              $this->Html->link($this->Html->image('static/view-icon.png', array('alt'=>__('See WikiPage', True), 'title'=>__('See WikiPage', True))), '/wikis/view/'.$session->read('Auth.User.username').'/'.$val['Wiki']['slug'],  array('escape'=>False)), 
     34             $this->Html->link($this->Html->image('static/view-icon.png', array('alt'=>__('See WikiPage', True), 'title'=>__('See WikiPage', True))), '/wikis/view/'.$this->Session->read('Auth.User.username').'/'.$val['Wiki']['slug'],  array('escape'=>False)), 
    3535             $this->Html->link($this->Html->image($img2, array('width'=>'17px','alt'=>$st2, 'title'=>$st2)),'/admin/wikis/public/'.$val['Wiki']['id'].'/'.$val['Wiki']['public'],  array('escape'=>False)), 
    3636         $gags->confirmDel($val['Wiki']['id'], 'Wiki') 
  • trunk/app/views/wikis/edit.ctp

    r2422 r2486  
    2222 
    2323echo '<div style="width:100%;clear:both;">'; 
    24 if ($blogger['User']['username'] == $session->read('Auth.User.username')): # blogger = owner 
     24if ($blogger['User']['username'] == $this->Session->read('Auth.User.username')): # blogger = owner 
    2525    echo $this->Html->div('flotter',$this->Form->input('Wiki.status', array('type'=>'checkbox','value'=>'1','label'=> __('Published', True)))); 
    2626    echo $this->Html->div('flotter',$this->Form->input('Wiki.public', array('type'=>'checkbox', 'label'=> __('Public', True), 'value'=>'1'))); 
Note: See TracChangeset for help on using the changeset viewer.