File manager - Edit - /home/ferretapmx/public_html/profile.tar
Back
profile.xml 0000644 00000022234 15231056571 0006736 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <extension type="plugin" group="user" method="upgrade"> <name>plg_user_profile</name> <author>Joomla! Project</author> <creationDate>2008-01</creationDate> <copyright>(C) 2008 Open Source Matters, Inc.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>admin@joomla.org</authorEmail> <authorUrl>www.joomla.org</authorUrl> <version>3.0.0</version> <description>PLG_USER_PROFILE_XML_DESCRIPTION</description> <namespace path="src">Joomla\Plugin\User\Profile</namespace> <files> <folder>forms</folder> <folder plugin="profile">services</folder> <folder>src</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_user_profile.ini</language> <language tag="en-GB">language/en-GB/plg_user_profile.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic" addfieldprefix="Joomla\Component\Content\Administrator\Field"> <field name="register-require-user" type="spacer" label="PLG_USER_PROFILE_FIELD_NAME_REGISTER_REQUIRE_USER" class="text" /> <field name="register-require_address1" type="list" label="PLG_USER_PROFILE_FIELD_ADDRESS1_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="register-require_address2" type="list" label="PLG_USER_PROFILE_FIELD_ADDRESS2_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="register-require_city" type="list" label="PLG_USER_PROFILE_FIELD_CITY_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="register-require_region" type="list" label="PLG_USER_PROFILE_FIELD_REGION_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="register-require_country" type="list" label="PLG_USER_PROFILE_FIELD_COUNTRY_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="register-require_postal_code" type="list" label="PLG_USER_PROFILE_FIELD_POSTAL_CODE_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="register-require_phone" type="list" label="PLG_USER_PROFILE_FIELD_PHONE_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="register-require_website" type="list" label="PLG_USER_PROFILE_FIELD_WEB_SITE_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="register-require_favoritebook" type="list" label="PLG_USER_PROFILE_FIELD_FAVORITE_BOOK_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="register-require_aboutme" type="list" label="PLG_USER_PROFILE_FIELD_ABOUT_ME_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="register-require_tos" type="list" label="PLG_USER_PROFILE_FIELD_TOS_LABEL" default="0" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="0">JDISABLED</option> </field> <field name="register_tos_article" type="modal_article" label="PLG_USER_PROFILE_FIELD_TOS_ARTICLE_LABEL" select="true" new="true" edit="true" clear="true" filter="integer" /> <field name="register-require_dob" type="list" label="PLG_USER_PROFILE_FIELD_DOB_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="spacer1" type="spacer" hr="true" /> <field name="profile-require-user" type="spacer" label="PLG_USER_PROFILE_FIELD_NAME_PROFILE_REQUIRE_USER" class="text" /> <field name="profile-require_address1" type="list" label="PLG_USER_PROFILE_FIELD_ADDRESS1_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="profile-require_address2" type="list" label="PLG_USER_PROFILE_FIELD_ADDRESS2_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="profile-require_city" type="list" label="PLG_USER_PROFILE_FIELD_CITY_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="profile-require_region" type="list" label="PLG_USER_PROFILE_FIELD_REGION_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="profile-require_country" type="list" label="PLG_USER_PROFILE_FIELD_COUNTRY_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="profile-require_postal_code" type="list" label="PLG_USER_PROFILE_FIELD_POSTAL_CODE_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="profile-require_phone" type="list" label="PLG_USER_PROFILE_FIELD_PHONE_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="profile-require_website" type="list" label="PLG_USER_PROFILE_FIELD_WEB_SITE_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="profile-require_favoritebook" type="list" label="PLG_USER_PROFILE_FIELD_FAVORITE_BOOK_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="profile-require_aboutme" type="list" label="PLG_USER_PROFILE_FIELD_ABOUT_ME_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> <field name="profile-require_dob" type="list" label="PLG_USER_PROFILE_FIELD_DOB_LABEL" default="1" filter="integer" validate="options" > <option value="2">JOPTION_REQUIRED</option> <option value="1">JOPTION_OPTIONAL</option> <option value="0">JDISABLED</option> </field> </fieldset> </fields> </config> </extension> src/Field/TosField.php 0000644 00000011745 15231056571 0010615 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage User.profile * * @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\User\Profile\Field; use Joomla\CMS\Factory; use Joomla\CMS\Form\Field\RadioField; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Associations; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; use Joomla\Component\Content\Site\Helper\RouteHelper; use Joomla\Database\ParameterType; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Provides input for TOS * * @since 2.5.5 */ class TosField extends RadioField { /** * The form field type. * * @var string * @since 2.5.5 */ protected $type = 'Tos'; /** * Method to get the field label markup. * * @return string The field label markup. * * @since 2.5.5 */ protected function getLabel() { $label = ''; if ($this->hidden) { return $label; } // Get the label text from the XML element, defaulting to the element name. $text = $this->element['label'] ? (string) $this->element['label'] : (string) $this->element['name']; $text = $this->translateLabel ? Text::_($text) : $text; // Set required to true as this field is not displayed at all if not required. $this->required = true; // Build the class for the label. $class = !empty($this->description) ? 'hasPopover' : ''; $class .= ' required'; $class = !empty($this->labelClass) ? $class . ' ' . $this->labelClass : $class; // Add the opening label tag and main attributes attributes. $label .= '<label id="' . $this->id . '-lbl" for="' . $this->id . '" class="' . $class . '"'; // If a description is specified, use it to build a tooltip. if (!empty($this->description)) { HTMLHelper::_('bootstrap.popover', '.hasPopover'); $label .= ' data-bs-content="' . htmlspecialchars( $this->translateDescription ? Text::_($this->description) : $this->description, ENT_COMPAT, 'UTF-8' ) . '"'; if (Factory::getLanguage()->isRtl()) { $label .= ' data-bs-placement="left"'; } } $tosArticle = $this->element['article'] > 0 ? (int) $this->element['article'] : 0; if ($tosArticle) { $attribs = []; $attribs['data-bs-toggle'] = 'modal'; $attribs['data-bs-target'] = '#tosModal'; $db = $this->getDatabase(); $query = $db->getQuery(true); $query->select($db->quoteName(['id', 'alias', 'catid', 'language'])) ->from($db->quoteName('#__content')) ->where($db->quoteName('id') . ' = :id') ->bind(':id', $tosArticle, ParameterType::INTEGER); $db->setQuery($query); $article = $db->loadObject(); if (Associations::isEnabled()) { $tosAssociated = Associations::getAssociations('com_content', '#__content', 'com_content.item', $tosArticle); } $currentLang = Factory::getLanguage()->getTag(); if (isset($tosAssociated) && $currentLang !== $article->language && \array_key_exists($currentLang, $tosAssociated)) { $url = RouteHelper::getArticleRoute( $tosAssociated[$currentLang]->id, $tosAssociated[$currentLang]->catid, $tosAssociated[$currentLang]->language ); $link = HTMLHelper::_('link', Route::_($url . '&tmpl=component'), $text, $attribs); } else { $slug = $article->alias ? ($article->id . ':' . $article->alias) : $article->id; $url = RouteHelper::getArticleRoute($slug, $article->catid, $article->language); $link = HTMLHelper::_('link', Route::_($url . '&tmpl=component'), $text, $attribs); } echo HTMLHelper::_( 'bootstrap.renderModal', 'tosModal', [ 'url' => Route::_($url . '&tmpl=component'), 'title' => $text, 'height' => '100%', 'width' => '100%', 'modalWidth' => '800', 'bodyHeight' => '500', 'footer' => '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" aria-hidden="true">' . Text::_('JLIB_HTML_BEHAVIOR_CLOSE') . '</button>', ] ); } else { $link = $text; } // Add the label text and closing tag. $label .= '>' . $link . '<span class="star" aria-hidden="true"> *</span></label>'; return $label; } } src/Field/.htaccess 0000555 00000000355 15231056571 0010165 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>