first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
// Protect from unauthorized access
use Awf\Text\Text;
defined('_AKEEBA') or die();
/** @var $this Solo\View\Transfer\Html */
?>
<?php if ($this->force): ?>
<div class="akeeba-block--warning">
<h3><?php echo Text::_('COM_AKEEBA_TRANSFER_FORCE_HEADER') ?></h3>
<p><?php echo Text::_('COM_AKEEBA_TRANSFER_FORCE_BODY') ?></p>
</div>
<?php endif; ?>
<?php
echo $this->loadAnyTemplate('Transfer/default_dialogs');
echo $this->loadAnyTemplate('Transfer/default_prerequisites');
if (empty($this->latestBackup))
{
return;
}
echo $this->loadAnyTemplate('Transfer/default_remoteconnection');
echo $this->loadAnyTemplate('Transfer/default_manualtransfer');
echo $this->loadAnyTemplate('Transfer/default_upload');

View File

@@ -0,0 +1,19 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
// Protect from unauthorized access
defined('_AKEEBA') or die();
/** @var $this Solo\View\Transfer\Html */
echo $this->loadAnyTemplate('Common/ftp_browser');
echo $this->loadAnyTemplate('Common/sftp_browser');
echo $this->loadAnyTemplate('Common/ftp_test');
?>

View File

@@ -0,0 +1,68 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
// Protect from unauthorized access
use Awf\Text\Text;
use Solo\Helper\Utils;
defined('_AKEEBA') or die();
/** @var $this Solo\View\Transfer\Html */
$dotPos = strrpos($this->latestBackup['archivename'], '.');
$extension = substr($this->latestBackup['archivename'], $dotPos + 1);
$bareName = basename($this->latestBackup['archivename'], '.' . $extension);
// Different YouTube video URL depending on whether we're inside Akeeba Backup for WordPress or Akeeba Solo
$videoCode = $this->container->segment->get('insideCMS', false) ? 'KFI1Ys6Mv2Y' : 'xaYgxsK0-S0';
?>
<div id="akeeba-transfer-manualtransfer" class="akeeba-panel--primary" style="display: none;">
<header class="akeeba-block-header">
<h3>
<?php echo Text::_('COM_AKEEBA_TRANSFER_HEAD_MANUALTRANSFER'); ?>
</h3>
</header>
<div class="akeeba-block--info">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_MANUALTRANSFER_INFO'); ?>
</div>
<p style="text-align: center">
<iframe width="640" height="480" src="https://www.youtube.com/embed/<?php echo $videoCode ?>" frameborder="0" allowfullscreen></iframe>
</p>
<h4><?php echo Text::_('COM_AKEEBA_BUADMIN_LBL_BACKUPINFO') ?></h4>
<h5><?php echo Text::_('COM_AKEEBA_BUADMIN_LBL_ARCHIVENAME') ?></h5>
<p>
<?php if ($this->latestBackup['multipart'] < 2): ?>
<?php echo htmlentities($this->latestBackup['archivename']) ?>
<?php else: ?>
<?php echo Text::sprintf('COM_AKEEBA_TRANSFER_LBL_MANUALTRANSFER_MULTIPART', $this->latestBackup['multipart']); ?>
<?php endif; ?>
</p>
<?php if ($this->latestBackup['multipart'] >= 2): ?>
<ul>
<?php for ($i = 1; $i < $this->latestBackup['multipart']; $i++): ?>
<li><?php echo htmlentities($bareName . '.' . substr($extension, 0, 1) . sprintf('%02u', $i)); ?></li>
<?php endfor; ?>
<li>
<?php echo htmlentities($this->latestBackup['archivename']); ?>
</li>
</ul>
<?php endif; ?>
<h5>
<?php echo Text::_('COM_AKEEBA_BUADMIN_LBL_ARCHIVEPATH') ?>
</h5>
<p>
<?php echo htmlentities(Utils::getRelativePath(APATH_BASE, dirname($this->latestBackup['absolute_path']))) ?>
</p>
</div>

View File

