AAAAtmpl/edit.php000066600000002622151407330160007164 0ustar00
  • form->getLabel('user_id_to'); ?> form->getInput('user_id_to'); ?>
  • form->getLabel('subject'); ?> form->getInput('subject'); ?>
  • form->getLabel('message'); ?> form->getInput('message'); ?>
tmpl/.htaccess000066600000000177151407330160007327 0ustar00 Order allow,deny Deny from all tmpl/default.php000066600000002310151407330160007655 0ustar00
tmpl/index.html000066600000000037151407330160007521 0ustar00 index.html000066600000000037151407330160006545 0ustar00 view.html.php000066600000003311151407330160007174 0ustar00form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } parent::display($tpl); $this->addToolbar(); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { if ($this->getLayout() == 'edit') { JToolBarHelper::title(JText::_('COM_MESSAGES_WRITE_PRIVATE_MESSAGE'), 'new-privatemessage.png'); JToolBarHelper::save('message.save', 'COM_MESSAGES_TOOLBAR_SEND'); JToolBarHelper::cancel('message.cancel'); JToolBarHelper::help('JHELP_COMPONENTS_MESSAGING_WRITE'); } else { JToolBarHelper::title(JText::_('COM_MESSAGES_VIEW_PRIVATE_MESSAGE'), 'inbox.png'); $sender = JUser::getInstance($this->item->user_id_from); if ($sender->authorise('core.admin') || $sender->authorise('core.manage', 'com_messages') && $sender->authorise('core.login.admin')) { JToolBarHelper::custom('message.reply', 'restore.png', 'restore_f2.png', 'COM_MESSAGES_TOOLBAR_REPLY', false); } JToolBarHelper::cancel('message.cancel'); JToolBarHelper::help('JHELP_COMPONENTS_MESSAGING_READ'); } } } .htaccess000066600000000177151407330160006353 0ustar00 Order allow,deny Deny from all