Skip to content

Commit 02ac870

Browse files
WEB. templates fixed hestiacp#915
1 parent 36a1a3d commit 02ac870

38 files changed

+381
-382
lines changed

web/templates/admin/add_cron.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
</tr>
369369
<tr>
370370
<td>
371-
<input type="text" size="30" class="vst-input long" name="v_cmd" <?php if (!empty($v_cmd)) echo "value=".htmlentities($v_cmd).""; ?>>
371+
<input type="text" size="30" class="vst-input long" name="v_cmd" value="<?=htmlentities(trim($v_cmd, "'"))?>">
372372
</td>
373373
</tr>
374374
<tr>
@@ -378,7 +378,7 @@
378378
</tr>
379379
<tr>
380380
<td>
381-
<input type="text" size="20" class="vst-input short" name="v_min" <?php if (!empty($v_min)) echo "value=".htmlentities($v_min); ?>>
381+
<input type="text" size="20" class="vst-input short" name="v_min" value="<?=htmlentities(trim($v_min, "'"))?>">
382382
</td>
383383
</tr>
384384
<tr>
@@ -388,7 +388,7 @@
388388
</tr>
389389
<tr>
390390
<td>
391-
<input type="text" size="20" class="vst-input short" name="v_hour" <?php if (!empty($v_hour)) echo "value=".htmlentities($v_hour); ?>>
391+
<input type="text" size="20" class="vst-input short" name="v_hour" value="<?=htmlentities(trim($v_hour, "'"))?>">
392392
</td>
393393
</tr>
394394
<tr>
@@ -398,7 +398,7 @@
398398
</tr>
399399
<tr>
400400
<td>
401-
<input type="text" size="20" class="vst-input short" name="v_day" <?php if (!empty($v_day)) echo "value=".htmlentities($v_day); ?>>
401+
<input type="text" size="20" class="vst-input short" name="v_day" value="<?=htmlentities(trim($v_day, "'"))?>">
402402
</td>
403403
</tr>
404404
<tr>
@@ -408,7 +408,7 @@
408408
</tr>
409409
<tr>
410410
<td>
411-
<input type="text" size="20" class="vst-input short" name="v_month" <?php if (!empty($v_month)) echo "value=".htmlentities($v_month); ?>>
411+
<input type="text" size="20" class="vst-input short" name="v_month" value="<?=htmlentities(trim($v_month, "'"))?>">
412412
</td>
413413
</tr>
414414
<tr>
@@ -418,17 +418,17 @@
418418
</tr>
419419
<tr>
420420
<td>
421-
<input type="text" size="20" class="vst-input short" name="v_wday" <?php if (!empty($v_wday)) echo "value=".htmlentities($v_wday); ?>>
421+
<input type="text" size="20" class="vst-input short" name="v_wday" value="<?=htmlentities(trim($v_wday, "'"))?>">
422422
</td>
423423
</tr>
424424
</table>
425425
<table class="data-col2">
426426
<tr>
427427
<td class="step-top" width="116px">
428-
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
428+
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
429429
</td>
430430
<td class="step-top">
431-
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
431+
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
432432
</td>
433433
</tr>
434434
</table>

web/templates/admin/add_db.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
</tr>
5353
<tr>
5454
<td>
55-
<input type="text" size="20" class="vst-input" name="v_database" <?php if (!empty($v_database)) echo "value=".htmlentities($v_database); ?>>
55+
<input type="text" size="20" class="vst-input" name="v_database" value="<?=htmlentities(trim($v_database, "'"))?>">
5656
<small class="hint"></small>
5757
</td>
5858
</tr>
@@ -67,7 +67,7 @@
6767
</tr>
6868
<tr>
6969
<td>
70-
<input type="text" size="20" class="vst-input" name="v_dbuser" <?php if (!empty($v_dbuser)) echo "value=".htmlentities($v_dbuser); ?>>
70+
<input type="text" size="20" class="vst-input" name="v_dbuser" value="<?=htmlentities(trim($v_dbuser, "'"))?>">
7171
<small class="hint"></small>
7272
</td>
7373
</tr>
@@ -171,17 +171,17 @@
171171
</tr>
172172
<tr>
173173
<td>
174-
<input type="text" class="vst-input" name="v_db_email" <?php if (!empty($v_db_email)) echo "value=".htmlentities($v_db_email); ?>>
174+
<input type="text" class="vst-input" name="v_db_email" value="<?=htmlentities(trim($v_db_email, "'"))?>">
175175
</td>
176176
</tr>
177177
</table>
178178
<table class="data-col2">
179179
<tr>
180180
<td class="step-top" width="116px">
181-
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
181+
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
182182
</td>
183183
<td class="step-top">
184-
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
184+
<input type="button" class="button cancel" value="<?=__('Back');?>" onclick="<?=$back?>">
185185
</td>
186186
</tr>
187187
</table>

