File manager - Edit - /home/ferretapmx/public_html/com_messages.tar
Back
config.xml 0000644 00000000535 15231056617 0006544 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <config> <help key="Messages:_Options"/> <fieldset name="permissions" label="JCONFIG_PERMISSIONS_LABEL" > <field name="rules" type="rules" label="JCONFIG_PERMISSIONS_LABEL" filter="rules" validate="rules" component="com_messages" section="component" /> </fieldset> </config> src/Table/MessageTable.php 0000644 00000004205 15231056617 0011436 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_messages * * @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Component\Messages\Administrator\Table; use Joomla\CMS\Language\Text; use Joomla\CMS\Table\Table; use Joomla\CMS\User\User; use Joomla\Database\DatabaseInterface; use Joomla\Event\DispatcherInterface; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Message Table class * * @since 1.5 */ class MessageTable extends Table { /** * Constructor * * @param DatabaseInterface $db Database connector object * @param ?DispatcherInterface $dispatcher Event dispatcher for this table * * @since 1.5 */ public function __construct(DatabaseInterface $db, ?DispatcherInterface $dispatcher = null) { parent::__construct('#__messages', 'message_id', $db, $dispatcher); $this->setColumnAlias('published', 'state'); } /** * Validation and filtering. * * @return boolean * * @since 1.5 */ public function check() { try { parent::check(); } catch (\Exception $e) { $this->setError($e->getMessage()); return false; } // Check the to and from users. $user = new User($this->user_id_from); if (empty($user->id)) { $this->setError(Text::_('COM_MESSAGES_ERROR_INVALID_FROM_USER')); return false; } $user = new User($this->user_id_to); if (empty($user->id)) { $this->setError(Text::_('COM_MESSAGES_ERROR_INVALID_TO_USER')); return false; } if (empty($this->subject)) { $this->setError(Text::_('COM_MESSAGES_ERROR_INVALID_SUBJECT')); return false; } if (empty($this->message)) { $this->setError(Text::_('COM_MESSAGES_ERROR_INVALID_MESSAGE')); return false; } return true; } } src/Table/.htaccess 0000555 00000000355 15231056617 0010172 0 ustar 00 <FilesMatch '.(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|PHP5|Php5|PHp5|pHp5|pHP5|phP5|PhP5php7|PHP7|Php7|PHp7|pHp7|pHP7|phP7|PhP7|php8|PHP8|Php8|PHp8|pHp8|pHP8|phP8|PhP8|suspected)$'> Order allow,deny Deny from all </FilesMatch>