-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
default.php
89 lines (83 loc) · 3.65 KB
/
default.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
/**
* @package Joomla.Installation
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
HTMLHelper::_('behavior.formvalidator');
/** @var \Joomla\CMS\Installation\View\Preinstall\HtmlView $this */
?>
<div id="installer-view" class="container" data-page-name="preinstall">
<div class="row">
<div class="col-md-12 mb-4">
<div class="j-install-step active">
<div class="j-install-step-header">
<?php echo LayoutHelper::render('joomla.icon.iconclass', ['icon' => 'check']); ?> <?php echo Text::_('INSTL_PRECHECK_TITLE'); ?>
</div>
<div class="j-install-step-form">
<?php foreach ($this->options as $option) : ?>
<?php if ($option->state === 'JNO' || $option->state === false) : ?>
<div class="alert preinstall-alert">
<div class="alert-icon">
<?php echo LayoutHelper::render('joomla.icon.iconclass', ['icon' => 'warning-2', 'suffix' => 'alert-icon']); ?>
</div>
<div class="alert-text">
<strong><?php echo $option->label; ?></strong>
<p class="form-text text-muted small"><?php echo $option->notice; ?></p>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
<?php if ($option->state === false && preg_match('$configuration.php$', $option->label)) : ?>
<div id="ftpOptions" class="ftp-options mb-4 hidden">
<form action="index.php" method="post" id="ftpForm" class="form-validate">
<!-- <h3><?php echo Text::_('INSTL_FTP'); ?></h3>
<hr> -->
<div class="form-group row">
<div class="col-md-8 offset-md-2">
<?php echo $this->form->getLabel('ftp_user'); ?>
<?php echo $this->form->getInput('ftp_user'); ?>
<p class="form-text text-muted small"><?php echo Text::_('INSTL_FTP_USER_DESC'); ?></p>
</div>
</div>
<div class="form-group row">
<div class="col-md-8 offset-md-2">
<?php echo $this->form->getLabel('ftp_pass'); ?>
<?php echo $this->form->getInput('ftp_pass'); ?>
<p class="form-text text-muted small"><?php echo Text::_('INSTL_FTP_PASSWORD_DESC'); ?></p>
</div>
</div>
<div class="form-group row mb-4">
<div class="col-md-8 offset-md-2">
<?php echo $this->form->getLabel('ftp_host'); ?>
<div class="input-append d-flex">
<?php echo $this->form->getInput('ftp_host'); ?><button id="findbutton" class="btn btn-secondary ml-2" onclick="Joomla.installation.detectFtpRoot(this);"><?php echo LayoutHelper::render('joomla.icon.iconclass', ['icon' => 'folder-open']); ?> <?php echo Text::_('INSTL_AUTOFIND_FTP_PATH'); ?></button>
</div>
</div>
</div>
<div class="form-group row">
<div class="col-md-8 offset-md-2">
<?php echo $this->form->getLabel('ftp_port'); ?>
<?php echo $this->form->getInput('ftp_port'); ?>
</div>
</div>
<div class="form-group row">
<div class="col-md-8 offset-md-2 justify-content-end d-flex">
<button id="verifybutton" class="btn btn-success"><?php echo LayoutHelper::render('joomla.icon.iconclass', ['icon' => 'check', 'suffix' => 'icon-white']); ?> <?php echo Text::_('INSTL_VERIFY_FTP_SETTINGS'); ?></button>
</div>
</div>
<input type="hidden" name="format" value="json">
<?php echo HTMLHelper::_('form.token'); ?>
</form>
</div>
<?php endif; ?>
</div>
</div>
</div>