|
|
@@ -36,6 +36,15 @@
|
|
|
<form id="vstobjects" method="POST" name="v_setup_webapp" style="padding-top:0px;" >
|
|
|
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
|
|
<input type="hidden" name="ok" value="true" />
|
|
|
+
|
|
|
+ <?php if( !$WebappInstaller->isDomainRootClean()): ?>
|
|
|
+ <span class="alert alert-info alert-with-icon">
|
|
|
+ <i class="fas fa-info"></i>
|
|
|
+ <?=__('Data loss warning!<br>Your web domain already has files uploaded, the installer will overwrite your files and/or the installation might fail.<br/><br/> Please use the installer only for empty web domains')?>
|
|
|
+ </span>
|
|
|
+ <br/>
|
|
|
+ <?php endif ?>
|
|
|
+
|
|
|
<div class="app-form" >
|
|
|
<?php foreach ($WebappInstaller->getOptions() as $form_name => $form_control):?>
|
|
|
<?php
|
|
|
@@ -43,13 +52,16 @@
|
|
|
$f_type = $form_control;
|
|
|
$f_value = '';
|
|
|
$f_label = ucwords(str_replace(['.','_'], ' ', $form_name));
|
|
|
+ $f_placeholder = '';
|
|
|
if (is_array($form_control)) {
|
|
|
$f_type = (!empty($form_control['type']))?$form_control['type']:'text';
|
|
|
$f_value = (!empty($form_control['value']))?$form_control['value']:'';
|
|
|
+ $f_placeholder = (!empty($form_control['placeholder']))?$form_control['placeholder']:'';
|
|
|
}
|
|
|
|
|
|
$f_value = htmlentities($f_value);
|
|
|
$f_label = htmlentities($f_label);
|
|
|
+ $f_placeholder = htmlentities($f_placeholder);
|
|
|
?>
|
|
|
<div class="form-group">
|
|
|
<label style="padding-bottom: 2px;" for="<?=$f_name?>"><?=$f_label?>
|
|
|
@@ -70,11 +82,11 @@
|
|
|
<?php elseif (in_array($f_type, ['boolean'])):?>
|
|
|
<p>
|
|
|
<?php $checked = (!empty($f_value))?'checked':''?>
|
|
|
- <input style="width:auto;" type="checkbox" class="vst-input" name="<?=$f_name?>" id="<?=$f_name?>" <?=$checked?> value="true">
|
|
|
+ <input style="width:auto;" type="checkbox" class="vst-input" name="<?=$f_name?>" id="<?=$f_name?>" <?=$checked?> value="true">
|
|
|
</p>
|
|
|
<?php else:?>
|
|
|
<p style="margin-top:0;"></p>
|
|
|
- <input type="text" size="20" class="vst-input" name="<?=$f_name?>" id="<?=$f_name?>" value="<?=$f_value?>">
|
|
|
+ <input type="text" size="20" class="vst-input" name="<?=$f_name?>" id="<?=$f_name?>" placeholder="<?=$f_placeholder?>" value="<?=$f_value?>">
|
|
|
</p>
|
|
|
<?php endif?>
|
|
|
</div>
|