first commit

This commit is contained in:
2026-02-08 21:16:11 +01:00
commit e17b7026fd
8881 changed files with 1160453 additions and 0 deletions

View File

@@ -0,0 +1,81 @@
<?php
/**
* @package akeebabackup
* @copyright Copyright (c)2006-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
// Protect from unauthorized access
use Joomla\CMS\Language\Text;
defined('_JEXEC') || die();
/** @var \Joomla\CMS\MVC\View\HtmlView|\Akeeba\Component\AkeebaBackup\Administrator\Mixin\ViewLoadAnyTemplateTrait $this */
// Make sure we only ever add this HTML and JS once per page
if (defined('AKEEBA_VIEW_JAVASCRIPT_CONFWIZ_MODAL'))
{
return;
}
define('AKEEBA_VIEW_JAVASCRIPT_CONFWIZ_MODAL', 1);
$js = <<< JS
window.addEventListener('DOMContentLoaded', function() {
new window.bootstrap.Modal(document.getElementById('akeeba-config-confwiz-bubble'), {
backdrop: 'static',
keyboard: true,
focus: true
}).show();
});
JS;
$this->document->getWebAssetManager()
->useScript('bootstrap.modal')
->addInlineScript($js, [], [], ['bootstrap.modal']);
?>
<div id="akeeba-config-confwiz-bubble"
class="modal fade"
role="dialog"
tabindex="-1"
aria-labelledby="akeeba-config-confwiz-title"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="akeeba-config-confwiz-title">
<?= Text::_('COM_AKEEBABACKUP_CONFIG_HEADER_CONFWIZ') ?>
</h3>
<button type="button" class="btn-close novalidate" data-bs-dismiss="modal"
aria-label="<?= Text::_('JLIB_HTML_BEHAVIOR_CLOSE') ?>"></button>
</div>
<div class="modal-body p-3">
<p>
<?= Text::_('COM_AKEEBABACKUP_CONFIG_LBL_CONFWIZ_INTRO') ?>
</p>
<p class="d-grid gap-2">
<a href="index.php?option=com_akeebabackup&view=Configurationwizard"
class="btn bg-success text-white btn-lg"> <span class="fa fa-bolt"></span>&nbsp;
<?= Text::_('COM_AKEEBABACKUP_CONFWIZ') ?>
</a>
</p>
<p>
<?= Text::_('COM_AKEEBABACKUP_CONFIG_LBL_CONFWIZ_AFTER') ?>
</p>
</div>
<div class="modal-footer">
<button
class="btn btn-primary btn-sm"
data-bs-dismiss="modal"
>
<span class="fa fa-times"></span>
<?= Text::_('JCANCEL') ?>
</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,107 @@
<?php
/**
* @package akeebabackup
* @copyright Copyright (c)2006-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
// Protect from unauthorized access
defined('_JEXEC') || die();
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
/** @var \Akeeba\Component\AkeebaBackup\Administrator\View\Configuration\HtmlView $this */
// Enable Bootstrap popovers
HTMLHelper::_('bootstrap.popover', '[rel=popover]', [
'html' => true,
'placement' => 'bottom',
'trigger' => 'click hover',
'sanitize' => false,
]);
// Configuration Wizard pop-up
if ($this->promptForConfigurationwizard)
{
echo $this->loadAnyTemplate('Configuration/confwiz_modal');
}
// Modal dialog prototypes
echo $this->loadAnyTemplate('commontemplates/ftpconnectiontest');
echo $this->loadAnyTemplate('commontemplates/errormodal');
echo $this->loadAnyTemplate('commontemplates/folderbrowser');
?>
<?php if($this->secureSettings == 1): ?>
<div class="alert alert-success alert-dismissible">
<?= Text::_('COM_AKEEBABACKUP_CONFIG_UI_SETTINGS_SECURED') ?>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="<?= Text::_('JLIB_HTML_BEHAVIOR_CLOSE') ?>"></button>
</div>
<?php elseif($this->secureSettings == 0): ?>
<div class="alert alert-warning alert-dismissible">
<?= Text::_('COM_AKEEBABACKUP_CONFIG_UI_SETTINGS_NOTSECURED') ?>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="<?= Text::_('JLIB_HTML_BEHAVIOR_CLOSE') ?>"></button>
</div>
<?php endif ?>
<?= $this->loadAnyTemplate('commontemplates/profilename') ?>
<div class="alert alert-info alert-dismissible">
<?= Text::_('COM_AKEEBABACKUP_CONFIG_WHERE_ARE_THE_FILTERS') ?>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="<?= Text::_('JLIB_HTML_BEHAVIOR_CLOSE') ?>"></button>
</div>
<form name="adminForm" id="adminForm" method="post"
action="index.php">
<div class="card">
<h3 class="card-header">
<?= Text::_('COM_AKEEBABACKUP_PROFILES_LABEL_DESCRIPTION') ?>
</h3>
<div class="card-body">
<div class="row mb-3">
<label for="profilename" class="col-sm-3 col-form-label"
rel="popover"
title="<?= Text::_('COM_AKEEBABACKUP_PROFILES_LABEL_DESCRIPTION') ?>"
data-bs-content="<?= Text::_('COM_AKEEBABACKUP_PROFILES_LABEL_DESCRIPTION_TOOLTIP') ?>"
>
<?= Text::_('COM_AKEEBABACKUP_PROFILES_LABEL_DESCRIPTION') ?>
</label>
<div class="col-sm-9">
<input type="text" name="profilename" id="profilename"
class="form-control"
value="<?= $this->escape($this->profileName) ?>"/>
</div>
</div>
<div class="row mb-3">
<div class="col-sm-9 offset-sm-3">
<div class="form-check">
<input type="checkbox" name="quickicon"
class="form-check-input"
id="quickicon" <?= $this->quickIcon ? 'checked="checked"' : '' ?>/>
<label for="quickicon"
class="form-check-label"
rel="popover"
title="<?= Text::_('COM_AKEEBABACKUP_CONFIG_QUICKICON_LABEL') ?>"
data-bs-content="<?= Text::_('COM_AKEEBABACKUP_CONFIG_QUICKICON_DESC') ?>"
>
<?= Text::_('COM_AKEEBABACKUP_CONFIG_QUICKICON_LABEL') ?>
</label>
</div>
</div>
</div>
</div>
</div>
<!-- This div contains dynamically generated user interface elements -->
<div id="akeebagui">
</div>
<input type="hidden" name="option" value="com_akeebabackup"/>
<input type="hidden" name="view" value="Configuration"/>
<input type="hidden" name="task" value=""/>
<input type="hidden" name="<?= \Joomla\CMS\Factory::getApplication()->getFormToken() ?>" value="1"/>
</form>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--~
~ @package akeebabackup
~ @copyright Copyright (c)2006-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
~ @license GNU General Public License version 3, or later
-->
<metadata>
<layout title="COM_AKEEBABACKUP_VIEW_CONFIGURATION_TITLE">
<message>
<![CDATA[COM_AKEEBABACKUP_VIEW_CONFIGURATION_DESC]]>
</message>
</layout>
</metadata>