Changeset 795 for trunk/app/controllers

Show
Ignore:
Timestamp:
10/06/08 12:03:59 (2 months ago)
Author:
aarkerio
Message:

Udates to RC3

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/messages_controller.php

    r785 r795  
    2424         $this->Auth->allow(array('message','deliver','listing','compose','display','add','send','autocomplete','sentmessages','delete')); 
    2525  else: 
    26          $this->Auth->allow(array('message', 'fromoutside')); 
     26         $this->Auth->allow(array('message', 'fromoutside', 'contact')); 
    2727  endif; 
    2828 } 
     
    4141 public function contact() 
    4242 { 
    43         $this->layout    = 'portal'; 
    44          
    45         $this->pageTitle = 'Contact'; 
    46          
    47         $this->Portal->statics();      // Using Portal component 
     43  $this->layout    = 'portal'; 
     44         
     45  $this->pageTitle = 'Contact'; 
     46         
     47  $this->Portal->statics();      // Using Portal component 
    4848 } 
    4949  
    5050 public function compose() 
    5151 {     
    52         $this->layout    = 'portal'; 
    53          
    54         $this->pageTitle = 'Write New Message'; 
    55          
    56         $this->Portal->statics();      // Using Portal component 
     52  $this->layout    = 'portal'; 
     53         
     54  $this->pageTitle = 'Write New Message'; 
     55         
     56  $this->Portal->statics();      // Using Portal component 
    5757 } 
    5858  
    5959 public function chat($nick='mononeuron') 
    6060 { 
    61       $this->pageTitle = 'IRC Chat'; 
    62        
    63       $this->layout    = 'popup'; 
    64        
    65       $this->set('nick', $nick); 
    66  } 
    67  
     61  $this->pageTitle = 'IRC Chat'; 
     62       
     63  $this->layout    = 'popup'; 
     64       
     65  $this->set('nick', $nick); 
     66 } 
     67 /** Just send anonymous cintatct message, see /messages/contact  view */ 
    6868 public function fromoutside() 
    6969 { 
     
    7878      $msg .= __('Email', true).': '.$this->data['Message']['email'];  
    7979       
    80       if ($this->__sendOutside($this->data['Message']['user_id'], $msg)): 
     80      if ($this->__sendOutside(1, $msg)):  // user_id 1 is admin user 
    8181          $this->render('sent', 'ajax');  
    82       else: 
    83           $this->getSupport(); 
    8482      endif; 
    8583   endif;