Skip to content

Commit 253e28e

Browse files
committed
Nginx-less user templates
1 parent 40b23f0 commit 253e28e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

web/templates/user/edit_web.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
<textarea size="20" class="vst-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo $v_aliases; ?></textarea>
119119
</td>
120120
</tr>
121+
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>
121122
<tr>
122123
<td class="vst-text step-top">
123124
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_proxy" <?php if (!empty($v_proxy)) echo "checked=yes" ?> onclick="javascript:elementHideShow('proxytable');"> <?php print __('Proxy Support');?></label>
@@ -139,6 +140,7 @@
139140
</table>
140141
</td>
141142
</tr>
143+
<?php echo ""; }?>
142144
<tr>
143145
<td class="vst-text step-top">
144146
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_ssl" <?php if ($v_ssl == 'yes' || $v_ssl == 'on') echo "checked=yes" ?> onclick="javascript:elementHideShow('ssltable');"> <?php print __('SSL Support');?></label> /
@@ -329,7 +331,6 @@
329331
<?php endforeach; ?>
330332
</td>
331333
</tr>
332-
333334
<tr class="add-new-ftp-user-button" style="<?php print !empty($v_ftp_user) ? '' : 'display:none;' ?>">
334335
<td class="vst-text step-top v-add-new-user step-bottom">
335336
<a class="additional-control" onClick="App.Actions.WEB.add_ftp_user_form()"><?php print __('Add one more FTP Account');?></a>
@@ -350,7 +351,7 @@
350351
</tr>
351352
</table>
352353
</form>
353-
354+
354355
<div id="templates" class="hidden">
355356
<table class="ftptable ftptable-nrm" name="v_add_domain_ftp">
356357
<tr>

web/templates/user/list_web.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
</td>
153153
<td style="vertical-align:top;" width="238px">
154154
<table>
155+
<tr><td>&nbsp;</td><td></td></tr>
155156
<tr>
156157
<td class="counter-name"><?php print __('Web Template');?>:</td>
157158
<td class="counter-value"><?php print __($data[$key]['TPL']) ?></td>
@@ -160,33 +161,31 @@
160161
<td class="counter-name"><?php print __('SSL Support');?>:</td>
161162
<td class="counter-value"><?php print __($data[$key]['SSL']) ?></td>
162163
</tr>
163-
164164
<tr>
165165
<td class="counter-name"><?php print __('Web Statistics');?>: </td>
166166
<td class="counter-value"> <?php print __($web_stats) ?></td>
167167
</tr>
168168

169-
<tr>
170-
<td class="counter-name"><?php print __('Proxy Support');?>:</td>
171-
<td class="counter-value"><?php print __($proxy_support);?></td>
172-
</tr>
173-
174169
</table>
175170
</td>
176171
<td rowspan=4 style="vertical-align:top;">
177172
<table>
173+
<tr><td>&nbsp;</td><td></td></tr>
174+
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>
178175
<tr>
179-
<td class="counter-name"><?php print __('Proxy Template');?>:</td>
180-
<td class="counter-value"><?php echo $data[$key]['PROXY'];?></td>
176+
<td class="counter-name"><?php print __('Proxy Support');?>:</td>
177+
<td class="counter-value"><?php print __($proxy_support);?></td>
181178
</tr>
182179
<tr>
183-
<td class="counter-name"><?php print __('Proxy Extensions');?>:</td>
184-
<td class="counter-value"><?php echo $proxy_ext;?></td>
180+
<td class="counter-name"><?php print __('Proxy Template');?>:</td>
181+
<td class="counter-value"><?php echo $data[$key]['PROXY'];?></td>
185182
</tr>
183+
<?php echo ""; }?>
186184
<tr>
187185
<td class="counter-name"> <?php print __('Additional FTP Account');?>:</td>
188186
<td class="counter-value"> <?php print __($ftp_user) ?></td>
189187
</tr>
188+
190189
</table>
191190
</td>
192191
</tr>

0 commit comments

Comments
 (0)