Added more security to the composer vendor folder. Added the SFTP get helper classes, and adapted the compiler to use SFTP
This commit is contained in:
@ -105,8 +105,20 @@
|
||||
<!-- Option Set.-->
|
||||
<option value="">COM_COMPONENTBUILDER_SERVER_SELECT_AN_OPTION</option>
|
||||
<option value="1">COM_COMPONENTBUILDER_SERVER_FTP</option>
|
||||
<option value="2">COM_COMPONENTBUILDER_SERVER_SSH</option>
|
||||
<option value="2">COM_COMPONENTBUILDER_SERVER_SFTP</option>
|
||||
</field>
|
||||
<!-- Host Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="host"
|
||||
label="COM_COMPONENTBUILDER_SERVER_HOST_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_SERVER_HOST_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_SERVER_HOST_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_SERVER_HOST_HINT" />
|
||||
<!-- Note_ftp_signature Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_ftp_signature"
|
||||
@ -114,6 +126,27 @@
|
||||
description="COM_COMPONENTBUILDER_SERVER_NOTE_FTP_SIGNATURE_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-success note_ftp_signature" />
|
||||
<!-- Note_ssh_security Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_ssh_security"
|
||||
label="COM_COMPONENTBUILDER_SERVER_NOTE_SSH_SECURITY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_SERVER_NOTE_SSH_SECURITY_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_ssh_security" />
|
||||
<!-- Port Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="port"
|
||||
label="COM_COMPONENTBUILDER_SERVER_PORT_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
default="22"
|
||||
description="COM_COMPONENTBUILDER_SERVER_PORT_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="INT"
|
||||
message="COM_COMPONENTBUILDER_SERVER_PORT_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_SERVER_PORT_HINT"
|
||||
onchange="if(!jQuery(this).val().match(/^\d+$/)){jQuery(this).val('')};" />
|
||||
<!-- Path Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="path"
|
||||
@ -128,48 +161,6 @@
|
||||
filter="PATH"
|
||||
message="COM_COMPONENTBUILDER_SERVER_PATH_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_SERVER_PATH_HINT" />
|
||||
<!-- Port Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="port"
|
||||
label="COM_COMPONENTBUILDER_SERVER_PORT_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
description="COM_COMPONENTBUILDER_SERVER_PORT_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="INT"
|
||||
message="COM_COMPONENTBUILDER_SERVER_PORT_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_SERVER_PORT_HINT"
|
||||
onchange="if(!jQuery(this).val().match(/^\d+$/)){jQuery(this).val('')};" />
|
||||
<!-- Authentication Field. Type: Radio. (joomla)-->
|
||||
<field type="radio"
|
||||
name="authentication"
|
||||
label="COM_COMPONENTBUILDER_SERVER_AUTHENTICATION_LABEL"
|
||||
description="COM_COMPONENTBUILDER_SERVER_AUTHENTICATION_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1"
|
||||
required="true">
|
||||
<!-- Option Set.-->
|
||||
<option value="1">COM_COMPONENTBUILDER_SERVER_PASSWORD</option>
|
||||
<option value="2">COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY</option>
|
||||
</field>
|
||||
<!-- Note_ssh_security Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_ssh_security"
|
||||
label="COM_COMPONENTBUILDER_SERVER_NOTE_SSH_SECURITY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_SERVER_NOTE_SSH_SECURITY_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-info note_ssh_security" />
|
||||
<!-- Password Field. Type: Password. (joomla)-->
|
||||
<field type="password"
|
||||
name="password"
|
||||
label="COM_COMPONENTBUILDER_SERVER_PASSWORD_LABEL"
|
||||
size="60"
|
||||
description="COM_COMPONENTBUILDER_SERVER_PASSWORD_DESCRIPTION"
|
||||
message="Error! Please add the password here."
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="raw" />
|
||||
<!-- Secret Field. Type: Password. (joomla)-->
|
||||
<field type="password"
|
||||
name="secret"
|
||||
@ -179,18 +170,21 @@
|
||||
message="Error! Please add the passphrase here."
|
||||
class="text_area"
|
||||
filter="raw" />
|
||||
<!-- Host Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="host"
|
||||
label="COM_COMPONENTBUILDER_SERVER_HOST_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_SERVER_HOST_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_SERVER_HOST_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_SERVER_HOST_HINT" />
|
||||
<!-- Authentication Field. Type: List. (joomla)-->
|
||||
<field type="list"
|
||||
name="authentication"
|
||||
label="COM_COMPONENTBUILDER_SERVER_AUTHENTICATION_LABEL"
|
||||
description="COM_COMPONENTBUILDER_SERVER_AUTHENTICATION_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
filter="INT"
|
||||
required="true">
|
||||
<!-- Option Set.-->
|
||||
<option value="">COM_COMPONENTBUILDER_SERVER_SELECT_AN_OPTION</option>
|
||||
<option value="1">COM_COMPONENTBUILDER_SERVER_PASSWORD</option>
|
||||
<option value="2">COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_FILE</option>
|
||||
<option value="3">COM_COMPONENTBUILDER_SERVER_BOTH</option>
|
||||
</field>
|
||||
<!-- Signature Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="signature"
|
||||
@ -204,6 +198,20 @@
|
||||
message="COM_COMPONENTBUILDER_SERVER_SIGNATURE_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_SERVER_SIGNATURE_HINT"
|
||||
autocomplete="off" />
|
||||
<!-- Password Field. Type: Password. (joomla)-->
|
||||
<field type="password"
|
||||
name="password"
|
||||
label="COM_COMPONENTBUILDER_SERVER_PASSWORD_LABEL"
|
||||
size="60"
|
||||
description="COM_COMPONENTBUILDER_SERVER_PASSWORD_DESCRIPTION"
|
||||
message="Error! Please add the password here."
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="raw" />
|
||||
<!-- Not_required Field. Type: Hidden. (joomla)-->
|
||||
<field type="hidden"
|
||||
name="not_required"
|
||||
default="[]" />
|
||||
<!-- Username Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="username"
|
||||
@ -216,10 +224,6 @@
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_SERVER_USERNAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_SERVER_USERNAME_HINT" />
|
||||
<!-- Not_required Field. Type: Hidden. (joomla)-->
|
||||
<field type="hidden"
|
||||
name="not_required"
|
||||
default="[]" />
|
||||
<!-- Private Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="private"
|
||||
@ -234,20 +238,6 @@
|
||||
filter="PATH"
|
||||
message="COM_COMPONENTBUILDER_SERVER_PRIVATE_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_SERVER_PRIVATE_HINT" />
|
||||
<!-- Public Field. Type: Text. (joomla)-->
|
||||
<field type="text"
|
||||
name="public"
|
||||
label="COM_COMPONENTBUILDER_SERVER_PUBLIC_LABEL"
|
||||
size="50"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_SERVER_PUBLIC_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="true"
|
||||
filter="PATH"
|
||||
message="COM_COMPONENTBUILDER_SERVER_PUBLIC_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_SERVER_PUBLIC_HINT" />
|
||||
</fieldset>
|
||||
|
||||
<!-- Access Control Fields. -->
|
||||
|
Reference in New Issue
Block a user