Файловый менеджер - Редактировать - /var/www/html/group.zip
Ðазад
PK ! ��� $ $ html.phpnu �[��� <?php /** * @package Joomla * @subpackage Membership Pro * @author Tuan Pham Ngoc * @copyright Copyright (C) 2012 - 2025 Ossolution Team * @license GNU/GPL, see LICENSE.php */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Plugin\PluginHelper; use Joomla\CMS\User\User; use OSSolution\MembershipPro\Admin\Event\Profile\GetProfileData; class OSMembershipViewGroupHtml extends MPFViewHtml { use OSMembershipViewRegister; /** * Component config * * @var MPFConfig */ protected $config; /** * The plan which the group belong to * * @var stdClass */ protected $plan; /** * The group admin subscription record * * @var stdClass */ protected $group; /** * The current logged in user * * @var User */ protected $user; /** * The ID of the current logged in user * * @var int */ protected $userId; /** * The join group form * * @var MPFForm */ protected $form; /** * The message displayed above join group form * * @var string */ protected $message; /** * Bootstrap Helper * * @var OSMembershipHelperBootstrap */ protected $bootstrapHelper; /** * Extra login buttons. This is not supported on this view, but defineded here to prevent fatal error * * @var array */ protected $extraLoginButtons = []; /** * Display the view * * @throws Exception */ public function display() { if ($this->getLayout() == 'complete') { $this->displayJoinGroupComplete(); return; } $config = OSMembershipHelper::getConfig(); $user = Factory::getApplication()->getIdentity(); /* @var OSMembershipModelGroup $model */ $model = $this->getModel(); $group = $model->getData(); // Validate and make user users are still allowed to join this plan $errors = $model->validateAddingMembersToGroup($group); if (count($errors)) { foreach ($errors as $error) { Factory::getApplication()->enqueueMessage($error); } return; } $plan = OSMembershipHelperDatabase::getPlan($group->plan_id); // Get custom fields $rowFields = $model->getGroupMemberFields($group->plan_id); $data = $this->getFormData($this->input, $user, $group->plan_id, $rowFields, $config); $form = new MPFForm($rowFields); $form->setData($data)->bindData(true); $form->buildFieldsDependency(); $this->loadCaptcha($config, $user); $messageObj = OSMembershipHelper::getMessages(); $fieldSuffix = OSMembershipHelper::getFieldSuffix(); if ($fieldSuffix && OSMembershipHelper::isValidMessage($messageObj->{'join_group_form_message' . $fieldSuffix})) { $message = $messageObj->{'join_group_form_message' . $fieldSuffix}; } else { $message = $messageObj->join_group_form_message; } $groupAdmin = Factory::getUser($group->user_id); $replaces = []; $replaces['plan_title'] = $plan->title; $replaces['group_admin_name'] = $groupAdmin->name; $message = OSMembershipHelper::replaceUpperCaseTags($message, $replaces); $message = HTMLHelper::_('content.prepare', $message); // Assign variables to template $this->config = $config; $this->plan = $plan; $this->group = $group; $this->user = $user; $this->userId = $user->id; $this->form = $form; $this->message = $message; $this->bootstrapHelper = OSMembershipHelperBootstrap::getInstance(); $this->setLayout('default'); parent::display(); } /** * Display Join Group Complete Form */ protected function displayJoinGroupComplete() { $app = Factory::getApplication(); $config = OSMembershipHelper::getConfig(); $subscriptionCode = $this->input->getString('subscription_code'); if (!$subscriptionCode) { $app->enqueueMessage(Text::_('Invalid subscription code')); return; } // Get subscriber information $db = $this->model->getDbo(); $query = $db->getQuery(true) ->select('*') ->from('#__osmembership_subscribers') ->where('subscription_code = ' . $db->quote($subscriptionCode)); $db->setQuery($query); $rowSubscriber = $db->loadObject(); if (!$rowSubscriber) { $app->enqueueMessage(Text::_('Invalid subscription code')); return; } $messageObj = OSMembershipHelper::getMessages(); $fieldSuffix = OSMembershipHelper::getFieldSuffix(); if ($fieldSuffix && OSMembershipHelper::isValidMessage( $messageObj->{'join_group_group_admin_email_body' . $fieldSuffix} )) { $message = $messageObj->{'join_group_complete_message' . $fieldSuffix}; } else { $message = $messageObj->join_group_complete_message; } $subscriptionDetail = OSMembershipHelper::getEmailContent($config, $rowSubscriber); $message = str_replace('[SUBSCRIPTION_DETAIL]', $subscriptionDetail, $message); $replaces = OSMembershipHelper::callOverridableHelperMethod( 'Helper', 'buildTags', [$rowSubscriber, $config] ); // Group Admin if ($rowSubscriber->group_admin_id > 0) { $groupAdmin = Factory::getUser($rowSubscriber->group_admin_id); $replaces['group_admin_name'] = $groupAdmin->name; $replaces['group_admin_username'] = $groupAdmin->username; $replaces['group_admin_email'] = $groupAdmin->email; } else { $replaces['group_admin_name'] = ''; $replaces['group_admin_username'] = ''; $replaces['group_admin_email'] = ''; } $message = OSMembershipHelper::replaceUpperCaseTags($message, $replaces); $this->message = HTMLHelper::_('content.prepare', $message); parent::display(); } /** * Get data using for subscription form * * @param MPFInput $input * @param User $user * @param int $planId * @param array $rowFields * @param stdClass $config * * @return array */ protected function getFormData($input, $user, $planId, $rowFields, $config) { $userId = $user->id; if ($input->getInt('validation_error', 0)) { $data = $input->getData(); } else { $data = []; if ($userId) { // Check to see if this user has profile data already $db = $this->model->getDbo(); $query = $db->getQuery(true); $query->select('*') ->from('#__osmembership_subscribers') ->where('user_id=' . $userId . ' AND is_profile=1'); $db->setQuery($query); $rowProfile = $db->loadObject(); if ($rowProfile) { $data = OSMembershipHelper::getProfileData($rowProfile, $planId, $rowFields); } else { $mappings = []; foreach ($rowFields as $rowField) { if ($rowField->field_mapping) { $mappings[$rowField->name] = $rowField->field_mapping; } } PluginHelper::importPlugin('osmembership'); $event = new GetProfileData(['userId' => $userId, 'mappings' => $mappings]); $results = Factory::getApplication()->triggerEvent($event->getName(), $event); if (count($results)) { foreach ($results as $res) { if (is_array($res) && count($res)) { $data = $res; break; } } } } if (!count($data) && PluginHelper::isEnabled('user', 'profile')) { $synchronizer = new MPFSynchronizerJoomla(); $mappings = []; foreach ($rowFields as $rowField) { if ($rowField->profile_field_mapping) { $mappings[$rowField->name] = $rowField->profile_field_mapping; } } $data = $synchronizer->getData($userId, $mappings); // Convert from state name to start 2 code if (!empty($data['country']) && !empty($data['state']) && strlen($data['state']) > 2) { $data['state'] = OSMembershipHelper::getStateCode($data['country'], $data['state']); } } } else { $data = $input->getData(); } } if ($userId && !isset($data['first_name'])) { // Load the name from Joomla default name $name = $user->name; if ($name) { $pos = strpos($name, ' '); if ($pos !== false) { $data['first_name'] = substr($name, 0, $pos); $data['last_name'] = substr($name, $pos + 1); } else { $data['first_name'] = $name; $data['last_name'] = ''; } } } if ($userId && !isset($data['email'])) { $data['email'] = $user->email; } if (!isset($data['country']) || !$data['country']) { $data['country'] = $config->default_country; } // Handle Populate Data From Previous Subscription from custom field settings foreach ($rowFields as $rowField) { if (!$rowField->populate_from_previous_subscription && isset($data[$rowField->name])) { unset($data[$rowField->name]); } } $data += $input->get->getData(); return $data; } } PK ! +�m@ @ tmpl/default_js.phpnu �[��� <?php /** * @package Joomla * @subpackage Membership Pro * @author Tuan Pham Ngoc * @copyright Copyright (C) 2012 - 2025 Ossolution Team * @license GNU/GPL, see LICENSE.php */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Uri\Uri; /** * @var string $selectedState */ HTMLHelper::_('bootstrap.tooltip', '.hasTooltip', ['html' => true, 'sanitize' => false]); OSMembershipHelper::addLangLinkForAjax(); OSMembershipHelperJquery::validateForm(); Factory::getApplication()->getDocument() ->addScriptOptions('selectedState', $selectedState) ->addScriptOptions('maxErrorsPerField', (int) $this->config->max_errors_per_field) ->getWebAssetManager() ->useScript('core') ->addInlineScript('var siteUrl = "' . Uri::root(true) . '/";') ->registerAndUseScript('com_osmembership.paymentmethods', 'media/com_osmembership/assets/js/paymentmethods.min.js') ->registerAndUseScript('com_osmembership.site-group-default', 'media/com_osmembership/js/site-group-default.min.js');PK ! ����� � tmpl/default_form.phpnu �[��� <?php /** * @package Joomla * @subpackage Membership Pro * @author Tuan Pham Ngoc * @copyright Copyright (C) 2012 - 2025 Ossolution Team * @license GNU/GPL, see LICENSE.php */ defined('_JEXEC') or die ; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Language\Text; /**@var OSMembershipHelperBootstrap $bootstrapHelper **/ $bootstrapHelper = $this->bootstrapHelper; $controlGroupClass = $bootstrapHelper->getClassMapping('control-group'); $inputPrependClass = $bootstrapHelper->getClassMapping('input-prepend'); $inputAppendClass = $bootstrapHelper->getClassMapping('input-append'); $addOnClass = $bootstrapHelper->getClassMapping('add-on'); $controlLabelClass = $bootstrapHelper->getClassMapping('control-label'); $controlsClass = $bootstrapHelper->getClassMapping('controls'); if (!$this->userId) { $params = ComponentHelper::getParams('com_users'); $passwordValidationRules = 'validate[required'; if ($minimumLength = $params->get('minimum_length', 4)) { $passwordValidationRules .= ",minSize[$minimumLength]"; } $passwordValidationRules .= ',ajax[ajaxValidatePassword]]'; if (empty($this->config->use_email_as_username)) { ?> <div id="field_username" class="<?php echo $controlGroupClass ?>"> <div class="<?php echo $controlLabelClass; ?>"> <?php echo OSMembershipHelperHtml::getFieldLabel('username1', Text::_('OSM_USERNAME'), Text::_('OSM_USERNAME_TOOLTIP'), true); ?> </div> <div class="<?php echo $controlsClass; ?>"> <input type="text" name="username" id="username1" class="validate[required,minSize[2],ajax[ajaxUserCall]]<?php echo $bootstrapHelper->getFrameworkClass('uk-input form-control', 1); ?>" value="<?php echo $this->escape($this->input->post->getUsername('username')); ?>" size="15" autocomplete="off"/> </div> </div> <?php } else { echo $fields['email']->getControlGroup($bootstrapHelper); unset($fields['email']); } ?> <div id="field_password" class="<?php echo $controlGroupClass ?>"> <div class="<?php echo $controlLabelClass; ?>"> <?php echo OSMembershipHelperHtml::getFieldLabel('password1', Text::_('OSM_PASSWORD'), Text::_('OSM_PASSWORD_TOOLTIP'), true); ?> </div> <div class="<?php echo $controlsClass; ?>"> <input value="" class="<?php echo $passwordValidationRules; ?><?php echo $bootstrapHelper->getFrameworkClass('uk-input form-control', 1); ?>" type="password" name="password1" id="password1" autocomplete="off"/> </div> </div> <div id="field_password2" class="<?php echo $controlGroupClass ?>"> <div class="<?php echo $controlLabelClass; ?>"> <label for="password2"> <?php echo Text::_('OSM_RETYPE_PASSWORD') ?> <span class="required">*</span> </label> </div> <div class="<?php echo $controlsClass; ?>"> <input value="" class="validate[required,equals[password1]]<?php echo $bootstrapHelper->getFrameworkClass('uk-input form-control', 1); ?>" type="password" name="password2" id="password2" /> </div> </div> <?php } foreach ($fields as $field) { /* @var MPFFormField $field */ echo $field->getControlGroup($bootstrapHelper); } PK ! �ҥ�� � tmpl/complete.phpnu �[��� <?php /** * @package Joomla * @subpackage Membership Pro * @author Tuan Pham Ngoc * @copyright Copyright (C) 2012 - 2025 Ossolution Team * @license GNU/GPL, see LICENSE.php */ use Joomla\CMS\Language\Text; ?> <div id="osm-join-group-complete" class="osm-container"> <h1 class="osm-page-title"><?php echo Text::_('OSM_JOIN_GROUP_COMPLETE'); ?></h1> <p class="osm-message"><?php echo $this->message; ?></p> </div> PK ! �TQ�� � tmpl/default.xmlnu �[��� <?xml version="1.0" encoding="utf-8"?> <metadata> <layout title="COM_OSMEMBERSHIP_VIEW_GROUP_DEFAULT_TITLE"> <message> <![CDATA[COM_OSMEMBERSHIP_VIEW_GROUP_DEFAULT_DESCRIPTION]]> </message> </layout> </metadata>PK ! j7�) ) tmpl/default.phpnu �[��� <?php /** * @package Joomla * @subpackage Membership Pro * @author Tuan Pham Ngoc * @copyright Copyright (C) 2012 - 2025 Ossolution Team * @license GNU/GPL, see LICENSE.php */ defined('_JEXEC') or die ; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; use Joomla\CMS\Uri\Uri; HTMLHelper::_('behavior.keepalive'); /**@var OSMembershipViewRegisterHtml $this **/ $selectedState = ''; $fields = $this->form->getFields(); if (isset($fields['state'])) { $selectedState = $fields['state']->value; } $headerText = Text::_('OSM_JOIN_GROUP'); $headerText = str_replace('[PLAN_TITLE]', $this->plan->title, $headerText); /**@var OSMembershipHelperBootstrap $bootstrapHelper * */ $bootstrapHelper = $this->bootstrapHelper; $controlGroupClass = $bootstrapHelper->getClassMapping('control-group'); $inputPrependClass = $bootstrapHelper->getClassMapping('input-prepend'); $inputAppendClass = $bootstrapHelper->getClassMapping('input-append'); $addOnClass = $bootstrapHelper->getClassMapping('add-on'); $controlLabelClass = $bootstrapHelper->getClassMapping('control-label'); $controlsClass = $bootstrapHelper->getClassMapping('controls'); $btnClass = $bootstrapHelper->getClassMapping('btn'); $btnPrimaryClass = $bootstrapHelper->getClassMapping('btn btn-primary'); $formFormat = $this->config->get('form_format', 'horizontal') ?: 'horizontal'; if ($formFormat == 'horizontal') { $formClass = $bootstrapHelper->getClassMapping('form form-horizontal'); } else { $formClass = $bootstrapHelper->getClassMapping('form'); } // Load necessary javascript library $layoutData = [ 'selectedState' => $selectedState, ]; $this->loadTemplate('js', $layoutData); ?> <div id="osm-join-group-page" class="osm-container osm-plan-<?php echo $this->plan->id; ?>"> <?php if ($this->params->get('show_page_heading', 1)) { ?> <h1 class="osm-page-title"><?php echo $headerText; ?></h1> <?php } if (strlen($this->message)) { ?> <div class="osm-message clearfix"><?php echo $this->message; ?></div> <?php } // Login form for existing user echo $this->loadCommonLayout('register/tmpl/default_login.php', ['fields' => $fields]); ?> <form method="post" name="os_form" id="os_form" action="<?php echo Route::_('index.php?option=com_osmembership&task=group.process&Itemid=' . $this->Itemid, false, $this->config->use_https ? 1 : 0); ?>" enctype="multipart/form-data" autocomplete="off" class="<?php echo $formClass; ?>"> <?php echo $this->loadTemplate('form', ['fields' => $fields]); $layoutData = [ 'controlGroupClass' => $controlGroupClass, 'controlLabelClass' => $controlLabelClass, 'controlsClass' => $controlsClass, ]; if ($this->config->show_privacy_policy_checkbox || $this->config->show_subscribe_newsletter_checkbox) { echo $this->loadCommonLayout('register/tmpl/default_gdpr.php', $layoutData); } echo $this->loadCommonLayout('register/tmpl/default_terms_conditions.php', $layoutData); if ($this->showCaptcha) { if ($this->captchaPlugin == 'recaptcha_invisible') { $style = ' style="display:none;"'; } else { $style = ''; } ?> <div class="<?php echo $controlGroupClass ?> osm-captcha-container"> <div class="<?php echo $controlLabelClass; ?>"<?php echo $style; ?>> <?php echo Text::_('OSM_CAPTCHA'); ?><span class="required">*</span> </div> <div class="<?php echo $controlsClass; ?>"> <?php echo $this->captcha;?> </div> </div> <?php } ?> <div class="form-actions"> <input type="submit" class="<?php echo $btnPrimaryClass; ?>" name="btnSubmit" id="btn-submit" value="<?php echo Text::_('OSM_PROCESS') ;?>"> <img id="ajax-loading-animation" src="<?php echo Uri::root(true); ?>/media/com_osmembership/ajax-loadding-animation.gif" style="display: none;"/> </div> <input type="hidden" name="group_id" value="<?php echo $this->group->subscription_code ;?>" /> <?php echo HTMLHelper::_('form.token'); ?> </form> </div>PK ! R�XK K edit.phpnu �[��� <?php /** * @package Joomla.Administrator * @subpackage com_fields * * @copyright (C) 2016 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\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; /** @var \Joomla\Component\Fields\Administrator\View\Group\HtmlView $this */ /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->getDocument()->getWebAssetManager(); $wa->useScript('keepalive') ->useScript('form.validate'); $app = Factory::getApplication(); $input = $app->getInput(); $this->useCoreUI = true; ?> <form action="<?php echo Route::_('index.php?option=com_fields&context=' . $this->state->get('filter.context') . '&layout=edit&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="item-form" aria-label="<?php echo Text::_('COM_FIELDS_GROUP_FORM_' . ((int) $this->item->id === 0 ? 'NEW' : 'EDIT'), true); ?>" class="form-validate"> <?php echo LayoutHelper::render('joomla.edit.title_alias', $this); ?> <div class="main-card form-horizontal"> <?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', ['active' => 'general', 'recall' => true, 'breakpoint' => 768]); ?> <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'general', Text::_('COM_FIELDS_VIEW_FIELD_FIELDSET_GENERAL', true)); ?> <div class="row"> <div class="col-lg-9"> <?php echo $this->form->renderField('label'); ?> <?php echo $this->form->renderField('description'); ?> </div> <div class="col-lg-3"> <?php $this->fields = [ [ 'published', 'state', 'enabled', ], 'access', 'language', 'note', ]; ?> <?php echo LayoutHelper::render('joomla.edit.global', $this); ?> <?php $this->fields = null; ?> </div> </div> <?php echo HTMLHelper::_('uitab.endTab'); ?> <?php $this->ignore_fieldsets = ['fieldparams']; ?> <?php echo LayoutHelper::render('joomla.edit.params', $this); ?> <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'publishing', Text::_('JGLOBAL_FIELDSET_PUBLISHING', true)); ?> <fieldset id="fieldset-rules" class="options-form"> <legend><?php echo Text::_('JGLOBAL_FIELDSET_PUBLISHING'); ?></legend> <div> <?php echo LayoutHelper::render('joomla.edit.publishingdata', $this); ?> </div> </fieldset> <?php echo HTMLHelper::_('uitab.endTab'); ?> <?php if ($this->canDo->get('core.admin')) : ?> <?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'rules', Text::_('JGLOBAL_ACTION_PERMISSIONS_LABEL', true)); ?> <fieldset id="fieldset-rules" class="options-form"> <legend><?php echo Text::_('JGLOBAL_ACTION_PERMISSIONS_LABEL'); ?></legend> <div> <?php echo $this->form->getInput('rules'); ?> </div> </fieldset> <?php echo HTMLHelper::_('uitab.endTab'); ?> <?php endif; ?> <?php echo HTMLHelper::_('uitab.endTabSet'); ?> <?php echo $this->form->getInput('context'); ?> <input type="hidden" name="task" value=""> <?php echo HTMLHelper::_('form.token'); ?> </div> </form> PK ! ��� $ $ html.phpnu �[��� PK ! +�m@ @ A$ tmpl/default_js.phpnu �[��� PK ! ����� � �( tmpl/default_form.phpnu �[��� PK ! �ҥ�� � �5 tmpl/complete.phpnu �[��� PK ! �TQ�� � �7 tmpl/default.xmlnu �[��� PK ! j7�) ) �8 tmpl/default.phpnu �[��� PK ! R�XK K 4I edit.phpnu �[��� PK ) �W
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка