| Current Path : /home/wuectly/www/03cbe/ |
| Current File : /home/wuectly/www/03cbe/com_akeeba.tar |
View/Oauth2/Raw.php 0000604 00000001222 15245523150 0010055 0 ustar 00 <?php
/**
* @package akeebabackup
* @copyright Copyright (c)2006-2023 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
namespace Akeeba\Backup\Site\View\Oauth2;
defined('_JEXEC') || die;
use Akeeba\Backup\Site\Model\Oauth2\ProviderInterface;
use Akeeba\Backup\Site\Model\Oauth2\TokenResponse;
use FOF40\View\DataView\Raw as BaseView;
class Raw extends BaseView
{
/** @var ProviderInterface|null */
public $provider = null;
/** @var TokenResponse|null */
public $tokens = null;
/** @var \Exception|null */
public $exception = null;
/** @var string|null */
public $step1url = null;
} tmpl/Oauth2/error.php 0000604 00000003361 15245523150 0010525 0 ustar 00 <?php
/**
* @package akeebabackup
* @copyright Copyright (c)2006-2023 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
/**
* @var \Akeeba\Backup\Site\View\OAuth2\Raw $this
*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
/** @var JDocumentRaw $doc */
$doc = Factory::getDocument();
$app = Factory::getApplication();
$app->setHeader('Pragma', 'public');
$app->setHeader('Expires', '0');
$app->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0');
$app->setHeader('Cache-Control', 'public');
$doc->setMimeEncoding('text/html');
$title = Text::sprintf('COM_AKEEBA_OAUTH2_TITLE', $this->provider->getEngineNameForHumans());
?>
<html lang="<?= Factory::getApplication()->getLanguage()->getTag() ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= Text::sprintf('COM_AKEEBA_OAUTH2_TITLE', $this->provider->getEngineNameForHumans()) ?></title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
defer
crossorigin="anonymous"></script>
</head>
<body>
<div class="card m-2 border-danger border-2">
<div class="card-body">
<h1>
<?= Text::sprintf('COM_AKEEBA_OAUTH2_AUTH_ERROR', $this->provider->getEngineNameForHumans()) ?>
</h1>
<p>
<?= $this->escape($this->exception->getMessage()) ?>
</p>
</div>
</div>
</body>
</html>
tmpl/Oauth2/default.php 0000604 00000004010 15245523150 0011010 0 ustar 00 <?php
/**
* @package akeebabackup
* @copyright Copyright (c)2006-2023 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
/**
* @var \Akeeba\Backup\Site\View\OAuth2\Raw $this
*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
/** @var JDocumentRaw $doc */
$doc = Factory::getDocument();
$app = Factory::getApplication();
$app->setHeader('Pragma', 'public');
$app->setHeader('Expires', '0');
$app->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0');
$app->setHeader('Cache-Control', 'public');
$doc->setMimeEncoding('text/html');
$title = Text::sprintf('COM_AKEEBA_OAUTH2_TITLE', $this->provider->getEngineNameForHumans());
?>
<html lang="<?= Factory::getApplication()->getLanguage()->getTag() ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= Text::sprintf('COM_AKEEBA_OAUTH2_TITLE', $this->provider->getEngineNameForHumans()) ?></title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
defer
crossorigin="anonymous"></script>
</head>
<body>
<div class="card m-2">
<div class="card-body">
<h1>
<?= Text::sprintf('COM_AKEEBA_OAUTH2_AUTH_ALMOST_COMPLETE', $this->provider->getEngineNameForHumans()) ?>
</h1>
<p>
<?= Text::_('COM_AKEEBA_OAUTH2_AUTH_COPY') ?>
</p>
<p>
<strong><?= Text::_('COM_AKEEBA_OAUTH2_ACCESS') ?></strong><br/>
<code><?= $this->escape($this->tokens['accessToken']) ?></code><br/>
<strong><?= Text::_('COM_AKEEBA_OAUTH2_REFRESH') ?></strong><br/>
<code><?= $this->escape($this->tokens['refreshToken']) ?></code><br/><br/>
</p>
</div>
</div>
</body>
</html>
tmpl/Oauth2/step1.php 0000604 00000004017 15245523150 0010427 0 ustar 00 <?php
/**
* @package akeebabackup
* @copyright Copyright (c)2006-2023 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
/**
* @var \Akeeba\Backup\Site\View\OAuth2\Raw $this
*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
/** @var JDocumentRaw $doc */
$doc = Factory::getDocument();
$app = Factory::getApplication();
$app->setHeader('Pragma', 'public');
$app->setHeader('Expires', '0');
$app->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0');
$app->setHeader('Cache-Control', 'public');
$doc->setMimeEncoding('text/html');
$title = Text::sprintf('COM_AKEEBA_OAUTH2_TITLE', $this->provider->getEngineNameForHumans());
?>
<html lang="<?= Factory::getApplication()->getLanguage()->getTag() ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
<?= Text::sprintf('COM_AKEEBA_OAUTH2_TITLE', $this->provider->getEngineNameForHumans()) ?>
</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
defer
crossorigin="anonymous"></script>
</head>
<body>
<div class="card m-2">
<div class="card-body">
<h1>
<?= Text::sprintf('COM_AKEEBA_OAUTH2_AUTH', $this->provider->getEngineNameForHumans()) ?>
</h1>
<p>
<?= Text::sprintf('COM_AKEEBA_OAUTH2_AUTH_INFO', $this->provider->getEngineNameForHumans(), Factory::getApplication()->get('sitename')) ?>
</p>
<p class="text-center p-3">
<a href="<?= $this->step1url ?>"
class="btn btn-lg btn-primary"
>
<?= Text::sprintf('COM_AKEEBA_OAUTH2_AUTH_START', $this->provider->getEngineNameForHumans()) ?>
</a>
</p>
</div>
</div>
</body>
</html>
Dispatcher/.htaccess 0000604 00000000246 15245523150 0010430 0 ustar 00 <IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
<IfModule mod_authz_core.c>
<RequireAll>
Require all denied
</RequireAll>
</IfModule>
Dispatcher/web.config 0000604 00000001025 15245523150 0010572 0 ustar 00 <?xml version="1.0"?>
<!--
This only works on IIS 7 or later. See https://www.iis.net/configreference/system.webserver/security/requestfiltering/fileextensions
-->
<configuration>
<system.webServer>
<security>
<requestFiltering>
<fileExtensions allowUnlisted="false" >
<clear />
<add fileExtension=".html" allowed="true"/>
</fileExtensions>
</requestFiltering>
</security>
</system.webServer>
</configuration>