@@ -0,0 +1,69 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
// Protect from unauthorized access
use Awf\Text\Text;
defined('_AKEEBA') or die();
/** @var $this Solo\View\Transfer\Html */
$classModifier = empty($this->latestBackup) ? 'red' : 'information';
?>
<div class="akeeba-panel--<?php echo $classModifier ?>">
<header class="akeeba-block-header">
<h3>
<?php echo Text::_('COM_AKEEBA_TRANSFER_HEAD_PREREQUISITES'); ?>
</h3>
</header>
<table class="akeeba-table--striped" width="100%">
<tbody>
<tr>
<td>
<strong>
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_COMPLETEBACKUP') ?>
</strong>
<br/>
<small>
<?php if (empty($this->latestBackup)): ?>
<?php echo Text::_('COM_AKEEBA_TRANSFER_ERR_COMPLETEBACKUP'); ?>
<?php else: ?>
<?php echo Text::sprintf('COM_AKEEBA_TRANSFER_LBL_COMPLETEBACKUP_INFO', $this->lastBackupDate); ?>
<?php endif; ?>
</small>
</td>
<td width="20%">
<?php if (empty($this->latestBackup)): ?>
<a href="<?php echo $this->getContainer()->router->route('index.php?view=backup'); ?>" class="btn akeeba-btn--green"
id="akeeba-transfer-btn-backup">
<?php echo Text::_('COM_AKEEBA_BACKUP_LABEL_START'); ?>
</a>
<?php endif; ?>
</td>
</tr>
<?php if (!empty($this->latestBackup)): ?>
<tr>
<td>
<strong>
<?php echo Text::sprintf('COM_AKEEBA_TRANSFER_LBL_SPACE', $this->spaceRequired['string']); ?>
</strong>
<br/>
<small id="akeeba-transfer-err-space" style="display: none">
<?php echo Text::_('COM_AKEEBA_TRANSFER_ERR_SPACE'); ?>
</small>
</td>
<td>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>

View File

@@ -0,0 +1,234 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
// Protect from unauthorized access
use Awf\Html\Select;
use Awf\Text\Text;
use Awf\Uri\Uri;
use Solo\Helper\FEFSelect;
defined('_AKEEBA') or die();
/** @var $this Solo\View\Transfer\Html */
?>
<div class="akeeba-panel--primary">
<header class="akeeba-block-header">
<h3>
<?php echo Text::_('COM_AKEEBA_TRANSFER_HEAD_REMOTECONNECTION'); ?>
</h3>
</header>
<form class="akeeba-form--horizontal">
<div class="akeeba-transfer-main-container">
<div class="akeeba-form-group">
<label for="akeeba-transfer-url">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_NEWURL'); ?>
</label>
<div class="akeeba-input-group">
<input type="text" id="akeeba-transfer-url" placeholder="http://www.example.com"
value="<?php echo htmlentities($this->newSiteUrl) ?>">
<span class="akeeba-input-group-btn">
<button onclick="akeeba.Transfer.onUrlChange(true); return false;" class="akeeba-btn--inverse" id="akeeba-transfer-btn-url">
<?php echo Text::_('COM_AKEEBA_TRANSFER_ERR_NEWURL_BTN') ?>
</button>
</span>
</div>
</div>
<div id="akeeba-transfer-row-url" class="akeeba-form-group--pull-right">
<img src="<?php echo rtrim(Uri::base(), '/') ?>/media/loading.gif" id="akeeba-transfer-loading" style="display: none;" />
<br/>
<div id="akeeba-transfer-lbl-url" class="akeeba-help-text">
<p>
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_NEWURL_TIP'); ?>
</p>
</div>
<div id="akeeba-transfer-err-url-same" class="akeeba-block--failure" style="display: none;">
<?php echo Text::_('COM_AKEEBA_TRANSFER_ERR_NEWURL_SAME'); ?>
<p style="text-align: center">
<iframe width="560" height="315" src="https://www.youtube.com/embed/vo_r0r6cZNQ" frameborder="0" allowfullscreen></iframe>
</p>
</div>
<div id="akeeba-transfer-err-url-invalid" class="akeeba-block--failure" style="display: none;">
<?php echo Text::_('COM_AKEEBA_TRANSFER_ERR_NEWURL_INVALID'); ?>
</div>
<div id="akeeba-transfer-err-url-notexists" class="akeeba-block--failure" style="display: none;">
<p>
<?php echo Text::_('COM_AKEEBA_TRANSFER_ERR_NEWURL_NOTEXISTS'); ?>
</p>
<p>
<button type="button" class="akeeba-btn--red" id="akeeba-transfer-err-url-notexists-btn-ignore">
&#9888;
<?php echo Text::_('COM_AKEEBA_TRANSFER_ERR_NEWURL_BTN_IGNOREERROR') ?>
</button>
</p>
</div>
</div>
</div>
</form>
<form id="akeeba-transfer-ftp-container" class="akeeba-form--horizontal" style="display: none">
<div class="akeeba-form-group">
<label for="akeeba-transfer-ftp-method">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_TRANSFERMETHOD'); ?>
</label>
<?php echo Select::genericList($this->transferOptions, 'akeeba-transfer-ftp-method', array(), 'value', 'text', $this->transferOption, 'akeeba-transfer-ftp-method') ?>
<?php if ($this->hasFirewalledMethods): ?>
<div class="help-block">
<div class="akeeba-block--warning">
<h5>
<?php echo Text::_('COM_AKEEBA_TRANSFER_WARN_FIREWALLED_HEAD'); ?>
</h5>
<p>
<?php echo Text::_('COM_AKEEBA_TRANSFER_WARN_FIREWALLED_BODY'); ?>
</p>
</div>
</div>
<?php endif; ?>
</div>
<div class="akeeba-form-group">
<label for="akeeba-transfer-ftp-host">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_FTP_HOST'); ?>
</label>
<input type="text" value="<?php echo $this->ftpHost ?>" id="akeeba-transfer-ftp-host"
placeholder="ftp.example.com"/>
</div>
<div class="akeeba-form-group">
<label for="akeeba-transfer-ftp-port">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_FTP_PORT'); ?>
</label>
<input type="text" value="<?php echo $this->ftpPort ?>" id="akeeba-transfer-ftp-port"
placeholder="21"/>
</div>
<div class="akeeba-form-group">
<label for="akeeba-transfer-ftp-username">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_FTP_USERNAME'); ?>
</label>
<input type="text" value="<?php echo $this->ftpUsername ?>" id="akeeba-transfer-ftp-username"
placeholder="myUserName"/>
</div>
<div class="akeeba-form-group">
<label for="akeeba-transfer-ftp-password">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_FTP_PASSWORD'); ?>
</label>
<input type="password" value="<?php echo $this->ftpPassword ?>" id="akeeba-transfer-ftp-password"
placeholder="myPassword"/>
</div>
<div class="akeeba-form-group">
<label for="akeeba-transfer-ftp-pubkey">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_FTP_PUBKEY'); ?>
</label>
<input type="text" value="<?php echo $this->ftpPubKey ?>" id="akeeba-transfer-ftp-pubkey"
placeholder="<?php echo APATH_SITE . DIRECTORY_SEPARATOR ?>id_rsa.pub"/>
</div>
<div class="akeeba-form-group">
<label for="akeeba-transfer-ftp-privatekey">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_FTP_PRIVATEKEY'); ?>
</label>
<input type="text" value="<?php echo $this->ftpPrivateKey ?>" id="akeeba-transfer-ftp-privatekey"
placeholder="<?php echo APATH_SITE . DIRECTORY_SEPARATOR ?>id_rsa"/>
</div>
<div class="akeeba-form-group">
<label for="akeeba-transfer-ftp-directory">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_FTP_DIRECTORY'); ?>
</label>
<input type="text" value="<?php echo $this->ftpDirectory ?>" id="akeeba-transfer-ftp-directory"
placeholder="public_html"/>
<!--
<button class="btn" type="button" id="akeeba-transfer-ftp-directory-browse">
<?php echo Text::_('COM_AKEEBA_CONFIG_UI_BROWSE'); ?>
</button>
<button class="btn" type="button" id="akeeba-transfer-ftp-directory-detect">
<?php echo Text::_('COM_AKEEBA_TRANSFER_BTN_FTP_DETECT'); ?>
</button>
-->
</div>
<!-- Chunk method -->
<div class="akeeba-form-group">
<label for="akeeba-transfer-chunkmode">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_TRANSFERMODE'); ?>
</label>
<?php echo Select::genericList($this->chunkOptions, 'akeeba-transfer-chunkmode', array(), 'value', 'text', $this->chunkMode, 'akeeba-transfer-chunkmode') ?>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_TRANSFERMODE_INFO'); ?>
</p>
</div>
<!-- Chunk size -->
<div class="akeeba-form-group">
<label for="akeeba-transfer-chunksize">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_CHUNKSIZE'); ?>
</label>
<?php echo Select::genericList($this->chunkSizeOptions, 'akeeba-transfer-chunksize', array(), 'value', 'text', $this->chunkSize, 'akeeba-transfer-chunksize') ?>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_CHUNKSIZE_INFO'); ?>
</p>
</div>
<div class="akeeba-form-group" id="akeeba-transfer-ftp-passive-container">
<label for="akeeba-transfer-ftp-passive">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_FTP_PASSIVE'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('akeeba-transfer-ftp-passive', array('forToggle' => 1), $this->ftpPassive ? 1 : 0, 'AWF_YES', 'AWF_NO', 'akeeba-transfer-ftp-passive') ?>
</div>
</div>
<div class="akeeba-form-group" id="akeeba-transfer-ftp-passive-fix-container">
<label for="akeeba-transfer-ftp-passive-fix">
<?php echo Text::_('COM_AKEEBA_CONFIG_ENGINE_ARCHIVER_DIRECTFTPCURL_PASVWORKAROUND_TITLE'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('akeeba-transfer-ftp-passive-fix', array('forToggle' => 1), $this->ftpPassive ? 1 : 0, 'AWF_YES', 'AWF_NO', 'akeeba-transfer-ftp-passive-fix') ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_ENGINE_ARCHIVER_DIRECTFTPCURL_PASVWORKAROUND_DESCRIPTION'); ?>
</p>
</div>
<div class="akeeba-block--failure" id="akeeba-transfer-ftp-error" style="display:none;">
<p id="akeeba-transfer-ftp-error-body">MESSAGE</p>
<a href="<?php echo $this->getContainer()->router->route('index.php?view=transfer&force=1')?>"
class="akeeba-btn--orange" style="display:none" id="akeeba-transfer-ftp-error-force">
<?php echo Text::_('COM_AKEEBA_TRANSFER_ERR_OVERRIDE'); ?>
</a>
</div>
<div class="akeeba-form-group--pull-right">
<div class="akeeba-form-group--actions">
<button type="button" class="akeeba-btn--primary" id="akeeba-transfer-btn-apply">
<?php echo Text::_('COM_AKEEBA_TRANSFER_BTN_FTP_PROCEED'); ?>
</button>
<div id="akeeba-transfer-apply-loading" class="akeeba-block--info" style="display: none;">
<h4>
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_VALIDATING'); ?>
</h4>
<p style="text-align: center;">
<img src="<?php echo Uri::base() ?>/media/loading.gif" />
</p>
</div>
</div>
</div>
</form>
</div>

View File

@@ -0,0 +1,62 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
// Protect from unauthorized access
use Awf\Text\Text;
defined('_AKEEBA') or die();
/** @var $this Solo\View\Transfer\Html */
?>
<div id="akeeba-transfer-upload" class="akeeba-panel--primary" style="display: none;">
<header class="akeeba-block-header">
<h3>
<?php echo Text::_('COM_AKEEBA_TRANSFER_HEAD_UPLOAD'); ?>
</h3>
</header>
<div class="akeeba-block--failure" style="display: none" id="akeeba-transfer-upload-error">
<p id="akeeba-transfer-upload-error-body">MESSAGE</p>
<a href="<?php echo $this->getContainer()->router->route('index.php?view=transfer&force=1')?>" class="akeeba-btn--orange" style="display:none" id="akeeba-transfer-upload-error-force">
<?php echo Text::_('COM_AKEEBA_TRANSFER_ERR_OVERRIDE'); ?>
</a>
</div>
<div id="akeeba-transfer-upload-area-upload" style="display: none">
<div id="backup-steps">
<div class="akeeba-label--orange" id="akeeba-transfer-upload-lbl-kickstart">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_UPLOAD_KICKSTART'); ?>
</div>
<div class="akeeba-label--grey" id="akeeba-transfer-upload-lbl-archive">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_UPLOAD_BACKUP'); ?>
</div>
</div>
<div id="backup-status" class="well">
<div id="backup-step">
&#9729; <span id="akeeba-transfer-upload-percent"></span>
</div>
<div id="backup-substep">
&#128190; <span id="akeeba-transfer-upload-size"></span>
</div>
</div>
</div>
<div id="akeeba-transfer-upload-area-kickstart" style="display: none">
<p>
<a class="akeeba-btn--green--large" id="akeeba-transfer-upload-btn-kickstart" href="" target="_blank">
<span class="akion-arrow-right-b"></span>
<?php echo Text::_('COM_AKEEBA_TRANSFER_BTN_OPEN_KICKSTART'); ?>
</a>
</p>
<div class="akeeba-block--info">
<?php echo Text::_('COM_AKEEBA_TRANSFER_LBL_OPEN_KICKSTART_INFO'); ?>
</div>
</div>
</div>