web/templates/admin/add_dns.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</tr>
4848
<tr>
4949
<td>
50-
<input type="text" size="20" class="vst-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?>>
50+
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
5151
</td>
5252
</tr>
5353
<tr>
@@ -57,7 +57,7 @@
5757
</tr>
5858
<tr>
5959
<td>
60-
<input type="text" size="20" class="vst-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?>>
60+
<input type="text" size="20" class="vst-input" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">
6161
</td>
6262
</tr>
6363
<tr>
@@ -75,7 +75,7 @@
7575
</tr>
7676
<tr>
7777
<td>
78-
<input type="text" size="20" class="vst-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".htmlentities($v_exp); ?>>
78+
<input type="text" size="20" class="vst-input" name="v_exp" value="<?=htmlentities(trim($v_exp, "'"))?>">
7979
</td>
8080
</tr>
8181
<tr>
@@ -85,7 +85,7 @@
8585
</tr>
8686
<tr>
8787
<td>
88-
<input type="text" size="20" class="vst-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".htmlentities($v_ttl); ?>>
88+
<input type="text" size="20" class="vst-input" name="v_ttl" value="<?=htmlentities(trim($v_ttl, "'"))?>">
8989
</td>
9090
</tr>
9191
<tr>
@@ -95,60 +95,60 @@
9595
</tr>
9696
<tr>
9797
<td>
98-
<input type="text" size="20" class="vst-input" name="v_ns1" <?php if (!empty($v_ns1)) echo 'value="'.htmlentities($v_ns1).'"'; ?>>
98+
<input type="text" size="20" class="vst-input" name="v_ns1" value="<?=htmlentities(trim($v_ns1, "'"))?>">
9999
<span class="remove-ns additional-control delete"><?=__('delete')?></span>
100100
</td>
101101
</tr>
102102
<tr>
103103
<td>
104-
<input type="text" size="20" class="vst-input" name="v_ns2" <?php if (!empty($v_ns2)) echo 'value="'.htmlentities($v_ns2).'"'; ?>>
104+
<input type="text" size="20" class="vst-input" name="v_ns2" value="<?=htmlentities(trim($v_ns2, "'"))?>">
105105
<span class="remove-ns additional-control delete"><?=__('delete')?></span>
106106
</td>
107107
</tr>
108108
<? if($v_ns3)
109109
echo '<tr>
110110
<td>
111-
<input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities($v_ns3).'">
111+
<input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities(trim($v_ns3, "'")).'">
112112
<span class="remove-ns additional-control delete">'.__('delete').'</span>
113113
</td>
114114
</tr>';
115115

116116
if($v_ns4)
117117
echo '<tr>
118118
<td>
119-
<input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities($v_ns4).'">
119+
<input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities(trim($v_ns4, "'")).'">
120120
<span class="remove-ns additional-control delete">'.__('delete').'</span>
121121
</td>
122122
</tr>';
123123

124124
if($v_ns5)
125125
echo '<tr>
126126
<td>
127-
<input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities($v_ns5).'">
127+
<input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities(trim($v_ns5, "'")).'">
128128
<span class="remove-ns additional-control delete">'.__('delete').'</span>
129129
</td>
130130
</tr>';
131131

132132
if($v_ns6)
133133
echo '<tr>
134134
<td>
135-
<input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities($v_ns6).'">
135+
<input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities(trim($v_ns6, "'")).'">
136136
<span class="remove-ns additional-control delete">'.__('delete').'</span>
137137
</td>
138138
</tr>';
139139

140140
if($v_ns7)
141141
echo '<tr>
142142
<td>
143-
<input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities($v_ns7).'">
143+
<input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities(trim($v_ns7, "'")).'">
144144
<span class="remove-ns additional-control delete">'.__('delete').'</span>
145145
</td>
146146
</tr>';
147147

148148
if($v_ns8)
149149
echo '<tr>
150150
<td>
151-
<input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities($v_ns8).'">
151+
<input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities(trim($v_ns8, "'")).'">
152152
<span class="remove-ns additional-control delete">'.__('delete').'</span>
153153
</td>
154154
</tr>';
@@ -166,10 +166,10 @@
166166
<table class="data-col2">
167167
<tr>
168168
<td class="step-top" width="116px">
169-
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
169+
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
170170
</td>
171171
<td class="step-top">
172-
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
172+
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
173173
</td>
174174
</tr>
175175
</table>

web/templates/admin/add_dns_rec.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
</tr>
4747
<tr>
4848
<td>
49-
<input type="text" size="20" class="vst-input" name="v_domain" <?php echo "value=".htmlentities($v_domain); ?> disabled ><input type="hidden" name="v_domain" <?php echo "value=".htmlentities($v_domain); ?>>
49+
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>" disabled >
50+
<input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
5051
</td>
5152
</tr>
5253
<tr>
@@ -56,7 +57,7 @@
5657
</tr>
5758
<tr>
5859
<td>
59-
<input type="text" size="20" class="vst-input" name="v_rec" <?php if (!empty($v_rec)) echo "value=".htmlentities($v_rec); ?>>
60+
<input type="text" size="20" class="vst-input" name="v_rec" value="<?=htmlentities(trim($v_rec, "'"))?>">
6061
<small class="hint"></small>
6162
</td>
6263
</tr>
@@ -91,7 +92,7 @@
9192
</tr>
9293
<tr>
9394
<td>
94-
<input type="text" size="20" class="vst-input" name="v_val" <?php if (!empty($v_val)) echo "value=".htmlentities($v_val); ?>>
95+
<input type="text" size="20" class="vst-input" name="v_val" value="<?=htmlentities(trim($v_val, "'"))?>">
9596
</td>
9697
</tr>
9798
<tr>
@@ -101,17 +102,17 @@
101102
</tr>
102103
<tr>
103104
<td>
104-
<input type="text" size="20" class="vst-input" name="v_priority" <?php if (!empty($v_priority)) echo "value=".htmlentities($v_priority); ?>>
105+
<input type="text" size="20" class="vst-input" name="v_priority" value="<?=htmlentities(trim($v_priority, "'"))?>">
105106
</td>
106107
</tr>
107108
</table>
108109
<table class="data-col2">
109110
<tr>
110111
<td class="step-top" width="116px">
111-
<input type="submit" name="ok_rec" value="<?php print __('Add');?>" class="button">
112+
<input type="submit" name="ok_rec" value="<?=__('Add')?>" class="button">
112113
</td>
113114
<td class="step-top">
114-
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
115+
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
115116
</td>
116117
</tr>
117118
</table>

0 commit comments

Comments
 (0)