first commit
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
/**
|
||||
* @package akeebabackup
|
||||
* @copyright Copyright (c)2006-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
/** @var \Akeeba\Component\AkeebaBackup\Administrator\View\Alice\HtmlView $this */
|
||||
?>
|
||||
<?php if (empty($this->logs)): ?>
|
||||
<div class="alert alert-danger">
|
||||
<p>
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ERR_NOLOGS') ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?php if($this->autorun): ?>
|
||||
<div class="alert alert-warning">
|
||||
<p>
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_AUTORUN_NOTICE') ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<form name="adminForm" id="adminForm"
|
||||
action="<?= Route::_('index.php?option=com_akeebabackup&view=Alice&task=start') ?>"
|
||||
method="post"
|
||||
class="row row-cols-lg-auto g-3 align-items-center">
|
||||
|
||||
<div class="col-12">
|
||||
<label for="tag">
|
||||
<?= Text::_('COM_AKEEBABACKUP_LOG_CHOOSE_FILE_TITLE') ?>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<?= HTMLHelper::_('select.genericlist', $this->logs, 'log', [
|
||||
'list.attr' => [
|
||||
'class' => 'form-select',
|
||||
]
|
||||
], 'value', 'text', $this->log) ?>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<button type="submit"
|
||||
class="btn btn-primary" id="analyze-log">
|
||||
<span class="fa fa-diagnoses"></span>
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ANALYZE') ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?= HTMLHelper::_('form.token') ?>
|
||||
</form>
|
||||
<?php endif ?>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<h2><?= Text::_('COM_AKEEBABACKUP_ALICE_HEAD_ONLYFAILED') ?></h2>
|
||||
<p>
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_LBL_ONLYFAILED_SHOWINGLOGS') ?>
|
||||
</p>
|
||||
<p>
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_LBL_ONLYFAILED_WHATISFAILED') ?>
|
||||
</p>
|
||||
<p>
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_LBL_ONLYFAILED_IFNOFAILED') ?>
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* @package akeebabackup
|
||||
* @copyright Copyright (c)2006-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
/** @var \Akeeba\Component\AkeebaBackup\Administrator\View\Alice\HtmlView $this */
|
||||
?>
|
||||
|
||||
<div class="akeeba-panel--red">
|
||||
<header class="akeeba-block-header">
|
||||
<h3>
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ERR_ANALYZEFAILED_HEADER') ?>
|
||||
</h3>
|
||||
</header>
|
||||
<p>
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ERR_ANALYZEFAILED_INFO') ?>
|
||||
</p>
|
||||
<h4>
|
||||
<span class="akeeba-label--red--small">
|
||||
<?= $this->errorException->getCode() ?>
|
||||
</span>
|
||||
<?= $this->errorException->getMessage() ?>
|
||||
</h4>
|
||||
<p>
|
||||
<?= $this->errorException->getFile() ?> :: L<?= $this->errorException->getLine() ?>
|
||||
</p>
|
||||
<pre><?= $this->errorException->getTraceAsString() ?></pre>
|
||||
</div>
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* @package akeebabackup
|
||||
* @copyright Copyright (c)2006-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
/** @var \Akeeba\Component\AkeebaBackup\Administrator\View\Alice\HtmlView $this */
|
||||
|
||||
?>
|
||||
<div class="card">
|
||||
<h3 class="card-header"><?= Text::_('COM_AKEEBABACKUP_ALICE_ANALYSIS_REPORT_HEAD') ?></h3>
|
||||
<div class="card-body">
|
||||
<p>
|
||||
<?= Text::sprintf('COM_AKEEBABACKUP_ALICE_ANALYSIS_REPORT_LBL_SUMMARY', $this->doneChecks) ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($this->aliceStatus == 'success'): ?>
|
||||
<p class="alert alert-success">
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ANALYSIS_REPORT_LBL_SUMMARY_SUCCESS') ?>
|
||||
</p>
|
||||
<?php elseif ($this->aliceStatus == 'warnings'): ?>
|
||||
<p class="alert alert-warning">
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ANALYSIS_REPORT_LBL_SUMMARY_WARNINGS') ?>
|
||||
</p>
|
||||
<?php else: ?>
|
||||
<p class="alert alert-danger">
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ANALYSIS_REPORT_LBL_SUMMARY_ERRORS') ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($this->aliceStatus != 'success'): ?>
|
||||
<div class="card">
|
||||
<h3 class="card-header bg-<?= ($this->aliceStatus == 'error') ? 'danger text-white' : 'warning' ?>">
|
||||
<?php if ($this->aliceStatus == 'error'): ?>
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ANALYSIS_REPORT_LBL_ERROR') ?>
|
||||
<?php else: ?>
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ANALYSIS_REPORT_LBL_WARNINGS') ?>
|
||||
<?php endif; ?>
|
||||
</h3>
|
||||
|
||||
<div class="card-body">
|
||||
<?php if ($this->aliceStatus == 'error'): ?>
|
||||
<h4><?= $this->aliceError['message'] ?></h4>
|
||||
<p class="fst-italic">
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ANALYSIS_REPORT_LBL_SOLUTION') ?>
|
||||
</p>
|
||||
<p>
|
||||
<?= $this->aliceError['solution'] ?>
|
||||
</p>
|
||||
<?php else: ?>
|
||||
<table class="table table-striped">
|
||||
<tbody>
|
||||
<?php foreach($this->aliceWarnings as $warning): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<h5><?= $warning['message'] ?></h5>
|
||||
<p class="fst-italic">
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ANALYSIS_REPORT_LBL_SOLUTION') ?>
|
||||
</p>
|
||||
<p>
|
||||
<?= $warning['solution'] ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="my-3 alert alert-info">
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ANALYSIS_REPORT_LBL_NEXTSTEPS') ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* @package akeebabackup
|
||||
* @copyright Copyright (c)2006-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper as HTMLHelperAlias;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/** @var \Akeeba\Component\AkeebaBackup\Administrator\View\Alice\HtmlView $this */
|
||||
|
||||
$js = <<< JS
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
setTimeout(function () {
|
||||
document.forms.adminForm.submit();
|
||||
}, 500);
|
||||
});
|
||||
JS;
|
||||
|
||||
$this->document->getWebAssetManager()
|
||||
->useScript('com_akeebabackup.system')
|
||||
->addInlineScript($js, [], [], [
|
||||
'com_akeebabackup.system'
|
||||
]);
|
||||
|
||||
?>
|
||||
|
||||
<div class="card">
|
||||
<h3 class="card-header">
|
||||
<?= Text::_('COM_AKEEBABACKUP_ALICE_ANALYZE_LABEL_PROGRESS') ?>
|
||||
</h3>
|
||||
<div class="card-body">
|
||||
<h4>
|
||||
<?= $this->currentSection ?>
|
||||
</h4>
|
||||
<p>
|
||||
<?= $this->currentCheck ?>
|
||||
</p>
|
||||
<div class="progress">
|
||||
<div class="progress-bar" role="progressbar" style="width: <?= $this->percentage ?>%;"
|
||||
aria-valuenow="<?= $this->percentage ?>" aria-valuemin="0" aria-valuemax="100"
|
||||
><?= $this->percentage ?>%</div>
|
||||
</div>
|
||||
<p class="text-center my-5">
|
||||
<img src="<?= Uri::root() ?>/media/com_akeebabackup/icons/spinner.gif"
|
||||
alt="<?= Text::_('COM_AKEEBABACKUP_ALICE_ANALYZE_LABEL_PROGRESS') ?>" />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form name="adminForm" id="adminForm"
|
||||
action="<?= Route::_('index.php?option=com_akeebabackup&task=Alice.step') ?>" method="post">
|
||||
<?= HTMLHelperAlias::_('form.token') ?>
|
||||
</form>
|
||||
Reference in New Issue
Block a user