Skip to content

Commit cd43728

Browse files
committed
php-fpm support
1 parent 91a804c commit cd43728

File tree

4 files changed

+59
-46
lines changed

4 files changed

+59
-46
lines changed

web/templates/admin/edit_web.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
<?php if (!empty($_SESSION['WEB_BACKEND'])) { echo ""; ?>
149149
<tr>
150150
<td class="vst-text input-label">
151-
<?php print __('Backend Template') . " <span class='optional''> / " . strtoupper($_SESSION['WEB_BACKEND']) . "</span>";?>
151+
<?php print __('Backend Template') . " <span class='optional'>" . strtoupper($_SESSION['WEB_BACKEND']) . "</span>";?>
152152
</td>
153153
</tr>
154154
<tr>

web/templates/admin/list_web.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@
9999
$ftp_user = str_replace(':', ', ', $ftp_user);
100100
}
101101

102+
$backend_support='no';
103+
if (!empty($data[$key]['BACKEND'])) {
104+
$backend_support='yes';
105+
}
106+
102107
$proxy_support='no';
103108
if (!empty($data[$key]['PROXY'])) {
104109
$proxy_support='yes';
@@ -203,6 +208,7 @@
203208
</div>
204209
</td>
205210
<td>
211+
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>
206212
<? if($proxy_support == 'no'){ ?>
207213
<div class="l-unit__stat-cols clearfix disabled last"><?=__('Proxy Support')?></div>
208214
<? } else {?>
@@ -213,6 +219,19 @@
213219
</div>
214220
</div>
215221
<? } ?>
222+
<? } ?>
223+
<?php if (!empty($_SESSION['WEB_BACKEND'])) { echo ""; ?>
224+
<? if($backend_support == 'no'){ ?>
225+
<div class="l-unit__stat-cols clearfix disabled last"><?=__('Backend Support')?></div>
226+
<? } else {?>
227+
<div class="l-unit__stat-cols clearfix last">
228+
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Backend Support')?>:</div>
229+
<div class="l-unit__stat-col l-unit__stat-col--right">
230+
<b><?=__($backend_support)?></b>
231+
</div>
232+
</div>
233+
<? } ?>
234+
<? } ?>
216235
</td>
217236
</tr>
218237
<tr>
@@ -230,12 +249,22 @@
230249
<? } ?>
231250
</td>
232251
<td>
252+
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>
233253
<div class="l-unit__stat-cols clearfix last">
234254
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Proxy Template')?>:</div>
235255
<div class="l-unit__stat-col l-unit__stat-col--right">
236256
<b><?=$data[$key]['PROXY']?></b>
237257
</div>
238258
</div>
259+
<? } ?>
260+
<?php if (!empty($_SESSION['WEB_BACKEND'])) { echo ""; ?>
261+
<div class="l-unit__stat-cols clearfix last">
262+
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Backend Template')?>:</div>
263+
<div class="l-unit__stat-col l-unit__stat-col--right">
264+
<b><?=$data[$key]['BACKEND']?></b>
265+
</div>
266+
</div>
267+
<? } ?>
239268
</td>
240269
</tr>
241270
<tr>

web/templates/user/edit_web.html

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -124,27 +124,6 @@
124124
<textarea size="20" class="vst-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo htmlentities($v_aliases); ?></textarea>
125125
</td>
126126
</tr>
127-
<tr>
128-
<td class="vst-text input-label">
129-
<?php print __('Web Template');?>
130-
</td>
131-
</tr>
132-
<tr>
133-
<td>
134-
<select class="vst-list" name="v_template">
135-
<?php
136-
foreach ($templates as $key => $value) {
137-
echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
138-
$svalue = "'".$value."'";
139-
if ((!empty($v_template)) && ( $value == $v_template ) || ($svalue == $v_template)){
140-
echo ' selected' ;
141-
}
142-
echo ">".htmlentities($value)."</option>\n";
143-
}
144-
?>
145-
</select>
146-
</td>
147-
</tr>
148127
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>
149128
<tr>
150129
<td class="vst-text step-top">
@@ -154,30 +133,6 @@
154133
<tr>
155134
<td class="step-left">
156135
<table style="display:<?php if (empty($v_proxy)) { echo 'none';} else {echo 'block';}?> ;" id="proxytable">
157-
<tr>
158-
<td class="vst-text input-label">
159-
<?php print __('Proxy Template');?>
160-
</td>
161-
</tr>
162-
<tr>
163-
<td>
164-
<select class="vst-list" name="v_proxy_template">
165-
<?php
166-
foreach ($proxy_templates as $key => $value) {
167-
echo "\t\t\t\t<option value=\"".htmlentities($value)."\"";
168-
$svalue = "'".$value."'";
169-
if ((!empty($v_proxy_template)) && ( $value == $v_proxy_template ) || ($svalue == $v_proxy_template)){
170-
echo ' selected' ;
171-
}
172-
if ((empty($v_proxy_template)) && ($value == 'default')){
173-
echo ' selected' ;
174-
}
175-
echo ">".htmlentities($value)."</option>\n";
176-
}
177-
?>
178-
</select>
179-
</td>
180-
</tr>
181136
<tr>
182137
<td class="vst-text input-label">
183138
<?php print __('Proxy Extensions');?>

web/templates/user/list_web.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@
101101
$ftp_user = str_replace(':', ', ', $ftp_user);
102102
}
103103

104+
$backend_support='no';
105+
if (!empty($data[$key]['BACKEND'])) {
106+
$backend_support='yes';
107+
}
108+
104109
$proxy_support='no';
105110
if (!empty($data[$key]['PROXY'])) {
106111
$proxy_support='yes';
@@ -207,6 +212,7 @@
207212
</div>
208213
</td>
209214
<td>
215+
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>.
210216
<? if($proxy_support == 'no'){ ?>
211217
<div class="l-unit__stat-cols clearfix disabled last"><?=__('Proxy Support')?></div>
212218
<? } else {?>
@@ -217,6 +223,19 @@
217223
</div>
218224
</div>
219225
<? } ?>
226+
<? } ?>
227+
<?php if (!empty($_SESSION['WEB_BACKEND'])) { echo ""; ?>.
228+
<? if($backend_support == 'no'){ ?>
229+
<div class="l-unit__stat-cols clearfix disabled last"><?=__('Backend Support')?></div>
230+
<? } else {?>
231+
<div class="l-unit__stat-cols clearfix last">
232+
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Backend Support')?>:</div>
233+
<div class="l-unit__stat-col l-unit__stat-col--right">
234+
<b><?=__($backend_support)?></b>
235+
</div>
236+
</div>
237+
<? } ?>
238+
<? } ?>
220239
</td>
221240
</tr>
222241
<tr>
@@ -234,12 +253,22 @@
234253
<? } ?>
235254
</td>
236255
<td>
256+
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>.
237257
<div class="l-unit__stat-cols clearfix last">
238258
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Proxy Template')?>:</div>
239259
<div class="l-unit__stat-col l-unit__stat-col--right">
240260
<b><?=$data[$key]['PROXY']?></b>
241261
</div>
242262
</div>
263+
<? } ?>
264+
<?php if (!empty($_SESSION['WEB_BACKEND'])) { echo ""; ?>.
265+
<div class="l-unit__stat-cols clearfix last">
266+
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Backend Template')?>:</div>
267+
<div class="l-unit__stat-col l-unit__stat-col--right">
268+
<b><?=$data[$key]['BACKEND']?></b>
269+
</div>
270+
</div>
271+
<? } ?>
243272
</td>
244273
</tr>
245274
<tr>

0 commit comments

Comments
 (0)