php-fpm support

This commit is contained in:
Serghey Rodin 2015-10-28 16:36:29 +02:00
commit cd437282b2
4 changed files with 59 additions and 46 deletions

View file

@ -148,7 +148,7 @@
<?php if (!empty($_SESSION['WEB_BACKEND'])) { echo ""; ?>
<tr>
<td class="vst-text input-label">
<?php print __('Backend Template') . " <span class='optional''> / " . strtoupper($_SESSION['WEB_BACKEND']) . "</span>";?>
<?php print __('Backend Template') . " <span class='optional'>" . strtoupper($_SESSION['WEB_BACKEND']) . "</span>";?>
</td>
</tr>
<tr>

View file

@ -99,6 +99,11 @@
$ftp_user = str_replace(':', ', ', $ftp_user);
}
$backend_support='no';
if (!empty($data[$key]['BACKEND'])) {
$backend_support='yes';
}
$proxy_support='no';
if (!empty($data[$key]['PROXY'])) {
$proxy_support='yes';
@ -203,6 +208,7 @@ sort-name="<?=$key?>" sort-bandwidth="<?=$data[$key]['U_BANDWIDTH']?>" sort-dis
</div>
</td>
<td>
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>
<? if($proxy_support == 'no'){ ?>
<div class="l-unit__stat-cols clearfix disabled last"><?=__('Proxy Support')?></div>
<? } else {?>
@ -213,6 +219,19 @@ sort-name="<?=$key?>" sort-bandwidth="<?=$data[$key]['U_BANDWIDTH']?>" sort-dis
</div>
</div>
<? } ?>
<? } ?>
<?php if (!empty($_SESSION['WEB_BACKEND'])) { echo ""; ?>
<? if($backend_support == 'no'){ ?>
<div class="l-unit__stat-cols clearfix disabled last"><?=__('Backend Support')?></div>
<? } else {?>
<div class="l-unit__stat-cols clearfix last">
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Backend Support')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--right">
<b><?=__($backend_support)?></b>
</div>
</div>
<? } ?>
<? } ?>
</td>
</tr>
<tr>
@ -230,12 +249,22 @@ sort-name="<?=$key?>" sort-bandwidth="<?=$data[$key]['U_BANDWIDTH']?>" sort-dis
<? } ?>
</td>
<td>
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>
<div class="l-unit__stat-cols clearfix last">
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Proxy Template')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--right">
<b><?=$data[$key]['PROXY']?></b>
</div>
</div>
<? } ?>
<?php if (!empty($_SESSION['WEB_BACKEND'])) { echo ""; ?>
<div class="l-unit__stat-cols clearfix last">
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Backend Template')?>:</div>
<div class="l-unit__stat-col l-unit__stat-col--right">
<b><?=$data[$key]['BACKEND']?></b>
</div>
</div>
<? } ?>
</td>
</tr>
<tr>