Changeset 795 for trunk/app/controllers
- Timestamp:
- 10/06/08 12:03:59 (2 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/messages_controller.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/messages_controller.php
r785 r795 24 24 $this->Auth->allow(array('message','deliver','listing','compose','display','add','send','autocomplete','sentmessages','delete')); 25 25 else: 26 $this->Auth->allow(array('message', 'fromoutside' ));26 $this->Auth->allow(array('message', 'fromoutside', 'contact')); 27 27 endif; 28 28 } … … 41 41 public function contact() 42 42 { 43 $this->layout = 'portal';44 45 $this->pageTitle = 'Contact';46 47 $this->Portal->statics(); // Using Portal component43 $this->layout = 'portal'; 44 45 $this->pageTitle = 'Contact'; 46 47 $this->Portal->statics(); // Using Portal component 48 48 } 49 49 50 50 public function compose() 51 51 { 52 $this->layout = 'portal';53 54 $this->pageTitle = 'Write New Message';55 56 $this->Portal->statics(); // Using Portal component52 $this->layout = 'portal'; 53 54 $this->pageTitle = 'Write New Message'; 55 56 $this->Portal->statics(); // Using Portal component 57 57 } 58 58 59 59 public function chat($nick='mononeuron') 60 60 { 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 */ 68 68 public function fromoutside() 69 69 { … … 78 78 $msg .= __('Email', true).': '.$this->data['Message']['email']; 79 79 80 if ($this->__sendOutside( $this->data['Message']['user_id'], $msg)):80 if ($this->__sendOutside(1, $msg)): // user_id 1 is admin user 81 81 $this->render('sent', 'ajax'); 82 else:83 $this->getSupport();84 82 endif; 85 83 endif;
