Файловый менеджер - Редактировать - /home/lmsyaran/public_html/khademsharif/src.tar
Назад
Dispatcher/Dispatcher.php 0000644 00000002145 15117142525 0011436 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage mod_footer * * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Module\Footer\Site\Dispatcher; use Joomla\CMS\Dispatcher\AbstractModuleDispatcher; use Joomla\CMS\HTML\HTMLHelper; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Dispatcher class for mod_footer * * @since 4.4.0 */ class Dispatcher extends AbstractModuleDispatcher { /** * Returns the layout data. * * @return array * * @since 4.4.0 */ protected function getLayoutData(): array { $data = parent::getLayoutData(); $lineOne = $this->getApplication()->getLanguage()->_('MOD_FOOTER_LINE1'); $lineOne = str_replace('%date%', HTMLHelper::_('date', 'now', 'Y'), $lineOne); $lineOne = str_replace('%sitename%', $this->getApplication()->get('sitename', ''), $lineOne); $data['lineone'] = $lineOne; return $data; } } Abstraction/Api.php 0000644 00000005527 15120151634 0010246 0 ustar 00 <?php /** * @package Joomla.Component.Builder * * @created 4th September, 2022 * @author Llewellyn van der Merwe <https://dev.vdm.io> * @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder> * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace VDM\Joomla\Gitea\Abstraction; use VDM\Joomla\Gitea\Utilities\Http; use VDM\Joomla\Gitea\Utilities\Uri; use VDM\Joomla\Gitea\Utilities\Response; use VDM\Joomla\Interfaces\Git\ApiInterface; /** * The Gitea Api * * @since 3.2.0 */ abstract class Api implements ApiInterface { /** * The Http class * * @var Http * @since 3.2.0 */ protected Http $http; /** * The Uri class * * @var Uri * @since 3.2.0 */ protected Uri $uri; /** * The Response class * * @var Response * @since 3.2.0 */ protected Response $response; /** * The Url string * * @var string|null * @since 3.2.0 */ protected ?string $url = null; /** * The token string * * @var string|null * @since 3.2.0 */ protected ?string $token = null; /** * Constructor. * * @param Http $http The http class. * @param Uri $uri The uri class. * @param Response $response The response class. * * @since 3.2.0 **/ public function __construct(Http $http, Uri $uri, Response $response) { $this->http = $http; $this->uri = $uri; $this->response = $response; } /** * Load/Reload API. * * @param string|null $url The url. * @param token|null $token The token. * @param bool $backup The backup swapping switch. * * @return void * @since 3.2.0 **/ public function load_(?string $url = null, ?string $token = null, bool $backup = true): void { // we keep the old values // so we can reset after our call // for the rest of the container if ($backup) { if ($url !== null) { $this->url = $this->uri->getUrl(); } if ($token !== null) { $this->token = $this->http->getToken(); } } if ($url !== null) { $this->uri->setUrl($url); } if ($token !== null) { $this->http->setToken($token); } } /** * Reset to previous toke, url it set * * @return void * @since 3.2.0 **/ public function reset_(): void { if ($this->url !== null) { $this->uri->setUrl($this->url); $this->url = null; } if ($this->token !== null) { $this->http->setToken($this->token); $this->token = null; } } /** * Get the API url * * @return string * @since 3.2.0 **/ public function api() { return $this->uri->api(); } } Abstraction/index.html 0000644 00000000054 15120151634 0011007 0 ustar 00 <html><body bgcolor="#FFFFFF"></body></html>