Файловый менеджер - Редактировать - /var/www/html/Profile.zip
Ðазад
PK ! fD� HtmlView.phpnu �[��� <?php /** * @package akeebabackup * @copyright Copyright 2006-2026 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace Akeeba\Component\AkeebaBackup\Administrator\View\Profile; defined('_JEXEC') or die; use Akeeba\Component\AkeebaBackup\Administrator\Mixin\ViewToolbarTrait; use Akeeba\Component\AkeebaBackup\Administrator\Model\ProfileModel; use Exception; use Joomla\CMS\Factory; use Joomla\CMS\Form\Form; use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\GenericDataException; use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView; use Joomla\CMS\Toolbar\Toolbar; use Joomla\CMS\Toolbar\ToolbarHelper; #[\AllowDynamicProperties] class HtmlView extends BaseHtmlView { use ViewToolbarTrait; /** * The Form object * * @var Form * @since 1.5 */ protected $form; /** * The active item * * @var object * @since 1.5 */ protected $item; /** * The model state * * @var object * @since 1.5 */ protected $state; /** * Display the view * * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return void * * @throws Exception * @since 9.0.0 * */ public function display($tpl = null): void { $errors = []; try { /** @var ProfileModel $model */ $model = $this->getModel(); $this->form = $model->getForm(); $this->item = $model->getItem(); $this->state = $model->getState(); } catch (Exception $e) { $errors = [$e->getMessage()]; } // Check for errors. if (method_exists($this->getModel(), 'getErrors')) { /** @noinspection PhpDeprecationInspection */ $errors = $this->getModel()->getErrors(); } if ( (is_array($errors) || $errors instanceof \Countable) ? count($errors) : 0 ) { throw new GenericDataException(implode("\n", $errors), 500); } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @return void * * @throws Exception * @since 9.0.0 */ protected function addToolbar(): void { Factory::getApplication()->getInput()->set('hidemainmenu', true); $isNew = ($this->item->id == 0); ToolbarHelper::title($isNew ? Text::_('COM_AKEEBABACKUP_PROFILES_PAGETITLE_NEW') : Text::_('COM_AKEEBABACKUP_PROFILES_PAGETITLE_EDIT'), 'icon-akeeba'); $toolbar = $this->getToolbarCompat(); $toolbar->apply('profile.apply'); $saveGroup = $toolbar->dropdownButton('save-group'); $saveGroup->configure( function (Toolbar $childBar) use ($isNew) { $childBar->save('profile.save'); $childBar->save2new('profile.save2new'); // If an existing item, can save to a copy. if (!$isNew) { $childBar->save2copy('profile.save2copy'); } } ); $toolbar->cancel('profile.cancel', $isNew ? 'JTOOLBAR_CANCEL' : 'JTOOLBAR_CLOSE'); $toolbar->divider(); $toolbar->help(null, false, 'https://www.akeeba.com/documentation/akeeba-backup-joomla/using-basic-operations.html#profiles-management'); } }PK ! �=�s, , UserEditProfileDisplay.phpnu �[��� <?php /** * Kunena Component * * @package Kunena.Site * @subpackage Controller.User * * @copyright Copyright (C) 2008 - 2026 Kunena Team. All rights reserved. * @license https://www.gnu.org/copyleft/gpl.html GNU/GPL * @link https://www.kunena.org **/ namespace Kunena\Forum\Site\Controller\User\Edit\Profile; \defined('_JEXEC') or die(); use Exception; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Kunena\Forum\Site\Controller\User\Edit\UserEditDisplay; use Kunena\Forum\Libraries\User\KunenaUserSocials; /** * Class ComponentUserControllerEditProfileDisplay * * @since Kunena 4.0 */ class UserEditProfileDisplay extends UserEditDisplay { /** * @var string * @since Kunena 6.0 */ protected $name = 'User/Edit/Profile'; public $genders; public $birthdate; public $socials; /** * Prepare profile form items. * * @return void * * @throws null * @throws Exception * @since Kunena 6.0 */ protected function before() { parent::before(); $bd = $this->profile->birthdate ? explode("-", $this->profile->birthdate) : []; if (\count($bd) == 3) { $this->birthdate["year"] = $bd[0]; $this->birthdate["month"] = $bd[1]; $this->birthdate["day"] = $bd[2]; } $this->genders[] = HTMLHelper::_('select.option', '0', Text::_('COM_KUNENA_MYPROFILE_GENDER_UNKNOWN')); $this->genders[] = HTMLHelper::_('select.option', '1', Text::_('COM_KUNENA_MYPROFILE_GENDER_MALE')); $this->genders[] = HTMLHelper::_('select.option', '2', Text::_('COM_KUNENA_MYPROFILE_GENDER_FEMALE')); $this->headerText = Text::_('COM_KUNENA_PROFILE_EDIT_PROFILE_TITLE'); $this->socials = KunenaUserSocials::getInstance($this->profile->userid); } /** * Prepare document. * * @return void * * @throws Exception * @since Kunena 6.0 */ protected function prepareDocument() { $menu_item = $this->app->getMenu()->getActive(); if ($menu_item) { $params = $menu_item->getParams(); $params_title = $params->get('page_title'); $params_description = $params->get('menu-meta_description'); if (!empty($params_title)) { $title = $params->get('page_title'); $this->setTitle($title); } else { $this->setTitle($this->headerText); } if (!empty($params_description)) { $description = $params->get('menu-meta_description'); $this->setDescription($description); } else { $this->setDescription($this->headerText); } } } } PK ! fD� HtmlView.phpnu �[��� PK ! �=�s, , < UserEditProfileDisplay.phpnu �[��� PK � �
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка