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,235 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
use Awf\Text\Text;
use Solo\Helper\Escape;
use Solo\Helper\FEFSelect;
defined('_AKEEBA') or die();
/** @var \Solo\View\Sysconfig\Html $this */
$config = $this->container->appConfig;
$router = $this->container->router;
$inCMS = $this->container->segment->get('insideCMS', false);
$timezone = $config->get('timezone', 'GMT');
$timezone = ($timezone == 'UTC') ? 'GMT' : $timezone;
/**
* Remember to update wpcli/Command/Sysconfig.php in the WordPress application whenever this file changes.
*/
?>
<div class="akeeba-form-group">
<label for="darkmode">
<?php echo Text::_('SOLO_CONFIG_DISPLAY_DARKMODE_LABEL'); ?>
</label>
<div class="akeeba-toggle">
<?php
echo FEFSelect::radiolist([
FEFSelect::option('0', Text::_('AWF_NO')),
FEFSelect::option('-1', Text::_('SOLO_CONFIG_DISPLAY_DARKMODE_OPT_AUTO')),
FEFSelect::option('1', Text::_('AWF_YES')),
], 'darkmode', ['forToggle' => 1], 'value', 'text', (int) $config->get('darkmode', -1), 'darkmode');
?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_CONFIG_DISPLAY_DARKMODE_DESCRIPTION') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="useencryption">
<?php echo Text::_('COM_AKEEBA_CONFIG_SECURITY_USEENCRYPTION_LABEL'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('useencryption', array('forToggle' => 1), $config->get('useencryption', 1)) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_SECURITY_USEENCRYPTION_DESCRIPTION') ?>
</p>
</div>
<?php // WordPress sets its own timezone. We use that value forcibly in our WP-specific Solo\Application\AppConfig (helpers/Solo/Application/AppConfig.php). Therefore we display it locked in WP. ?>
<div class="akeeba-form-group">
<label for="timezone">
<?php echo Text::_('SOLO_SETUP_LBL_TIMEZONE'); ?>
</label>
<?php echo \Solo\Helper\Setup::timezoneSelect($timezone, 'timezone', true, $inCMS); ?>
<p class="akeeba-help-text">
<?php echo Text::_($inCMS ? 'SOLO_SETUP_LBL_TIMEZONE_WORDPRESS' : 'SOLO_SETUP_LBL_TIMEZONE_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="localtime">
<?php echo Text::_('COM_AKEEBA_CONFIG_BACKEND_LOCALTIME_LABEL'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('localtime', array('forToggle' => 1), $config->get('localtime', 1)) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_BACKEND_LOCALTIME_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="timezonetext">
<?php echo Text::_('COM_AKEEBA_CONFIG_BACKEND_TIMEZONETEXT_LABEL'); ?>
</label>
<?php echo \Solo\Helper\Setup::timezoneFormatSelect($config->get('timezonetext', 'T')); ?>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_BACKEND_TIMEZONETEXT_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="forced_backup_timezone">
<?php echo Text::_('COM_AKEEBA_CONFIG_FORCEDBACKUPTZ_LABEL'); ?>
</label>
<?php echo \Solo\Helper\Setup::timezoneSelect($config->get('forced_backup_timezone', 'AKEEBA/DEFAULT'), 'forced_backup_timezone', true); ?>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_FORCEDBACKUPTZ_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="showDeleteOnRestore">
<?php echo Text::_('COM_AKEEBA_CONFIG_BACKEND_SHOWDELETEONRESTORE_LABEL'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('showDeleteOnRestore', array('forToggle' => 1), $config->get('showDeleteOnRestore', 0)) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_BACKEND_SHOWDELETEONRESTORE_DESC') ?>
</p>
</div>
<?php if (!$inCMS): ?>
<div class="akeeba-form-group">
<label for="live_site">
<?php echo Text::_('SOLO_SETUP_LBL_LIVESITE'); ?>
</label>
<input type="text" name="live_site" id="live_site"
value="<?php echo $config->get('live_site') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_LIVESITE_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="session_timeout">
<?php echo Text::_('SOLO_SETUP_LBL_SESSIONTIMEOUT'); ?>
</label>
<input type="text" name="session_timeout" id="session_timeout"
value="<?php echo $config->get('session_timeout') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_SESSIONTIMEOUT_HELP') ?>
</p>
</div>
<?php endif; ?>
<div class="akeeba-form-group">
<label for="dateformat">
<?php echo Text::_('COM_AKEEBA_CONFIG_DATEFORMAT_LABEL'); ?>
</label>
<input type="text" name="dateformat" id="dateformat"
value="<?php echo $config->get('dateformat') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_DATEFORMAT_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="stats_enabled">
<?php echo Text::_('COM_AKEEBA_CONFIG_USAGESTATS_SOLO_LABEL'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('stats_enabled', array('forToggle' => 1), $config->get('stats_enabled', 1)) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_USAGESTATS_SOLO_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="fs_driver">
<?php echo Text::_('SOLO_SETUP_LBL_FS_DRIVER'); ?>
</label>
<?php echo \Solo\Helper\Setup::fsDriverSelect($config->get('fs.driver')); ?>
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_FS_DRIVER_HELP') ?>
</p>
</div>
<div id="ftp_options">
<div class="akeeba-form-group">
<label for="fs_host">
<?php echo Text::_('SOLO_SETUP_LBL_FS_FTP_HOST'); ?>
</label>
<input type="text" name="fs_host" id="fs_host"
value="<?php echo $config->get('fs.host') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_FS_FTP_HOST_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="fs_port">
<?php echo Text::_('SOLO_SETUP_LBL_FS_FTP_PORT'); ?>
</label>
<input type="text" name="fs_port" id="fs_port"
value="<?php echo $config->get('fs.port') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_FS_FTP_PORT_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="fs_username">
<?php echo Text::_('SOLO_SETUP_LBL_FS_FTP_USERNAME'); ?>
</label>
<input type="text" name="fs_username" id="fs_username"
value="<?php echo $config->get('fs.username') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_FS_FTP_USERNAME_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="fs_password">
<?php echo Text::_('SOLO_SETUP_LBL_FS_FTP_PASSWORD'); ?>
</label>
<input type="password" name="fs_password" id="fs_password"
value="<?php echo $config->get('fs.password') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_FS_FTP_PASSWORD_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="fs_directory">
<?php echo Text::_('SOLO_SETUP_LBL_FS_FTP_DIRECTORY'); ?>
</label>
<div class="akeeba-input-group">
<input type="text" name="fs_directory" id="fs_directory"
value="<?php echo $config->get('fs.directory') ?>">
<span class="akeeba-input-group-btn">
<button title="<?php echo Text::_('COM_AKEEBA_CONFIG_UI_BROWSE') ?>"
class="akeeba-btn--dark" type="button" id="btnBrowse"
onclick="akeeba.Setup.initFtpSftpBrowser(); return false;">
<span class="akion-android-folder-open"></span>
</button>
</span>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_FS_FTP_DIRECTORY_HELP') ?>
</p>
</div>
</div>

View File

@@ -0,0 +1,70 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
use Awf\Text\Text;
use Solo\Helper\Escape;
use Solo\Helper\FEFSelect;
defined('_AKEEBA') or die();
/** @var \Solo\View\Sysconfig\Html $this */
$config = $this->container->appConfig;
$router = $this->container->router;
$inCMS = $this->container->segment->get('insideCMS', false);
/**
* Remember to update wpcli/Command/Sysconfig.php in the WordPress application whenever this file changes.
*/
?>
<div class="akeeba-form-group">
<label for="failure_timeout">
<?php echo Text::_('COM_AKEEBA_CONFIG_FAILURE_TIMEOUT_LABEL'); ?>
</label>
<input type="text" name="options[failure_timeout]" id="failure_timeout"
placeholder="<?php echo Text::_('COM_AKEEBA_CONFIG_FAILURE_TIMEOUT_LABEL'); ?>"
value="<?php echo $config->get('options.failure_timeout', 180) ?>">
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_FAILURE_TIMEOUT_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="failure_email_address">
<?php echo Text::_('COM_AKEEBA_CONFIG_FAILURE_EMAILADDRESS_LABEL'); ?>
</label>
<input type="text" name="options[failure_email_address]" id="failure_email_address"
placeholder="<?php echo Text::_('COM_AKEEBA_CONFIG_FAILURE_EMAILADDRESS_LABEL'); ?>"
value="<?php echo $config->get('options.failure_email_address') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_FAILURE_EMAILADDRESS_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="failure_email_subject">
<?php echo Text::_('COM_AKEEBA_CONFIG_FAILURE_EMAILSUBJECT_LABEL'); ?>
</label>
<input type="text" name="options[failure_email_subject]" id="failure_email_subject"
placeholder="<?php echo Text::_('COM_AKEEBA_CONFIG_FAILURE_EMAILSUBJECT_LABEL'); ?>"
value="<?php echo $config->get('options.failure_email_subject') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_FAILURE_EMAILSUBJECT_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="failure_email_body">
<?php echo Text::_('COM_AKEEBA_CONFIG_FAILURE_EMAILBODY_LABEL'); ?>
</label>
<textarea type="text" name="options[failure_email_body]" id="failure_email_body"
placeholder="<?php echo Text::_('COM_AKEEBA_CONFIG_FAILURE_EMAILBODY_LABEL'); ?>"
rows="15"><?php echo $config->get('options.failure_email_body') ?></textarea>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_FAILURE_EMAILBODY_DESC') ?>
</p>
</div>

View File

@@ -0,0 +1,43 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
use Awf\Text\Text;
use Awf\Html;
use Solo\Helper\FEFSelect;
defined('_AKEEBA') or die();
/** @var \Solo\View\Sysconfig\Html $this */
$config = $this->container->appConfig;
$router = $this->container->router;
?>
<div class="akeeba-form-group">
<label for="backup-core-update">
<?php echo Text::_('SOLO_SETUP_LBL_BACKUPONUPDATE_CORE'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('options[backuponupdate_core_manual]', array('forToggle' => 1), $config->get('options.backuponupdate_core_manual', 1)) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_BACKUPONUPDATE_CORE_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="backup-core-update">
<?php echo Text::_('SOLO_SETUP_LBL_BACKUPONUPDATE_CORE_PROFILE'); ?>
</label>
<div class="akeeba-toggle">
<?php echo Html\Select::genericList($this->profileList, 'options[backuponupdate_core_manual_profile]', array(), 'value', 'text',
$config->get('options.backuponupdate_core_manual_profile', 1));
?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_BACKUPONUPDATE_CORE_PROFILE_DESC') ?>
</p>
</div>

View File

@@ -0,0 +1,83 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
use Awf\Text\Text;
use Solo\Helper\Escape;
use Solo\Helper\FEFSelect;
defined('_AKEEBA') or die();
/** @var \Solo\View\Sysconfig\Html $this */
$config = $this->container->appConfig;
$router = $this->container->router;
$inCMS = $this->container->segment->get('insideCMS', false);
?>
<div class="akeeba-block--warning">
<?php echo Text::_('SOLO_SYSCONFIG_WARNDB'); ?>
</div>
<div class="akeeba-form-group">
<label for="driver">
<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_DRIVER'); ?>
</label>
<?php echo \Solo\Helper\Setup::databaseTypesSelect($config->get('dbdriver'));?>
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_DRIVER_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="host">
<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_HOST'); ?>
</label>
<input type="text" id="host" name="host" placeholder="<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_HOST'); ?>" value="<?php echo $config->get('dbhost')?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_HOST_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="user">
<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_USER'); ?>
</label>
<input type="text" id="user" name="user" placeholder="<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_USER'); ?>" value="<?php echo $config->get('dbuser')?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_USER_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="pass">
<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_PASS'); ?>
</label>
<input type="password" id="pass" name="pass" placeholder="<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_PASS'); ?>" value="<?php echo $config->get('dbpass')?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_PASS_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="name">
<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_NAME'); ?>
</label>
<input type="text" id="name" name="name" placeholder="<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_NAME'); ?>" value="<?php echo $config->get('dbname')?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_NAME_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="prefix">
<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_PREFIX'); ?>
</label>
<input type="text" id="prefix" name="prefix" placeholder="<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_PREFIX'); ?>" value="<?php echo $config->get('prefix')?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SETUP_LBL_DATABASE_PREFIX_HELP') ?>
</p>
</div>

View File

@@ -0,0 +1,128 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
use Awf\Text\Text;
use Solo\Helper\Escape;
defined('_AKEEBA') or die();
/** @var \Solo\View\Sysconfig\Html $this */
$config = $this->container->appConfig;
$router = $this->container->router;
$inCMS = $this->container->segment->get('insideCMS', false);
echo $this->loadAnyTemplate('Common/ftp_browser');
echo $this->loadAnyTemplate('Common/sftp_browser');
echo $this->loadAnyTemplate('Common/ftp_test');
?>
<?php echo $this->loadAnyTemplate('Main/paypal'); ?>
<form action="<?php echo $router->route('index.php?view=sysconfig') ?>" method="POST" id="adminForm"
class="akeeba-form--horizontal" role="form">
<div class="akeeba-tabs">
<label for="sysconfigAppSetup" class="active">
<span class="akion-ios-cog"></span>
<?php echo Text::_('SOLO_SETUP_LBL_APPSETUP') ?>
</label>
<section id="sysconfigAppSetup">
<?php echo $this->loadAnyTemplate('Sysconfig/appsetup'); ?>
</section>
<?php if ($inCMS && AKEEBABACKUP_PRO):?>
<label for="sysconfigBackupOnUpdate">
<span class="akion-refresh"></span>
<?php echo Text::_('SOLO_SETUP_LBL_BACKUPONUPDATE') ?>
</label>
<section id="sysconfigBackupOnUpdate">
<?php echo $this->loadAnyTemplate('Sysconfig/backuponupdate'); ?>
</section>
<?php endif; ?>
<label for="sysconfigBackupChecks">
<span class="akion-android-list"></span>
<?php echo Text::_('SOLO_SYSCONFIG_BACKUP_CHECKS') ?>
</label>
<section id="sysconfigBackupChecks">
<?php echo $this->loadAnyTemplate('Sysconfig/backupchecks'); ?>
</section>
<label for="sysconfigPublicAPI">
<span class="akion-android-globe"></span>
<?php echo Text::_('SOLO_SYSCONFIG_FRONTEND') ?>
</label>
<section id="sysconfigPublicAPI">
<?php echo $this->loadAnyTemplate('Sysconfig/publicapi'); ?>
</section>
<label for="sysconfigPushNotifications">
<span class="akion-chatbubble"></span>
<?php echo Text::_('SOLO_SYSCONFIG_PUSH') ?>
</label>
<section id="sysconfigPushNotifications">
<?php echo $this->loadAnyTemplate('Sysconfig/push'); ?>
</section>
<label for="sysconfigUpdate">
<span class="akion-refresh"></span>
<?php echo Text::_('SOLO_SYSCONFIG_UPDATE') ?>
</label>
<section id="sysconfigUpdate">
<?php echo $this->loadAnyTemplate('Sysconfig/update'); ?>
</section>
<label for="sysconfigEmail">
<span class="akion-email"></span>
<?php echo Text::_('SOLO_SYSCONFIG_EMAIL') ?>
</label>
<section id="sysconfigEmail">
<?php echo $this->loadAnyTemplate('Sysconfig/email'); ?>
</section>
<?php if (!$inCMS): ?>
<label for="sysconfigDatabase">
<span class="akion-ios-box"></span>
<?php echo Text::_('SOLO_SETUP_SUBTITLE_DATABASE') ?>
</label>
<section id="sysconfigDatabase">
<?php echo $this->loadAnyTemplate('Sysconfig/database'); ?>
</section>
<?php endif; ?>
</div>
<div class="akeeba-hidden-fields-container">
<input type="hidden" name="task" value=""/>
<input type="hidden" name="token" value="<?php echo $this->container->session->getCsrfToken()->getValue()?>">
</div>
</form>
<script type="text/javascript">
// Callback routine to close the browser dialog
var akeeba_browser_callback = null;
akeeba.loadScripts.push(function ()
{
// Initialise the translations
akeeba.Setup.translations['UI-BROWSE'] = '<?php echo Escape::escapeJS(Text::_('COM_AKEEBA_CONFIG_UI_BROWSE')) ?>';
akeeba.Setup.translations['UI-REFRESH'] = '<?php echo Escape::escapeJS(Text::_('COM_AKEEBA_CONFIG_UI_REFRESH')) ?>';
akeeba.Setup.translations['UI-FTPBROWSER-TITLE'] = '<?php echo Escape::escapeJS(Text::_('COM_AKEEBA_CONFIG_UI_FTPBROWSER_TITLE')) ?>';
akeeba.Setup.translations['UI-ROOT'] = '<?php echo Escape::escapeJS(Text::_('SOLO_COMMON_LBL_ROOT')) ?>';
akeeba.Setup.translations['UI-TESTFTP-OK'] = '<?php echo Escape::escapeJS(Text::_('COM_AKEEBA_CONFIG_DIRECTFTP_TEST_OK')) ?>';
akeeba.Setup.translations['UI-TESTFTP-FAIL'] = '<?php echo Escape::escapeJS(Text::_('COM_AKEEBA_CONFIG_DIRECTFTP_TEST_FAIL')) ?>';
akeeba.Setup.translations['UI-TESTSFTP-OK'] = '<?php echo Escape::escapeJS(Text::_('COM_AKEEBA_CONFIG_DIRECTSFTP_TEST_OK')) ?>';
akeeba.Setup.translations['UI-TESTSFTP-FAIL'] = '<?php echo Escape::escapeJS(Text::_('COM_AKEEBA_CONFIG_DIRECTSFTP_TEST_FAIL')) ?>';
// Push some custom URLs
akeeba.Setup.URLs['ftpBrowser'] = '<?php echo Escape::escapeJS($router->route('index.php?view=ftpbrowser')) ?>';
akeeba.Setup.URLs['sftpBrowser'] = '<?php echo Escape::escapeJS($router->route('index.php?view=sftpbrowser')) ?>';
akeeba.Setup.URLs['testFtp'] = '<?php echo Escape::escapeJS($router->route('index.php?view=configuration&task=testftp')) ?>';
akeeba.Setup.URLs['testSftp'] = '<?php echo Escape::escapeJS($router->route('index.php?view=configuration&task=testsftp')) ?>';
});
</script>

View File

@@ -0,0 +1,138 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
use Awf\Text\Text;
use Solo\Helper\Escape;
use Solo\Helper\FEFSelect;
defined('_AKEEBA') or die();
/** @var \Solo\View\Sysconfig\Html $this */
$config = $this->container->appConfig;
$router = $this->container->router;
$inCMS = $this->container->segment->get('insideCMS', false);
/**
* Remember to update wpcli/Command/Sysconfig.php in the WordPress application whenever this file changes.
*/
?>
<div class="akeeba-form-group">
<label for="mail_online">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_ONLINE'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('mail_online', array('forToggle' => 1), $config->get('mail.online', 1)) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_ONLINE_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="options_mail_mailer">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_MAILER'); ?>
</label>
<?php echo \Solo\Helper\Setup::mailerSelect($config->get('mail.mailer'), 'mail_mailer'); ?>
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_MAILER_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="mail_mailfrom">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_MAILFROM'); ?>
</label>
<input type="email" name="mail_mailfrom" id="mail_mailfrom" value="<?php echo $config->get('mail.mailfrom') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_MAILFROM_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="mail_fromname">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_FROMNAME'); ?>
</label>
<input type="text" name="mail_fromname" id="mail_fromname" value="<?php echo $config->get('mail.fromname') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_FROMNAME_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="mail_smtpauth">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_SMTPAUTH'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('mail_smtpauth', array('forToggle' => 1), $config->get('mail.smtpauth', 1)) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_SMTPAUTH_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="mail_smtpsecure">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_SMTPSECURE'); ?>
</label>
<?php echo \Solo\Helper\Setup::smtpSecureSelect($config->get('mail.smtpsecure'), 'mail_smtpsecure'); ?>
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_SMTPSECURE_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="mail_smtpport">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_SMTPPORT'); ?>
</label>
<input type="number" name="mail_smtpport" id="mail_smtpport"
value="<?php echo $config->get('mail.smtpport', 25) ?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_SMTPPORT_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="mail_smtpuser">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_SMTPUSER'); ?>
</label>
<input type="text" name="mail_smtpuser" id="mail_smtpuser" value="<?php echo $config->get('mail.smtpuser', '') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_SMTPUSER_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="mail_smtppass">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_SMTPPASS'); ?>
</label>
<input type="password" name="mail_smtppass" id="mail_smtppass"
value="<?php echo $config->get('mail.smtppass', '') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_SMTPPASS_HELP') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="mail_smtphost">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_SMTPHOST'); ?>
</label>
<input type="text" name="mail_smtphost" id="mail_smtphost"
value="<?php echo $config->get('mail.smtphost', 'localhost') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_SYSCONFIG_LBL_EMAIL_SMTPHOST_HELP') ?>
</p>
</div>
<div class="akeeba-form-group--pull-right">
<div class="akeeba-form-group--actions">
<button class="akeeba-btn--grey" onclick="akeeba.System.submitForm('adminForm', 'testemail'); return false;">
<span class="akion-email"></span>
<?php echo Text::_('SOLO_SYSCONFIG_LBL_SEND_TEST_EMAIL') ?>
</button>
</div>
</div>

View File

@@ -0,0 +1,113 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
use Awf\Text\Text;
use Solo\Helper\FEFSelect;
defined('_AKEEBA') or die();
/** @var \Solo\View\Sysconfig\Html $this */
$config = $this->container->appConfig;
$router = $this->container->router;
$inCMS = $this->container->segment->get('insideCMS', false);
/**
* Remember to update wpcli/Command/Sysconfig.php in the WordPress application whenever this file changes.
*/
?>
<div class="akeeba-form-group">
<label for="frontend_enable">
<?php echo Text::_('COM_AKEEBA_CONFIG_FEBENABLE_LABEL'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('options[frontend_enable]',
array('id' => 'frontend_enable', 'forToggle' => 1),
$config->get('options.frontend_enable', 0)) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_FEBENABLE_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="frontend_secret_word">
<?php echo Text::_('COM_AKEEBA_CONFIG_SECRETWORD_LABEL'); ?>
</label>
<input type="text" name="options[frontend_secret_word]" id="frontend_secret_word"
placeholder="<?php echo Text::_('COM_AKEEBA_CONFIG_SECRETWORD_LABEL'); ?>"
value="<?php echo \Akeeba\Engine\Platform::getInstance()->get_platform_configuration_option('frontend_secret_word', '') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_SECRETWORD_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="frontend_email_on_finish">
<?php echo Text::_('COM_AKEEBA_CONFIG_FRONTENDEMAIL_LABEL'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('options[frontend_email_on_finish]',
array('id' => 'frontend_email_on_finish', 'forToggle' => 1),
$config->get('options.frontend_email_on_finish', 0)) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_FRONTENDEMAIL_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="frontend_email_when">
<?php echo Text::_('COM_AKEEBA_CONFIG_FRONTEND_EMAIL_WHEN_LABEL'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::genericlist([
'always' => 'COM_AKEEBA_CONFIG_FRONTEND_EMAIL_WHEN_ALWAYS',
'failedupload' => 'COM_AKEEBA_CONFIG_FRONTEND_EMAIL_WHEN_FAILEDUPLOAD',
], 'options[frontend_email_when]',
[], 'value', 'text',
$config->get('options.frontend_email_when', 'always'), 'frontend_email_when', true) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_FRONTEND_EMAIL_WHEN_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="frontend_email_address">
<?php echo Text::_('COM_AKEEBA_CONFIG_ARBITRARYFEEMAIL_LABEL'); ?>
</label>
<input type="email" name="options[frontend_email_address]" id="frontend_email_address"
placeholder="<?php echo Text::_('COM_AKEEBA_CONFIG_ARBITRARYFEEMAIL_LABEL'); ?>"
value="<?php echo $config->get('options.frontend_email_address') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_ARBITRARYFEEMAIL_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="frontend_email_subject">
<?php echo Text::_('COM_AKEEBA_CONFIG_FEEMAILSUBJECT_LABEL'); ?>
</label>
<input type="text" name="options[frontend_email_subject]" id="frontend_email_subject"
placeholder="<?php echo Text::_('COM_AKEEBA_CONFIG_FEEMAILSUBJECT_DESC'); ?>"
value="<?php echo $config->get('options.frontend_email_subject') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_FEEMAILSUBJECT_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="frontend_email_body">
<?php echo Text::_('COM_AKEEBA_CONFIG_FEEMAILBODY_LABEL'); ?>
</label>
<textarea rows="10" name="options[frontend_email_body]"
id="frontend_email_body"><?php echo $config->get('options.frontend_email_body') ?></textarea>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_FEEMAILBODY_DESC') ?>
</p>
</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
*/
use Awf\Text\Text;
use Solo\Helper\Escape;
use Solo\Helper\FEFSelect;
defined('_AKEEBA') or die();
/** @var \Solo\View\Sysconfig\Html $this */
$config = $this->container->appConfig;
$router = $this->container->router;
$inCMS = $this->container->segment->get('insideCMS', false);
/**
* Remember to update wpcli/Command/Sysconfig.php in the WordPress application whenever this file changes.
*/
?>
<div class="akeeba-form-group">
<label for="desktop_notifications">
<?php echo Text::_('COM_AKEEBA_CONFIG_DESKTOP_NOTIFICATIONS_LABEL'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('options[desktop_notifications]',
array('id' => 'desktop_notifications', 'forToggle' => 1),
$config->get('options.desktop_notifications', 0)) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_DESKTOP_NOTIFICATIONS_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="push_preference">
<?php echo Text::_('COM_AKEEBA_CONFIG_PUSH_PREFERENCE_LABEL'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('options[push_preference]',
array('id' => 'push_preference', 'forToggle' => 1),
$config->get('options.push_preference', 0)) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_PUSH_PREFERENCE_DESC') ?>
</p>
</div>
<div class="akeeba-form-group">
<label for="push_apikey">
<?php echo Text::_('COM_AKEEBA_CONFIG_PUSH_APIKEY_LABEL'); ?>
</label>
<input type="text" name="options[push_apikey]" id="push_apikey"
placeholder="<?php echo Text::_('COM_AKEEBA_CONFIG_PUSH_APIKEY_LABEL'); ?>"
value="<?php echo $config->get('options.push_apikey') ?>">
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_PUSH_APIKEY_DESC') ?>
</p>
</div>

View File

@@ -0,0 +1,59 @@
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU GPL version 3 or later
*/
use Awf\Text\Text;
use Solo\Helper\Escape;
use Solo\Helper\FEFSelect;
defined('_AKEEBA') or die();
/** @var \Solo\View\Sysconfig\Html $this */
$config = $this->container->appConfig;
$router = $this->container->router;
$inCMS = $this->container->segment->get('insideCMS', false);
?>
<div id="sysconfigUpdate" class="tab-pane">
<?php if (defined('AKEEBABACKUP_PRO') && AKEEBABACKUP_PRO): ?>
<div class="akeeba-form-group">
<label for="update_dlid">
<?php echo Text::_('COM_AKEEBA_CONFIG_DOWNLOADID_LABEL'); ?>
</label>
<input type="text" name="options[update_dlid]" id="update_dlid" placeholder="<?php echo Text::_('COM_AKEEBA_CONFIG_DOWNLOADID_LABEL'); ?>" value="<?php echo $config->get('options.update_dlid')?>">
<p class="akeeba-help-text">
<?php echo Text::_('COM_AKEEBA_CONFIG_DOWNLOADID_DESC') ?>
</p>
</div>
<?php endif; ?>
<div class="akeeba-form-group">
<label for="minstability">
<?php echo Text::_('SOLO_CONFIG_MINSTABILITY_LABEL'); ?>
</label>
<?php echo \Solo\Helper\Setup::minstabilitySelect($config->get('options.minstability', 'stable')); ?>
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_CONFIG_MINSTABILITY_DESC') ?>
</p>
</div>
<?php if ($inCMS): ?>
<div class="akeeba-form-group">
<label for="options_integratedupdate">
<?php echo Text::_('SOLO_CONFIG_UPDATE_INTEGRATED_WP'); ?>
</label>
<div class="akeeba-toggle">
<?php echo FEFSelect::booleanList('options[integratedupdate]',
array('id' => 'options_integratedupdate', 'forToggle' => 1),
$config->get('options.integratedupdate', 1)) ?>
</div>
<p class="akeeba-help-text">
<?php echo Text::_('SOLO_CONFIG_UPDATE_INTEGRATED_WP_DESC') ?>
</p>
</div>
<?php endif; ?>
</div>