ace33b60fe
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 2s
Universal: Auto Version Bump / Version Bump (push) Successful in 10s
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Generic: Repo Health / Report Issues (push) Has been cancelled
Renames all sub-extensions from mokojoombackup to mokosuitebackup
(package, component, 7 plugins, language files, manifests).
Adds [HOME] placeholder to BackupDirectory and PlaceholderResolver
so users can set backup_dir to [HOME]/backups (outside web root).
Fixes folder browser "access denied" on PHP-FPM shared hosting
where getenv('HOME') returns empty by adding POSIX and JPATH_ROOT
fallback detection.
78 lines
2.6 KiB
PHP
78 lines
2.6 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @package MokoSuiteBackup
|
|
* @subpackage com_mokosuitebackup
|
|
* @author Moko Consulting <hello@mokoconsulting.tech>
|
|
* @copyright Copyright (C) 2026 Moko Consulting. All rights reserved.
|
|
* @license GNU General Public License version 3 or later; see LICENSE
|
|
*/
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
use Joomla\CMS\HTML\HTMLHelper;
|
|
use Joomla\CMS\Language\Text;
|
|
use Joomla\CMS\Router\Route;
|
|
|
|
HTMLHelper::_('behavior.formvalidator');
|
|
HTMLHelper::_('behavior.keepalive');
|
|
?>
|
|
<form action="<?php echo Route::_('index.php?option=com_mokosuitebackup&layout=edit&id=' . (int) $this->item->id); ?>"
|
|
method="post" name="adminForm" id="adminForm" class="form-validate">
|
|
|
|
<div class="main-card">
|
|
<?php echo HTMLHelper::_('uitab.startTabSet', 'profileTab', ['active' => 'general']); ?>
|
|
|
|
<?php echo HTMLHelper::_('uitab.addTab', 'profileTab', 'general', Text::_('COM_MOKOJOOMBACKUP_TAB_GENERAL')); ?>
|
|
<div class="row">
|
|
<div class="col-lg-9">
|
|
<?php echo $this->form->renderFieldset('general'); ?>
|
|
</div>
|
|
<div class="col-lg-3">
|
|
<?php echo $this->form->renderFieldset('sidebar'); ?>
|
|
</div>
|
|
</div>
|
|
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
|
|
|
<?php echo HTMLHelper::_('uitab.addTab', 'profileTab', 'archive', Text::_('COM_MOKOJOOMBACKUP_TAB_ARCHIVE')); ?>
|
|
<div class="row">
|
|
<div class="col-lg-9">
|
|
<?php echo $this->form->renderFieldset('archive'); ?>
|
|
</div>
|
|
</div>
|
|
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
|
|
|
<?php echo HTMLHelper::_('uitab.addTab', 'profileTab', 'filters', Text::_('COM_MOKOJOOMBACKUP_TAB_FILTERS')); ?>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<?php echo $this->form->renderFieldset('filters'); ?>
|
|
</div>
|
|
</div>
|
|
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
|
|
|
<?php echo HTMLHelper::_('uitab.addTab', 'profileTab', 'notifications', Text::_('COM_MOKOJOOMBACKUP_TAB_NOTIFICATIONS')); ?>
|
|
<div class="row">
|
|
<div class="col-lg-9">
|
|
<?php echo $this->form->renderFieldset('notifications'); ?>
|
|
</div>
|
|
</div>
|
|
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
|
|
|
<?php echo HTMLHelper::_('uitab.addTab', 'profileTab', 'remote', Text::_('COM_MOKOJOOMBACKUP_TAB_REMOTE')); ?>
|
|
<div class="row">
|
|
<div class="col-lg-9">
|
|
<?php echo $this->form->renderFieldset('remote'); ?>
|
|
<?php echo $this->form->renderFieldset('ftp'); ?>
|
|
<?php echo $this->form->renderFieldset('google_drive'); ?>
|
|
<?php echo $this->form->renderFieldset('s3'); ?>
|
|
</div>
|
|
</div>
|
|
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
|
|
|
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>
|
|
</div>
|
|
|
|
<input type="hidden" name="task" value="">
|
|
<?php echo HTMLHelper::_('form.token'); ?>
|
|
</form>
|