WEB. templates fixed #915

This commit is contained in:
Dmitry Naumov-Socolov 2016-11-22 07:05:19 -05:00
parent 36a1a3d49b
commit 02ac870ab7
38 changed files with 381 additions and 382 deletions

View file

@ -368,7 +368,7 @@
</tr>
<tr>
<td>
<input type="text" size="30" class="vst-input long" name="v_cmd" <?php if (!empty($v_cmd)) echo "value=".htmlentities($v_cmd).""; ?>>
<input type="text" size="30" class="vst-input long" name="v_cmd" value="<?=htmlentities(trim($v_cmd, "'"))?>">
</td>
</tr>
<tr>
@ -378,7 +378,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input short" name="v_min" <?php if (!empty($v_min)) echo "value=".htmlentities($v_min); ?>>
<input type="text" size="20" class="vst-input short" name="v_min" value="<?=htmlentities(trim($v_min, "'"))?>">
</td>
</tr>
<tr>
@ -388,7 +388,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input short" name="v_hour" <?php if (!empty($v_hour)) echo "value=".htmlentities($v_hour); ?>>
<input type="text" size="20" class="vst-input short" name="v_hour" value="<?=htmlentities(trim($v_hour, "'"))?>">
</td>
</tr>
<tr>
@ -398,7 +398,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input short" name="v_day" <?php if (!empty($v_day)) echo "value=".htmlentities($v_day); ?>>
<input type="text" size="20" class="vst-input short" name="v_day" value="<?=htmlentities(trim($v_day, "'"))?>">
</td>
</tr>
<tr>
@ -408,7 +408,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input short" name="v_month" <?php if (!empty($v_month)) echo "value=".htmlentities($v_month); ?>>
<input type="text" size="20" class="vst-input short" name="v_month" value="<?=htmlentities(trim($v_month, "'"))?>">
</td>
</tr>
<tr>
@ -418,17 +418,17 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input short" name="v_wday" <?php if (!empty($v_wday)) echo "value=".htmlentities($v_wday); ?>>
<input type="text" size="20" class="vst-input short" name="v_wday" value="<?=htmlentities(trim($v_wday, "'"))?>">
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -52,7 +52,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_database" <?php if (!empty($v_database)) echo "value=".htmlentities($v_database); ?>>
<input type="text" size="20" class="vst-input" name="v_database" value="<?=htmlentities(trim($v_database, "'"))?>">
<small class="hint"></small>
</td>
</tr>
@ -67,7 +67,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_dbuser" <?php if (!empty($v_dbuser)) echo "value=".htmlentities($v_dbuser); ?>>
<input type="text" size="20" class="vst-input" name="v_dbuser" value="<?=htmlentities(trim($v_dbuser, "'"))?>">
<small class="hint"></small>
</td>
</tr>
@ -171,17 +171,17 @@
</tr>
<tr>
<td>
<input type="text" class="vst-input" name="v_db_email" <?php if (!empty($v_db_email)) echo "value=".htmlentities($v_db_email); ?>>
<input type="text" class="vst-input" name="v_db_email" value="<?=htmlentities(trim($v_db_email, "'"))?>">
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back');?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -47,7 +47,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?>>
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
</td>
</tr>
<tr>
@ -57,7 +57,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?>>
<input type="text" size="20" class="vst-input" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">
</td>
</tr>
<tr>
@ -75,7 +75,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".htmlentities($v_exp); ?>>
<input type="text" size="20" class="vst-input" name="v_exp" value="<?=htmlentities(trim($v_exp, "'"))?>">
</td>
</tr>
<tr>
@ -85,7 +85,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".htmlentities($v_ttl); ?>>
<input type="text" size="20" class="vst-input" name="v_ttl" value="<?=htmlentities(trim($v_ttl, "'"))?>">
</td>
</tr>
<tr>
@ -95,20 +95,20 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns1" <?php if (!empty($v_ns1)) echo 'value="'.htmlentities($v_ns1).'"'; ?>>
<input type="text" size="20" class="vst-input" name="v_ns1" value="<?=htmlentities(trim($v_ns1, "'"))?>">
<span class="remove-ns additional-control delete"><?=__('delete')?></span>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns2" <?php if (!empty($v_ns2)) echo 'value="'.htmlentities($v_ns2).'"'; ?>>
<input type="text" size="20" class="vst-input" name="v_ns2" value="<?=htmlentities(trim($v_ns2, "'"))?>">
<span class="remove-ns additional-control delete"><?=__('delete')?></span>
</td>
</tr>
<? if($v_ns3)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities($v_ns3).'">
<input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities(trim($v_ns3, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -116,7 +116,7 @@
if($v_ns4)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities($v_ns4).'">
<input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities(trim($v_ns4, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -124,7 +124,7 @@
if($v_ns5)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities($v_ns5).'">
<input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities(trim($v_ns5, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -132,7 +132,7 @@
if($v_ns6)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities($v_ns6).'">
<input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities(trim($v_ns6, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -140,7 +140,7 @@
if($v_ns7)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities($v_ns7).'">
<input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities(trim($v_ns7, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -148,7 +148,7 @@
if($v_ns8)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities($v_ns8).'">
<input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities(trim($v_ns8, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -166,10 +166,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -46,7 +46,8 @@
</tr>
<tr>
<td>
<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); ?>>
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>" disabled >
<input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
</td>
</tr>
<tr>
@ -56,7 +57,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_rec" <?php if (!empty($v_rec)) echo "value=".htmlentities($v_rec); ?>>
<input type="text" size="20" class="vst-input" name="v_rec" value="<?=htmlentities(trim($v_rec, "'"))?>">
<small class="hint"></small>
</td>
</tr>
@ -91,7 +92,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_val" <?php if (!empty($v_val)) echo "value=".htmlentities($v_val); ?>>
<input type="text" size="20" class="vst-input" name="v_val" value="<?=htmlentities(trim($v_val, "'"))?>">
</td>
</tr>
<tr>
@ -101,17 +102,17 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_priority" <?php if (!empty($v_priority)) echo "value=".htmlentities($v_priority); ?>>
<input type="text" size="20" class="vst-input" name="v_priority" value="<?=htmlentities(trim($v_priority, "'"))?>">
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="ok_rec" value="<?php print __('Add');?>" class="button">
<input type="submit" name="ok_rec" value="<?=__('Add')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -76,7 +76,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_port" <?php if (!empty($v_port)) echo "value=".htmlentities($v_port); ?>>
<input type="text" size="20" class="vst-input" name="v_port" value="<?=htmlentities(trim($v_port, "'"))?>">
</td>
</tr>
<tr>
@ -86,7 +86,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?>>
<input type="text" size="20" class="vst-input" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">
</td>
</tr>
<tr>
@ -96,7 +96,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_comment" maxlength="255" <?php if (!empty($v_comment)) echo "value=".htmlentities($v_comment); ?>>
<input type="text" size="20" class="vst-input" name="v_comment" maxlength="255" value="<?=htmlentities(trim($v_comment, "'"))?>">
</td>
</tr>
@ -104,10 +104,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -65,17 +65,17 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?>>
<input type="text" size="20" class="vst-input" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -47,7 +47,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?>>
<input type="text" size="20" class="vst-input" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">
</td>
</tr>
<tr>
@ -57,7 +57,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_netmask" <?php if (!empty($v_netmask)) echo "value=".htmlentities($v_netmask); ?>>
<input type="text" size="20" class="vst-input" name="v_netmask" value="<?=htmlentities(trim($v_netmask, "'"))?>">
</td>
</tr>
<tr>
@ -114,7 +114,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_name" <?php if (!empty($v_name)) echo "value=".htmlentities($v_name); ?>>
<input type="text" size="20" class="vst-input" name="v_name" value="<?=htmlentities(trim($v_name, "'"))?>">
</td>
</tr>
<tr>
@ -124,7 +124,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_nat" <?php if (!empty($v_nat)) echo "value=".htmlentities($v_nat); ?>>
<input type="text" size="20" class="vst-input" name="v_nat" value="<?=htmlentities(trim($v_nat, "'"))?>">
</td>
</tr>
@ -133,10 +133,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -46,7 +46,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?> >
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
</td>
</tr>
<tr>
@ -68,10 +68,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -47,7 +47,8 @@
</tr>
<tr>
<td>
<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); ?>>
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>" disabled >
<input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
</td>
</tr>
<tr>
@ -57,7 +58,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_account" <?php if (!empty($v_account)) echo "value=".htmlentities($v_account); ?>>
<input type="text" size="20" class="vst-input" name="v_account" value="<?=htmlentities(trim($v_account, "'"))?>">
</td>
</tr>
<tr>
@ -85,7 +86,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_quota" <?php if (!empty($v_quota)) echo "value=".htmlentities($v_quota); ?>>
<input type="text" size="20" class="vst-input" name="v_quota" value="<?=htmlentities(trim($v_quota, "'"))?>">
<img class="unlim-trigger" id="unlim-quota" src="/images/unlim.png" />
</td>
</tr>
@ -96,7 +97,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo htmlentities($v_aliases); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_aliases"><?=htmlentities(trim($v_aliases, "'"))?></textarea>
</td>
</tr>
<tr>
@ -106,7 +107,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_fwd"><?php if (!empty($v_fwd)) echo htmlentities($v_fwd); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_fwd"><?=htmlentities(trim($v_fwd, "'"))?></textarea>
</td>
</tr>
<tr>
@ -121,10 +122,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="ok_acc" value="<?php print __('Add');?>" class="button">
<input type="submit" name="ok_acc" value="<?=__('Add')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>
@ -140,13 +141,13 @@
<option v_type="hostname" domain="<?=$v_domain?>"><?=__('Use domain hostname')?></option>
<option v_type="starttls"><?=__('Use STARTTLS')?></option>
<option v_type="ssl"><?=__('Use SSL')?></option>
<option v_type="no_encryption" domain="<?=$v_domain?>" no_encryption="<?=__('No encryption')?>"><?=__('No encryption')?></option>
<option v_type="no_encryption" domain="<?=htmlentities(trim($v_domain, "'"))?>" encryption="<?=__('No encryption')?>"><?=__('No encryption')?></option>
</select>
</td>
</tr>
<tr>
<td><?=__('Username')?>:</td>
<td><div><span id="v_account">william.cage</span>@<?=htmlentities($v_domain)?></div></td>
<td><div><span id="v_account">william.cage</span>@<?=htmlentities(trim($v_domain, "'"))?></div></td>
</tr>
<tr>
<td><?=__('Password')?>:</td>

View file

@ -20,8 +20,6 @@
<div class="l-center">
<?php
echo 'reading-read '.$v_ns5;
$back = $_SESSION['back'];
if (empty($back)) {
$back = "location.href='/list/package/'";
@ -48,7 +46,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_package" <?php if (!empty($v_package)) echo "value=".htmlentities($v_package); ?> >
<input type="text" size="20" class="vst-input" name="v_package" value="<?=htmlentities(trim($v_package, "'"))?>">
</td>
</tr>
<tr>
@ -179,7 +177,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_web_domains" <?php if (isset($v_web_domains)) echo "value=".htmlentities($v_web_domains); ?>>
<input type="text" size="20" class="vst-input" name="v_web_domains" value="<?=htmlentities(trim($v_web_domains, "'"))?>">
<img class="unlim-trigger" id="unlim-web-domains" src="/images/unlim.png" />
</td>
</tr>
@ -190,7 +188,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_web_aliases" <?php if (isset($v_web_aliases)) echo "value=".htmlentities($v_web_aliases); ?>>
<input type="text" size="20" class="vst-input" name="v_web_aliases" value="<?=htmlentities(trim($v_web_aliases, "'"))?>">
<img id="unlim-web-aliases" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -201,7 +199,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_dns_domains" <?php if (isset($v_dns_domains)) echo "value=".htmlentities($v_dns_domains); ?>>
<input type="text" size="20" class="vst-input" name="v_dns_domains" value="<?=htmlentities(trim($v_dns_domains, "'"))?>">
<img id="unlim-dns-domain" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -212,7 +210,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_dns_records" <?php if (isset($v_dns_records)) echo "value=".htmlentities($v_dns_records); ?>>
<input type="text" size="20" class="vst-input" name="v_dns_records" value="<?=htmlentities(trim($v_dns_records, "'"))?>">
<img id="unlim-dns-records" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -223,7 +221,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_mail_domains" <?php if (isset($v_mail_domains)) echo "value=".htmlentities($v_mail_domains); ?>>
<input type="text" size="20" class="vst-input" name="v_mail_domains" value="<?=htmlentities(trim($v_mail_domains, "'"))?>">
<img id="unlim-mail-domains" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -234,7 +232,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_mail_accounts" <?php if (isset($v_mail_accounts)) echo "value=".htmlentities($v_mail_accounts); ?>>
<input type="text" size="20" class="vst-input" name="v_mail_accounts" value="<?=htmlentities(trim($v_mail_accounts, "'"))?>">
<img id="unlim-mail-accounts" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -245,7 +243,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_databases" <?php if (isset($v_databases)) echo "value=".htmlentities($v_databases); ?>>
<input type="text" size="20" class="vst-input" name="v_databases" value="<?=htmlentities(trim($v_databases, "'"))?>">
<img id="unlim-databases" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -256,7 +254,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_cron_jobs" <?php if (isset($v_cron_jobs)) echo "value=".htmlentities($v_cron_jobs); ?>>
<input type="text" size="20" class="vst-input" name="v_cron_jobs" value="<?=htmlentities(trim($v_cron_jobs, "'"))?>">
<img id="unlim-cron-jobs" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -267,7 +265,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_backups" <?php if (isset($v_backups)) echo "value=".htmlentities($v_backups); ?>>
<input type="text" size="20" class="vst-input" name="v_backups" value="<?=htmlentities(trim($v_backups, "'"))?>">
</td>
</tr>
<tr>
@ -277,7 +275,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_disk_quota" <?php if (isset($v_disk_quota)) echo "value=".htmlentities($v_disk_quota); ?>>
<input type="text" size="20" class="vst-input" name="v_disk_quota" value="<?=htmlentities(trim($v_disk_quota, "'"))?>">
<img id="unlim-disk-quota" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -288,7 +286,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_bandwidth" <?php if (isset($v_bandwidth)) echo "value=".htmlentities($v_bandwidth); ?>>
<input type="text" size="20" class="vst-input" name="v_bandwidth" value="<?=htmlentities(trim($v_bandwidth, "'"))?>">
<img name="unlim-bandwidth" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -299,20 +297,20 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns1" <?php if (!empty($v_ns1)) echo "value=".htmlentities($v_ns1); ?>>
<input type="text" size="20" class="vst-input" name="v_ns1" value="<?=htmlentities(trim($v_ns1, "'"))?>">
<span class="remove-ns additional-control delete"><?=__('delete')?></span>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns2" <?php if (!empty($v_ns2)) echo "value=".htmlentities($v_ns2); ?>>
<input type="text" size="20" class="vst-input" name="v_ns2" value="<?=htmlentities(trim($v_ns2, "'"))?>">
<span class="remove-ns additional-control delete"><?=__('delete')?></span>
</td>
</tr>
<? if($v_ns3)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities($v_ns3).'">
<input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities(trim($v_ns3, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -320,7 +318,7 @@
if($v_ns4)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities($v_ns4).'">
<input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities(trim($v_ns4, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -328,7 +326,7 @@
if($v_ns5)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities($v_ns5).'">
<input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities(trim($v_ns5, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -336,7 +334,7 @@
if($v_ns6)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities($v_ns6).'">
<input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities(trim($v_ns6, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -344,7 +342,7 @@
if($v_ns7)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities($v_ns7).'">
<input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities(trim($v_ns7, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -352,7 +350,7 @@
if($v_ns8)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities($v_ns8).'">
<input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities(trim($v_ns8, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -366,10 +364,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -49,7 +49,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_username" <?php if (!empty($v_username)) echo "value=".htmlentities($v_username); ?> tabindex="1" >
<input type="text" size="20" class="vst-input" name="v_username" value="<?=htmlentities(trim($v_username, "'"))?>" tabindex="1" >
</td>
</tr>
<tr>
@ -59,7 +59,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input password" name="v_password" <?php if (!empty($v_password)) echo "value=".htmlentities($v_password); ?> tabindex="2" >
<input type="text" size="20" class="vst-input password" name="v_password" value="<?=htmlentities(trim($v_password, "'"))?>" tabindex="2" >
</td>
</tr>
<tr>
@ -69,7 +69,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_email" id='v_email' <?php if (!empty($v_email)) echo "value=".htmlentities($v_email); ?> tabindex="3" >
<input type="text" size="20" class="vst-input" name="v_email" id='v_email' value="<?=htmlentities(trim($v_email, "'"))?>" tabindex="3" >
</td>
</tr>
<tr>
@ -129,7 +129,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_fname" <?php if (!empty($v_fname)) echo "value=".htmlentities($v_fname); ?> tabindex="6" >
<input type="text" size="20" class="vst-input" name="v_fname" value="<?=htmlentities(trim($v_fname, "'"))?>" tabindex="6" >
</td>
</tr>
<tr>
@ -139,7 +139,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_lname" <?php if (!empty($v_lname)) echo "value=".htmlentities($v_lname); ?> tabindex="7" >
<input type="text" size="20" class="vst-input" name="v_lname" value="<?=htmlentities(trim($v_lname, "'"))?>" tabindex="7" >
</td>
</tr>
<tr>
@ -149,7 +149,7 @@
</tr>
<tr>
<td>
<input type="text" class="vst-input" name="v_notify" id="v_notify" <?php if (!empty($v_notify)) echo "value=".htmlentities($v_notify); ?> tabindex="8" >
<input type="text" class="vst-input" name="v_notify" id="v_notify" value="<?=htmlentities(trim($v_notify, "'"))?>" tabindex="8" >
</td>
</tr>
@ -157,10 +157,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -50,7 +50,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_domain" id="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?>>
<input type="text" size="20" class="vst-input" name="v_domain" id="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
</td>
</tr>
<tr>
@ -95,7 +95,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_aliases" id="v_aliases" ><?php if (!empty($v_aliases)) echo htmlentities($v_aliases); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_aliases" id="v_aliases" ><?=htmlentities(trim($v_aliases, "'"))?></textarea>
</td>
</tr>
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>
@ -114,7 +114,7 @@
</tr>
<tr>
<td class="step-left">
<textarea size="20" class="vst-textinput" name="v_proxy_ext"><?php if (!empty($v_proxy_ext)) { echo htmlentities($v_proxy_ext);} else { echo 'jpeg, jpg, png, gif, bmp, ico, svg, tif, tiff, css, js, htm, html, ttf, otf, webp, woff, txt, csv, rtf, doc, docx, xls, xlsx, ppt, pptx, odf, odp, ods, odt, pdf, psd, ai, eot, eps, ps, zip, tar, tgz, gz, rar, bz2, 7z, aac, m4a, mp3, mp4, ogg, wav, wma, 3gp, avi, flv, m4v, mkv, mov, mp4, mpeg, mpg, wmv, exe, iso, dmg, swf'; } ?></textarea>
<textarea size="20" class="vst-textinput" name="v_proxy_ext"><?php if (!empty($v_proxy_ext)) { echo htmlentities(trim($v_proxy_ext, "'"));} else { echo 'jpeg, jpg, png, gif, bmp, ico, svg, tif, tiff, css, js, htm, html, ttf, otf, webp, woff, txt, csv, rtf, doc, docx, xls, xlsx, ppt, pptx, odf, odp, ods, odt, pdf, psd, ai, eot, eps, ps, zip, tar, tgz, gz, rar, bz2, 7z, aac, m4a, mp3, mp4, ogg, wav, wma, 3gp, avi, flv, m4v, mkv, mov, mp4, mpeg, mpg, wmv, exe, iso, dmg, swf'; } ?></textarea>
</td>
</tr>
</table>
@ -159,13 +159,12 @@
<tr>
<td class="vst-text input-label step-left">
<?php print __('SSL Certificate');?>
<span id="generate-csr"> / <a class="generate" target="_blank" href="/generate/ssl/?domain=<?php echo $v_domain ?>"><?php print __('Generate CSR') ?></a></span>
<span id="generate-csr"> / <a class="generate" target="_blank" href="/generate/ssl/?domain=<?=htmlentities(trim($v_domain, "'")) ?>"><?php print __('Generate CSR') ?></a></span>
</td>
</tr>
<tr>
<td class="step-left">
<textarea size="20" class="vst-textinput" name="v_ssl_crt"><?php if (!empty($v_ssl_crt)) echo htmlentities($v_ssl_crt); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_ssl_crt"><?=htmlentities(trim($v_ssl_crt, "'"))?></textarea>
</td>
</tr>
<tr>
@ -175,7 +174,7 @@
</tr>
<tr>
<td class="step-left">
<textarea size="20" class="vst-textinput" name="v_ssl_key"><?php if (!empty($v_ssl_key)) echo htmlentities($v_ssl_key); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_ssl_key"><?=htmlentities(trim($v_ssl_key, "'"))?></textarea>
</td>
</tr>
<tr>
@ -185,7 +184,7 @@
</tr>
<tr>
<td class="step-left">
<textarea size="20" class="vst-textinput" name="v_ssl_ca"><?php if (!empty($v_ssl_ca)) echo htmlentities($v_ssl_ca); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_ssl_ca"><?=htmlentities(trim($v_ssl_ca, "'"))?></textarea>
</td>
</tr>
</table>
@ -213,9 +212,10 @@
</select>
</td>
</tr>
<tr class="stats-auth" style="<? if ($v_stats == 'none') { ?>display:none"<? } ?>>
<tr class="stats-auth" style="<? if (trim($v_stats, "'") == 'none') { ?>display:none<? } ?>">
<td class="step-left vst-text input-label">
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_stats_auth" <?php if (!empty($v_stats_user)) echo "checked=yes" ?> onclick="javascript:elementHideShow('statstable');"> <?php print __('Statistics Authorization');?></label>
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_stats_auth" <?php if (!empty($v_stats_user)) echo "checked=yes" ?>
onclick="javascript:elementHideShow('statstable');"> <?=__('Statistics Authorization')?></label>
</td>
</tr>
<tr>
@ -228,7 +228,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_stats_user" <?php if (!empty($v_stats_user)) echo "value=".htmlentities($v_stats_user); ?>>
<input type="text" size="20" class="vst-input" name="v_stats_user" value="<?=htmlentities(trim($v_stats_user, "'"))?>">
</td>
</tr>
<tr>
@ -238,7 +238,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input password" name="v_stats_password" <?php if (!empty($v_stats_password)) echo "value=".htmlentities($v_stats_password); ?> id="v_password">
<input type="text" size="20" class="vst-input password" name="v_stats_password" value="<?=htmlentities(trim($v_stats_password, "'"))?>" id="v_password">
</td>
</tr>
</table>
@ -246,7 +246,7 @@
</tr>
<tr>
<td class="vst-text step-top">
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_ftp" <?php if (!empty($v_ftp)) echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_additional_ftp_accounts(this)"> <?php print __('Additional FTP Account');?></label>
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_ftp" <?php if (!empty($v_ftp) && count($v_ftp_users)) echo "checked=yes" ?> onclick="App.Actions.WEB.toggle_additional_ftp_accounts(this)"> <?php print __('Additional FTP Account');?></label>
</td>
</tr>
<tr>
@ -275,7 +275,7 @@
</tr>
<tr>
<td class="step-left">
<input type="text" size="20" class="vst-input v-ftp-user" <?php print $ftp_user['is_new'] != 1 ? 'disabled="disabled"' : '' ?> name="v_ftp_user[<?php print $i ?>][v_ftp_user]" <?php if (!empty($v_ftp_user)) echo "value=".htmlentities($v_ftp_user); ?>>
<input type="text" size="20" class="vst-input v-ftp-user" <?php print $ftp_user['is_new'] != 1 ? 'disabled="disabled"' : '' ?> name="v_ftp_user[<?php print $i ?>][v_ftp_user]" value="<?=htmlentities(trim($v_ftp_user, "'"))?>">
<small class="hint"></small>
</td>
</tr>
@ -286,7 +286,7 @@
</tr>
<tr>
<td class="step-left">
<input type="text" class="vst-input v-ftp-user-psw password" name="v_ftp_user[<?php print $i ?>][v_ftp_password]" <?php if (!empty($v_ftp_password)) echo "value=".htmlentities($v_ftp_password); ?>>
<input type="text" class="vst-input v-ftp-user-psw password" name="v_ftp_user[<?php print $i ?>][v_ftp_password]" value="<?=htmlentities(trim($v_ftp_password, "'"))?>">
</td>
</tr>
@ -297,9 +297,9 @@
</tr>
<tr>
<td class="step-left">
<input type="hidden" class="vst-input v-ftp-pre-path" name="v_ftp_pre_path" value="<?php print !empty($v_ftp_pre_path) ? htmlentities($v_ftp_pre_path) : '/'; ?>">
<input type="text" class="vst-input v-ftp-path" name="v_ftp_user[<?php print $i ?>][v_ftp_path]" <?php if (!empty($v_ftp_path)) echo "value=".htmlentities($v_ftp_path); ?>>
<br /><span class="ftp-path-prefix"><?php print $v_ftp_pre_path ?></span><span class="ftp-path-value v-ftp-path-hint"></span>
<input type="hidden" class="vst-input v-ftp-pre-path" name="v_ftp_pre_path" value="<?php print !empty($v_ftp_pre_path) ? htmlentities(trim($v_ftp_pre_path, "'")) : '/'; ?>">
<input type="text" class="vst-input v-ftp-path" name="v_ftp_user[<?php print $i ?>][v_ftp_path]" value=".htmlentities(trim($v_ftp_path, "'"))?>">
<br /><span class="ftp-path-prefix"><?=htmlentities(trim($v_ftp_pre_path, "'"))?></span><span class="ftp-path-value v-ftp-path-hint"></span>
</td>
</tr>
@ -310,7 +310,7 @@
</tr>
<tr>
<td class="step-left">
<input type="text" class="vst-input" name="v_ftp_user[<?php print $i ?>][v_ftp_email]" <?php if (!empty($v_ftp_email)) echo "value=".htmlentities($v_ftp_email); ?>>
<input type="text" class="vst-input" name="v_ftp_user[<?php print $i ?>][v_ftp_email]" value="<?=htmlentities(trim($v_ftp_email, "'"))?>">
</td>
</tr>
</table>
@ -319,17 +319,17 @@
</tr>
<tr>
<td class="vst-text step-top v-add-new-user step-bottom" style="display: none;">
<a class="additional-control" onClick="App.Actions.WEB.add_ftp_user_form()"><?php print __('Add one more FTP Account');?></a>
<a class="additional-control" onClick="App.Actions.WEB.add_ftp_user_form()"><?=__('Add one more FTP Account')?></a>
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="ok" value="<?php print __('Add');?>" class="button">
<input type="submit" name="ok" value="<?=__('Add')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>
@ -379,7 +379,7 @@
<td class="step-left">
<input type="hidden" class="vst-input v-ftp-pre-path" name="v_ftp_pre_path" value="">
<input type="text" class="vst-input v-ftp-path" name="v_ftp_user[%INDEX%][v_ftp_path]" value="">
<br /><span class="ftp-path-prefix"><?php print $v_ftp_pre_path_new_user ?></span><span class="ftp-path-value v-ftp-path-hint"></span>
<br /><span class="ftp-path-prefix"><?=htmlentities(trim($v_ftp_pre_path_new_user, "'")) ?></span><span class="ftp-path-value v-ftp-path-hint"></span>
</td>
</tr>
<tr>

View file

@ -50,7 +50,7 @@
</tr>
<tr>
<td>
<textarea class="vst-textinput" name="v_web" placeholder="<?php echo __('WEB_EXCLUSIONS') ?>"><?php if (isset($v_web)) echo htmlentities($v_web); ?></textarea>
<textarea class="vst-textinput" name="v_web" placeholder="<?php echo __('WEB_EXCLUSIONS') ?>"><?=htmlentities(trim($v_web, "'"))?></textarea>
</td>
</tr>
<tr>
@ -60,7 +60,7 @@
</tr>
<tr>
<td>
<textarea class="vst-textinput" name="v_mail" placeholder="<?php echo __('MAIL_EXCLUSIONS') ?>"><?php if (isset($v_mail)) echo htmlentities($v_mail); ?></textarea>
<textarea class="vst-textinput" name="v_mail" placeholder="<?php echo __('MAIL_EXCLUSIONS') ?>"><?=htmlentities(trim($v_mail, "'"))?></textarea>
</td>
</tr>
<tr>
@ -70,7 +70,7 @@
</tr>
<tr>
<td>
<textarea class="vst-textinput" name="v_db" placeholder="<?php echo __('DB_EXCLUSIONS') ?>"><?php if (isset($v_db)) echo htmlentities($v_db); ?></textarea>
<textarea class="vst-textinput" name="v_db" placeholder="<?php echo __('DB_EXCLUSIONS') ?>"><?=htmlentities(trim($v_db, "'"))?></textarea>
</td>
</tr>
<tr>
@ -80,17 +80,17 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_userdir" placeholder="<?php echo __('USER_EXCLUSIONS') ?>"><?php if (isset($v_userdir)) echo htmlentities($v_userdir); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_userdir" placeholder="<?php echo __('USER_EXCLUSIONS') ?>"><?=htmlentities(trim($v_userdir, "'"))?></textarea>
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -373,7 +373,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input long" name="v_cmd" <?php if (isset($v_cmd)) echo "value='".htmlentities($v_cmd)."'"; ?>>
<input type="text" size="20" class="vst-input long" name="v_cmd" value="<?=htmlentities(trim($v_cmd, "'"))?>">
</td>
</tr>
@ -384,7 +384,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input short" name="v_min" <?php if (isset($v_min)) echo "value=".htmlentities($v_min); ?>>
<input type="text" size="20" class="vst-input short" name="v_min" value="<?=htmlentities(trim($v_min, "'"))?>">
</td>
</tr>
<tr>
@ -394,7 +394,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input short" name="v_hour" <?php if (isset($v_hour)) echo "value=".htmlentities($v_hour); ?>>
<input type="text" size="20" class="vst-input short" name="v_hour" value="<?=htmlentities(trim($v_hour, "'"))?>">
</td>
</tr>
<tr>
@ -404,7 +404,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input short" name="v_day" <?php if (isset($v_day)) echo "value=".htmlentities($v_day); ?>>
<input type="text" size="20" class="vst-input short" name="v_day" value="<?=htmlentities(trim($v_day, "'"))?>">
</td>
</tr>
<tr>
@ -414,7 +414,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input short" name="v_month" <?php if (isset($v_month)) echo "value=".htmlentities($v_month); ?>>
<input type="text" size="20" class="vst-input short" name="v_month" value="<?=htmlentities(trim($v_month, "'"))?>">
</td>
</tr>
<tr>
@ -424,17 +424,17 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input short" name="v_wday" <?php if (isset($v_wday)) echo "value=".htmlentities($v_wday); ?>>
<input type="text" size="20" class="vst-input short" name="v_wday" value="<?=htmlentities(trim($v_wday, "'"))?>">
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -53,7 +53,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_database" <?php if (!empty($v_database)) echo "value=".htmlentities($v_database); ?> disabled>
<input type="text" size="20" class="vst-input" name="v_database" value="<?=htmlentities(trim($v_database, "'"))?>" disabled>
<small class="hint"></small>
</td>
</tr>
@ -64,18 +64,18 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_dbuser" <?php if (!empty($v_dbuser)) echo "value=".htmlentities($v_dbuser); ?>>
<input type="text" size="20" class="vst-input" name="v_dbuser" value="<?=htmlentities(trim($v_dbuser, "'"))?>">
<small class="hint"></small>
</td>
</tr>
<tr>
<td class="vst-text input-label">
<?php print __('Password');?> / <a href="javascript:randomString();" class="generate"><?php print __('generate');?></a>
<?php print __('Password');?> / <a href="javascript:randomString();" class="generate"><?=__('generate')?></a>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input password" name="v_password" <?php if (!empty($v_password)) echo "value=".htmlentities($v_password); ?>>
<input type="text" size="20" class="vst-input password" name="v_password" value="<?=htmlentities(trim($v_password, "'"))?>">
</td>
</tr>
<tr>
@ -85,7 +85,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_type" <?php if (!empty($v_type)) echo "value=".htmlentities($v_type); ?> disabled>
<input type="text" size="20" class="vst-input" name="v_type" value="<?=htmlentities(trim($v_type, "'"))?>" disabled>
</td>
</tr>
<tr>
@ -95,7 +95,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_host" <?php if (!empty($v_host)) echo "value=".htmlentities($v_host); ?> disabled>
<input type="text" size="20" class="vst-input" name="v_host" value="<?=htmlentities(trim($v_host, "'"))?>" disabled>
</td>
</tr>
<tr>
@ -105,17 +105,17 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_charset" <?php if (!empty($v_charset)) echo "value=".htmlentities($v_charset); ?> disabled>
<input type="text" size="20" class="vst-input" name="v_charset" value="<?=htmlentities(trim($v_charset, "'"))?>" disabled>
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -52,7 +52,8 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?>>
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>" disabled>
<input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
</td>
</tr>
<tr>
@ -62,7 +63,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?>>
<input type="text" size="20" class="vst-input" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">
</td>
</tr>
<tr>
@ -93,7 +94,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".htmlentities($v_exp); ?>>
<input type="text" size="20" class="vst-input" name="v_exp" value="<?=htmlentities(trim($v_exp, "'"))?>">
</td>
</tr>
<tr>
@ -103,7 +104,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_soa" <?php if (!empty($v_soa)) echo "value=".htmlentities($v_soa); ?>>
<input type="text" size="20" class="vst-input" name="v_soa" value="<?=htmlentities(trim($v_soa, "'"))?>">
</td>
</tr>
<tr>
@ -113,17 +114,17 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".htmlentities($v_ttl); ?>>
<input type="text" size="20" class="vst-input" name="v_ttl" value="<?=htmlentities(trim($v_ttl, "'"))?>">
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -22,7 +22,7 @@
<?php
$back = $_SESSION['back'];
if (empty($back)) {
$back = "location.href='/list/dns/?domain=".$_GET['domain']."'";
$back = "location.href='/list/dns/?domain=".htmlentities($_GET['domain'])."'";
} else {
$back = "location.href='".$back."'";
}
@ -40,20 +40,20 @@
<a class="data-date"><?=$v_time?></a>
</td>
</tr>
<tr><td class="data-<?php echo $v_status ?>"><b><?php echo __($v_status) ?></b></td></tr>
<tr><td class="data-<?php echo $v_status ?>"><b><?= __($v_status) ?></b></td></tr>
</table>
</td>
<td class="data-dotted">
<table class="data-col2">
<tr>
<td class="vst-text step-top">
<?php print __('Domain');?>
<?=__('Domain');?>
</td>
</tr>
<tr>
<td>
<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); ?>>
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>" disabled >
<input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
</td>
</tr>
<tr>
@ -63,7 +63,8 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_rec" <?php if (!empty($v_rec)) echo "value=".htmlentities($v_rec); ?> disabled> <input type="hidden" name="v_record_id" <?php if (!empty($v_record_id)) echo "value=".htmlentities($v_record_id); ?>>
<input type="text" size="20" class="vst-input" name="v_rec" value="<?=htmlentities(trim($v_rec, "'"))?>" disabled>
<input type="hidden" name="v_record_id" value="<?=htmlentities($v_record_id)?>">
</td>
</tr>
<tr>
@ -73,7 +74,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_type" <?php if (!empty($v_rec)) echo "value=".htmlentities($v_type); ?> disabled>
<input type="text" size="20" class="vst-input" name="v_type" value="<?=htmlentities(trim($v_type, "'"))?>" disabled>
</td>
</tr>
<tr>
@ -83,17 +84,17 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_val" <?php if (!empty($v_val)) echo "value='".htmlentities($v_val)."'"; ?>>
<input type="text" size="20" class="vst-input" name="v_val" value="<?=htmlentities(trim($v_val, "'"))?>">
</td>
</tr>
<tr>
<td class="vst-text input-label">
<?php print __('Priority');?> <span class="optional">(<?php print __('optional');?>)</span>
<?php print __('Priority');?> <span class="optional">(<?=__('optional');?>)</span>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_priority" <?php if (!empty($v_priority)) echo "value=".htmlentities($v_priority); ?>>
<input type="text" size="20" class="vst-input" name="v_priority" value="<?=htmlentities(trim($v_priority, "'"))?>">
</td>
</tr>
<tr>
@ -103,7 +104,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_record_id" <?php if (!empty($v_record_id)) echo "value=".htmlentities($v_record_id); ?>>
<input type="text" size="20" class="vst-input" name="v_record_id" value="<?=htmlentities(trim($v_record_id, "'"))?>">
</td>
</tr>
@ -111,10 +112,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -80,7 +80,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_port" <?php if (isset($v_port)) echo "value=".htmlentities($v_port); ?>>
<input type="text" size="20" class="vst-input" name="v_port" value="<?=htmlentities(trim($v_port, "'"))?>">
</td>
</tr>
<tr>
@ -90,7 +90,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?>>
<input type="text" size="20" class="vst-input" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">
</td>
</tr>
<tr>
@ -100,17 +100,17 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_comment" maxlength="255" <?php if (!empty($v_comment)) echo "value=".htmlentities($v_comment); ?>>
<input type="text" size="20" class="vst-input" name="v_comment" maxlength="255" value="<?=htmlentities(trim($v_comment, "'"))?>">
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -41,7 +41,7 @@
<a class="data-date"><?=$v_time?></a>
</td>
</tr>
<tr><td class="data-<?php echo $v_status ?>"><b><?php echo __($v_status) ?></b></td></tr>
<tr><td class="data-<?php echo $v_status ?>"><b><?=__($v_status)?></b></td></tr>
</table>
</td>
<td class="data-dotted">
@ -53,7 +53,8 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?> disabled> <input type="hidden" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?>>
<input type="text" size="20" class="vst-input" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>" disabled>
<input type="hidden" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">
</td>
</tr>
<tr>
@ -63,7 +64,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_netmask" <?php if (!empty($v_netmask)) echo "value=".htmlentities($v_netmask); ?> disabled>
<input type="text" size="20" class="vst-input" name="v_netmask" value="<?=htmlentities(trim($v_netmask, "'"))?>" disabled>
</td>
</tr>
<tr>
@ -73,12 +74,12 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_netmask" <?php if (!empty($v_interace)) echo "value=".htmlentities($v_interace); ?> disabled>
<input type="text" size="20" class="vst-input" name="v_netmask" value="<?=htmlentities(trim($v_interace, "'"))?>" disabled>
</td>
</tr>
<tr>
<td class="vst-text input-label">
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_shared" <?php if (empty($v_dedicated)) echo "checked=yes" ?> onclick="javascript:elementHideShow('usrtable');"> <?php print __('Shared');?></label>
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_shared" <?php if (empty($v_dedicated)) echo "checked=yes" ?> onclick="javascript:elementHideShow('usrtable');"> <?=__('Shared')?></label>
</td>
</tr>
<tr>
@ -112,7 +113,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_name" <?php if (!empty($v_name)) echo "value=".htmlentities($v_name); ?>>
<input type="text" size="20" class="vst-input" name="v_name" value="<?=htmlentities(trim($v_name, "'"))?>">
</td>
</tr>
<tr>
@ -122,7 +123,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_nat" <?php if (!empty($v_nat)) echo "value=".htmlentities($v_nat); ?>>
<input type="text" size="20" class="vst-input" name="v_nat" value="<?=htmlentities(trim($v_nat, "'"))?>">
</td>
</tr>
@ -130,10 +131,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -52,7 +52,8 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?>>
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>" disabled>
<input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
</td>
</tr>
<tr>
@ -77,17 +78,17 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_catchall" <?php if (!empty($v_catchall)) echo "value=".htmlentities($v_catchall); ?> >
<input type="text" size="20" class="vst-input" name="v_catchall" value="<?=htmlentities(trim($v_catchall, "'"))?>" >
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -53,19 +53,19 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_email" <?php if (!empty($v_account)) echo "value=".htmlentities($_GET['account'])."@".htmlentities($_GET['domain']); ?> disabled >
<input type="hidden" name="v_domain" <?php echo "value=".htmlentities($v_domain); ?>>
<input type="hidden" name="v_account" <?php if (!empty($v_account)) echo "value=".htmlentities($v_account); ?> >
<input type="text" size="20" class="vst-input" name="v_email" value="<?=htmlentities($_GET['account'])."@".htmlentities($_GET['domain'])?>" disabled >
<input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
<input type="hidden" name="v_account" value="<?=htmlentities(trim($v_account, "'"))?>">
</td>
</tr>
<tr>
<td class="vst-text input-type input-label">
<?php print __('Password');?> / <a href="javascript:randomString();" class="generate"><?php print __('generate');?></a>
<?php print __('Password');?> / <a href="javascript:randomString();" class="generate"><?=__('generate')?></a>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input password" name="v_password" <?php if (!empty($v_password)) echo "value=".htmlentities($v_password); ?>
<input type="text" size="20" class="vst-input password" name="v_password" value="<?=htmlentities($v_password)?>">
</td>
</tr>
<tr>
@ -75,7 +75,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_quota" <?php if (!empty($v_quota)) {echo "value=".htmlentities($v_quota);} else { echo "value=0";}; ?>>
<input type="text" size="20" class="vst-input" name="v_quota" value="<? if (!empty($v_quota)) {echo htmlentities(trim($v_quota, "'"));} else { echo "0"; } ?>">
<img class="unlim-trigger" id="unlim-quota" src="/images/unlim.png" />
</td>
</tr>
@ -86,7 +86,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput short" name="v_aliases"><?php if (!empty($v_aliases)) echo htmlentities($v_aliases); ?></textarea>
<textarea size="20" class="vst-textinput short" name="v_aliases"><?=htmlentities(trim($v_aliases, "'"))?></textarea>
</td>
</tr>
<tr>
@ -96,7 +96,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_fwd"><?php if (!empty($v_fwd)) echo htmlentities($v_fwd); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_fwd"><?=htmlentities(trim($v_fwd, "'"))?></textarea>
</td>
</tr>
<tr>
@ -109,9 +109,9 @@
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_autoreply" <?php if ($v_autoreply == 'yes') echo "checked=yes" ?> onclick="javascript:elementHideShow('autoreplytable');"> <?php print __('Autoreply');?></label>
</td>
</tr>
<tr>
<tr>%20autofocuse=true%20onFocus=%27alert%28123%29%27%20x=%27%20autofocuse=true%20onFocus=%27alert%28123%29%27%20x=%27
<td class="step-left">
<table style="display:<?php if ($v_autoreply == 'no') { echo 'none';} else {echo 'block';}?> ;" id="autoreplytable">
<table style="display:<?php if ($v_autoreply == 'yes') { echo 'block';} else {echo 'none';}?> ;" id="autoreplytable">
<tr>
<td class="vst-text" style="padding: 12px 0 0 0;">
<?php print __('Message');?>
@ -119,7 +119,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_autoreply_message"><?php if (!empty($v_autoreply_message)) echo htmlentities($v_autoreply_message); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_autoreply_message"><?=htmlentities(trim($v_autoreply_message, "'"))?></textarea>
</td>
</tr>
</table>
@ -129,15 +129,14 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" name="save" value="<?php print __('Save');?>" class="button">
<input type="submit" name="save" value="<?=__('Save')?>" class="button">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>
</td>
<td class="mail-infoblock-td">
<div class="mail-infoblock">
<table>
@ -149,13 +148,13 @@
<option v_type="hostname" domain="<?=$v_domain?>"><?=__('Use domain hostname')?></option>
<option v_type="starttls"><?=__('Use STARTTLS')?></option>
<option v_type="ssl"><?=__('Use SSL')?></option>
<option v_type="no_encryption" domain="<?=$v_domain?>" no_encryption="<?=__('No encryption')?>"><?=__('No encryption')?></option>
<option v_type="no_encryption" domain="<?=htmlentities(trim($v_domain, "'"))?>" encryption="<?=__('No encryption')?>"><?=__('No encryption')?></option>
</select>
</td>
</tr>
<tr>
<td><?=__('Username')?>:</td>
<td><div><span id="v_account">william.cage</span>@<?=htmlentities($v_domain)?></div></td>
<td><div><span id="v_account">william.cage</span>@<?=htmlentities(trim($v_domain, "'"))?></div></td>
</tr>
<tr>
<td><?=__('Password')?>:</td>

View file

@ -47,8 +47,8 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_package" <?php if (!empty($v_package)) echo "value=".htmlentities($v_package); ?> disabled >
<input type="hidden" name="v_package" <?php if (!empty($v_package)) echo "value=".htmlentities($v_package); ?>>
<input type="text" size="20" class="vst-input" name="v_package" value="<?=htmlentities(trim($v_package, "'"))?>" disabled >
<input type="hidden" name="v_package" value="<?=htmlentities(trim($v_package, "'"))?>">
</td>
</tr>
<tr>
@ -177,7 +177,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_web_domains" <?php if (isset($v_web_domains)) echo "value=".htmlentities($v_web_domains); ?>>
<input type="text" size="20" class="vst-input" name="v_web_domains" value="<?=htmlentities(trim($v_web_domains, "'"))?>">
<img class="unlim-trigger" id="unlim-web-domains" src="/images/unlim.png" />
</td>
</tr>
@ -188,7 +188,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_web_aliases" <?php if (isset($v_web_aliases)) echo "value=".htmlentities($v_web_aliases); ?>>
<input type="text" size="20" class="vst-input" name="v_web_aliases" value="<?=htmlentities(trim($v_web_aliases, "'"))?>">
<img id="unlim-web-aliases" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -199,7 +199,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_dns_domains" <?php if (isset($v_dns_domains)) echo "value=".htmlentities($v_dns_domains); ?>>
<input type="text" size="20" class="vst-input" name="v_dns_domains" value="<?=htmlentities(trim($v_dns_domains, "'"))?>">
<img id="unlim-dns-domain" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -210,7 +210,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_dns_records" <?php if (isset($v_dns_records)) echo "value=".htmlentities($v_dns_records); ?>>
<input type="text" size="20" class="vst-input" name="v_dns_records" value="<?=htmlentities(trim($v_dns_records, "'"))?>">
<img id="unlim-dns-records" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -221,7 +221,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_mail_domains" <?php if (isset($v_mail_domains)) echo "value=".htmlentities($v_mail_domains); ?>>
<input type="text" size="20" class="vst-input" name="v_mail_domains" value="<?=htmlentities(trim($v_mail_domains, "'"))?>">
<img id="unlim-mail-domains" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -232,7 +232,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_mail_accounts" <?php if (isset($v_mail_accounts)) echo "value=".htmlentities($v_mail_accounts); ?>>
<input type="text" size="20" class="vst-input" name="v_mail_accounts" value="<?=htmlentities(trim($v_mail_accounts, "'"))?>">
<img id="unlim-mail-accounts" class="unlim-trigger" src="/images/unlim.png" />
<td>
</tr>
@ -243,7 +243,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_databases" <?php if (isset($v_databases)) echo "value=".htmlentities($v_databases); ?>>
<input type="text" size="20" class="vst-input" name="v_databases" value="<?=htmlentities(trim($v_databases, "'"))?>">
<img id="unlim-databases" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -254,7 +254,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_cron_jobs" <?php if (isset($v_cron_jobs)) echo "value=".htmlentities($v_cron_jobs); ?>>
<input type="text" size="20" class="vst-input" name="v_cron_jobs" value="<?=htmlentities(trim($v_cron_jobs, "'"))?>">
<img id="unlim-cron-jobs" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -265,7 +265,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_backups" <?php if (isset($v_backups)) echo "value=".htmlentities($v_backups); ?>>
<input type="text" size="20" class="vst-input" name="v_backups" value="<?=htmlentities(trim($v_backups, "'"))?>">
</td>
</tr>
<tr>
@ -275,7 +275,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_disk_quota" <?php if (isset($v_disk_quota)) echo "value=".htmlentities($v_disk_quota); ?>>
<input type="text" size="20" class="vst-input" name="v_disk_quota" value="<?=htmlentities(trim($v_disk_quota, "'"))?>">
<img id="unlim-disk-quota" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -286,7 +286,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_bandwidth" <?php if (isset($v_bandwidth)) echo "value=".htmlentities($v_bandwidth); ?>>
<input type="text" size="20" class="vst-input" name="v_bandwidth" value="<?=htmlentities(trim($v_bandwidth, "'"))?>">
<img name="unlim-bandwidth" class="unlim-trigger" src="/images/unlim.png" />
</td>
</tr>
@ -297,13 +297,13 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns1" <?php if (!empty($v_ns1)) echo "value=".htmlentities($v_ns1); ?>>
<input type="text" size="20" class="vst-input" name="v_ns1" value="<?=htmlentities(trim($v_ns1, "'"))?>">
<span class="remove-ns additional-control delete"><?=__('delete')?></span>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns2" <?php if (!empty($v_ns2)) echo "value=".htmlentities($v_ns2); ?>>
<input type="text" size="20" class="vst-input" name="v_ns2" value="<?=htmlentities(trim($v_ns2, "'"))?>">
<span class="remove-ns additional-control delete"><?=__('delete')?></span>
</td>
</tr>
@ -311,7 +311,7 @@
<? if($v_ns3)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities($v_ns3).'">
<input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities(trim($v_ns3, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -319,7 +319,7 @@
if($v_ns4)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities($v_ns4).'">
<input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities(trim($v_ns4, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -327,7 +327,7 @@
if($v_ns5)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities($v_ns5).'">
<input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities(trim($v_ns5, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -335,7 +335,7 @@
if($v_ns6)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities($v_ns6).'">
<input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities(trim($v_ns6, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -343,7 +343,7 @@
if($v_ns7)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities($v_ns7).'">
<input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities(trim($v_ns7, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -351,7 +351,7 @@
if($v_ns8)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities($v_ns8).'">
<input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities(trim($v_ns8, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -367,10 +367,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -48,7 +48,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_hostname" <?php if (!empty($v_hostname)) echo "value=".$v_hostname; ?>>
<input type="text" size="20" class="vst-input" name="v_hostname" value="<?=htmlentities(trim($v_hostname, "'"))?>">
<br><br>
</td>
</tr>
@ -499,7 +499,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_backup_dir" <?php if (!empty($v_backup_dir)) echo "value=".$v_backup_dir; ?>>
<input type="text" size="20" class="vst-input" name="v_backup_dir" value="<?=trim($v_backup_dir, "'")?>">
<br><br>
</td>
</tr> <tr>
@ -532,7 +532,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_backup_host" <?php if (!empty($v_backup_host)) echo "value=".$v_backup_host; ?>>
<input type="text" size="20" class="vst-input" name="v_backup_host" value="<?=trim($v_backup_host, "'")?>">
<br><br>
</td>
</tr>
@ -543,7 +543,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_backup_username" <?php if (!empty($v_backup_username)) echo "value=".$v_backup_username; ?>>
<input type="text" size="20" class="vst-input" name="v_backup_username" value="<?=trim($v_backup_username, "'")?>">
<br><br>
</td>
</tr>
@ -554,7 +554,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_backup_password" <?php if (!empty($v_backup_password)) echo "value=".$v_backup_password; ?>>
<input type="text" size="20" class="vst-input" name="v_backup_password" value="<?=trim($v_backup_password, "'")?>">
<br><br>
</td>
</tr>
@ -565,7 +565,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_backup_bpath" <?php if (!empty($v_backup_bpath)) echo "value=".$v_backup_bpath; ?>>
<input type="text" size="20" class="vst-input" name="v_backup_bpath" value="<?=trim($v_backup_bpath, "'")?>">
<br><br>
</td>
</tr>
@ -593,7 +593,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_ssl_crt"><?php if (!empty($v_ssl_crt)) echo htmlentities($v_ssl_crt); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_ssl_crt"><?=htmlentities(trim($v_ssl_crt, "'"))?></textarea>
</td>
</tr>
<tr>
@ -603,7 +603,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_ssl_key"><?php if (!empty($v_ssl_key)) echo htmlentities($v_ssl_key); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_ssl_key"><?=htmlentities(trim($v_ssl_key, "'"))?></textarea>
</td>
</tr>
<tr>
@ -776,7 +776,7 @@
$licence_key = $_GET['sftp_licence_key'] != '' ? $_GET['sftp_licence_key'] : $_SESSION['SFTPJAIL_KEY'];
echo __('Restrict users so that they cannot use SSH and access only their home directory.').'
<div class="licence">
'.__('Licence Key').': <input type="text" class="vst-input" name="v_sftp_licence" value="'.$licence_key.'" /><br>
'.__('Licence Key').': <input type="text" class="vst-input" name="v_sftp_licence" value="'.htmlentities($licence_key).'" /><br>
</div>';
} else {
echo
@ -824,7 +824,7 @@
$licence_key = $_GET['filemanager_licence_key'] != '' ? $_GET['filemanager_licence_key'] : $_SESSION['FILEMANAGER_KEY'];
echo __('Browse, copy, edit, view, and retrieve all of your web domain files using fully featured File Manager.').
'<div class="licence">
'.__('Licence Key').': <input type="text" class="vst-input" name="v_filemanager_licence" value="'.$licence_key.'" /><br>
'.__('Licence Key').': <input type="text" class="vst-input" name="v_filemanager_licence" value="'.htmlentities($licence_key).'" /><br>
</div>';
} else {
echo __('Browse, copy, edit, view, and retrieve all of your web domain files using fully featured File Manager.').' '.
@ -855,10 +855,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -57,17 +57,17 @@
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_options"><?php echo $v_options;?></textarea>
<textarea class="vst-textinput console" name="v_options"><?=$v_options?></textarea>
</td>
</tr>
<tr>
<td class="vst-text step-top">
<?php print $v_config_path ?>
<?=$v_config_path?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
<textarea class="vst-textinput console" name="v_config"><?=$v_config?></textarea>
</td>
</tr>
<td class="vst-text input-label" style="text-transform: capitalize;">
@ -78,10 +78,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -51,12 +51,12 @@
<table class="data-col2" width="600px">
<tr>
<td class="vst-text step-top">
<?php print $v_config_path ?>
<?=$v_config_path ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
<textarea class="vst-textinput console" name="v_config"><?=$v_config?></textarea>
</td>
</tr>
<?php if (!empty($v_config_path1)) {
@ -64,84 +64,84 @@
<tr>
<td class="vst-text step-top">
<?php print $v_config_path1 ?>
<?=$v_config_path1 ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config1"><?php echo $v_config1;?></textarea>
<textarea class="vst-textinput console" name="v_config1"><?=$v_config1?></textarea>
</td>
</tr>
<tr>
<td class="vst-text step-top">
<?php print $v_config_path2 ?>
<?=$v_config_path2?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config2"><?php echo $v_config2;?></textarea>
<textarea class="vst-textinput console" name="v_config2"><?=$v_config2?></textarea>
</td>
</tr>
<tr>
<td class="vst-text step-top">
<?php print $v_config_path3 ?>
<?=$v_config_path3 ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config3"><?php echo $v_config3;?></textarea>
<textarea class="vst-textinput console" name="v_config3"><?=$v_config3?></textarea>
</td>
</tr>
<tr>
<td class="vst-text step-top">
<?php print $v_config_path4 ?>
<?=$v_config_path4 ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config4"><?php echo $v_config4;?></textarea>
<textarea class="vst-textinput console" name="v_config4"><?=$v_config4?></textarea>
</td>
</tr>
<tr>
<td class="vst-text step-top">
<?php print $v_config_path5 ?>
<?=$v_config_path5 ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config5"><?php echo $v_config5;?></textarea>
<textarea class="vst-textinput console" name="v_config5"><?=$v_config5?></textarea>
</td>
</tr>
<tr>
<td class="vst-text step-top">
<?php print $v_config_path6 ?>
<?=$v_config_path6 ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config6"><?php echo $v_config6;?></textarea>
<textarea class="vst-textinput console" name="v_config6"><?=$v_config6?></textarea>
</td>
</tr>
<tr>
<td class="vst-text step-top">
<?php print $v_config_path7 ?>
<?=$v_config_path7 ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config7"><?php echo $v_config7;?></textarea>
<textarea class="vst-textinput console" name="v_config7"><?=$v_config7?></textarea>
</td>
</tr>
<tr>
<td class="vst-text step-top">
<?php print $v_config_path8 ?>
<?=$v_config_path8 ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config8"><?php echo $v_config8;?></textarea>
<textarea class="vst-textinput console" name="v_config8"><?=$v_config8?></textarea>
</td>
</tr>
@ -157,10 +157,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -57,7 +57,7 @@
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
<textarea class="vst-textinput console" name="v_config"><?=$v_config?></textarea>
</td>
</tr>
<tr>
@ -72,10 +72,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -122,12 +122,12 @@
<tr>
<td class="vst-text step-top">
<?php print $v_config_path ?>
<?=$v_config_path?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
<textarea class="vst-textinput console" name="v_config"><?=$v_config?></textarea>
</td>
</tr>
<tr>
@ -141,10 +141,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -179,12 +179,12 @@
<tr>
<td class="vst-text step-top">
<?php print $v_config_path ?>
<?=$v_config_path ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
<textarea class="vst-textinput console" name="v_config"><?=$v_config?></textarea>
</td>
</tr>
<tr>
@ -199,10 +199,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back');?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -51,22 +51,22 @@
<table class="data-col2" width="600px">
<tr>
<td class="vst-text step-top">
<?php print $v_options_path ?>
<?=$v_options_path ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_options"><?php echo $v_options;?></textarea>
<textarea class="vst-textinput console" name="v_options"><?=$v_options?></textarea>
</td>
</tr>
<tr>
<td class="vst-text step-top">
<?php print $v_config_path ?>
<?=$v_config_path ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
<textarea class="vst-textinput console" name="v_config"><?=$v_config?></textarea>
</td>
</tr>
<td class="vst-text input-label" style="text-transform: capitalize;">
@ -78,10 +78,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -145,12 +145,12 @@
<tr>
<td class="vst-text step-top">
<?php print $v_config_path ?>
<?=$v_config_path ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
<textarea class="vst-textinput console" name="v_config"><?=$v_config?></textarea>
</td>
</tr>
<td class="vst-text input-label" style="text-transform: capitalize;">
@ -161,10 +161,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -51,12 +51,12 @@
<table class="data-col2" width="600px">
<tr>
<td class="vst-text step-top">
<?php print $v_config_path ?>
<?=$v_config_path ?>
</td>
</tr>
<tr>
<td>
<textarea class="vst-textinput console" name="v_config"><?php echo $v_config;?></textarea>
<textarea class="vst-textinput console" name="v_config"><?=$v_config?></textarea>
</td>
</tr>
<tr>
@ -70,10 +70,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -41,7 +41,7 @@
<a class="data-date"><?=$v_time?></a>
</td>
</tr>
<tr><td class="data-<?php echo $v_status ?>"><b><?php echo __($v_status); ?></b></td></tr>
<tr><td class="data-<?=$v_status ?>"><b><?php echo __($v_status); ?></b></td></tr>
</table>
</td>
<td class="data-dotted">
@ -53,7 +53,8 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_user" <?php if (!empty($v_username)) echo "value=".htmlentities($v_username); ?> disabled> <input type="hidden" name="v_username" <?php if (!empty($v_username)) echo "value=".htmlentities($v_username); ?>>
<input type="text" size="20" class="vst-input" name="v_user" value="<?=htmlentities(trim($v_username, "'"))?>" disabled>
<input type="hidden" name="v_username" value="<?=htmlentities(trim($v_username, "'"))?>">
</td>
</tr>
<tr>
@ -63,7 +64,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input password" name="v_password" <?php if (!empty($v_password)) echo "value=".htmlentities($v_password); ?>>
<input type="text" size="20" class="vst-input password" name="v_password" value="<?=htmlentities($v_password)?>">
</td>
</tr>
<tr>
@ -73,7 +74,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_email" <?php if (!empty($v_email)) echo "value=".htmlentities($v_email); ?>>
<input type="text" size="20" class="vst-input" name="v_email" value="<?=htmlentities(trim($v_email, "'"))?>">
</td>
</tr>
<tr>
@ -128,7 +129,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_fname" <?php if (!empty($v_fname)) echo "value=\"".htmlentities($v_fname)."\""; ?>>
<input type="text" size="20" class="vst-input" name="v_fname" value="<?=htmlentities(trim($v_fname, "'"))?>">
</td>
</tr>
<tr>
@ -138,7 +139,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_lname" <?php if (!empty($v_lname)) echo "value=\"".htmlentities($v_lname)."\""; ?>>
<input type="text" size="20" class="vst-input" name="v_lname" value="<?=htmlentities(trim($v_lname, "'"))?>">
</td>
</tr>
<tr>
@ -169,20 +170,20 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns1" <?php if (!empty($v_ns1)) echo 'value="'.htmlentities($v_ns1).'"'; ?>>
<input type="text" size="20" class="vst-input" name="v_ns1" value="<?=htmlentities(trim($v_ns1, "'"))?>">
<span class="remove-ns additional-control delete"><?=__('delete')?></span>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns2" <?php if (!empty($v_ns2)) echo 'value="'.htmlentities($v_ns2).'"'; ?>>
<input type="text" size="20" class="vst-input" name="v_ns2" value="<?=htmlentities(trim($v_ns2, "'"))?>">
<span class="remove-ns additional-control delete"><?=__('delete')?></span>
</td>
</tr>
<? if($v_ns3)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities($v_ns3).'">
<input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities(trim($v_ns3, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -190,7 +191,7 @@
if($v_ns4)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities($v_ns4).'">
<input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities(trim($v_ns4, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -198,7 +199,7 @@
if($v_ns5)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities($v_ns5).'">
<input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities(trim($v_ns5, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -206,7 +207,7 @@
if($v_ns6)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities($v_ns6).'">
<input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities(trim($v_ns6, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -214,7 +215,7 @@
if($v_ns7)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities($v_ns7).'">
<input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities(trim($v_ns7, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -222,7 +223,7 @@
if($v_ns8)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities($v_ns8).'">
<input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities(trim($v_ns8, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -239,10 +240,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -41,7 +41,7 @@
<a class="data-date"><?=$v_time?></a>
</td>
</tr>
<tr><td class="data-<?php echo $v_status ?>"><b><?php echo __($v_status) ?></b></td></tr>
<tr><td class="data-<?=$v_status ?>"><b><?=__($v_status) ?></b></td></tr>
</table>
</td>
<td class="data-dotted">
@ -53,7 +53,8 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?>>
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>" disabled>
<input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
</td>
</tr>
<tr>
@ -81,7 +82,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo htmlentities($v_aliases); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_aliases"><?=htmlentities(trim($v_aliases, "'"))?></textarea>
</td>
</tr>
<tr>
@ -171,7 +172,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_proxy_ext"><?php if (!empty($v_proxy_ext)) { echo htmlentities($v_proxy_ext);} else { echo 'jpg, jpeg, gif, png, ico, svg, css, zip, tgz, gz, rar, bz2, exe, pdf, doc, xls, ppt, txt, odt, ods, odp, odf, tar, bmp, rtf, js, mp3, avi, mpeg, flv, html, htm'; } ?></textarea>
<textarea size="20" class="vst-textinput" name="v_proxy_ext"><?php if (!empty($v_proxy_ext)) { echo htmlentities(trim($v_proxy_ext, "'"));} else { echo 'jpg, jpeg, gif, png, ico, svg, css, zip, tgz, gz, rar, bz2, exe, pdf, doc, xls, ppt, txt, odt, ods, odp, odf, tar, bmp, rtf, js, mp3, avi, mpeg, flv, html, htm'; } ?></textarea>
</td>
</tr>
</table>
@ -212,12 +213,12 @@
<tr>
<td class="vst-text input-label">
<?php print __('SSL Certificate');?>
<span id="generate-csr"> / <a class="generate" target="_blank" href="/generate/ssl/?domain=<?php echo $v_domain ?>"><?php print __('Generate CSR') ?></a></span>
<span id="generate-csr"> / <a class="generate" target="_blank" href="/generate/ssl/?domain=<?=$v_domain?>"><?=__('Generate CSR')?></a></span>
</td>
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_ssl_crt"><?php if (!empty($v_ssl_crt)) echo htmlentities($v_ssl_crt); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_ssl_crt"><?=htmlentities(trim($v_ssl_crt, "'"))?></textarea>
</td>
</tr>
<tr>
@ -227,7 +228,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_ssl_key"><?php if (!empty($v_ssl_key)) echo htmlentities($v_ssl_key); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_ssl_key"><?=htmlentities(trim($v_ssl_key, "'"))?></textarea>
</td>
</tr>
<tr>
@ -237,7 +238,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_ssl_ca"><?php if (!empty($v_ssl_ca)) echo htmlentities($v_ssl_ca); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_ssl_ca"><?=htmlentities(trim($v_ssl_ca, "'"))?></textarea>
</td>
</tr>
<?
@ -347,7 +348,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_stats_user" <?php if (!empty($v_stats_user)) echo "value=".htmlentities($v_stats_user); ?>>
<input type="text" size="20" class="vst-input" name="v_stats_user" value="<?=htmlentities(trim($v_stats_user, "'"))?>">
</td>
</tr>
<tr>
@ -357,7 +358,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input password" name="v_stats_password" <?php if (!empty($v_stats_password)) echo "value=".htmlentities($v_stats_password); ?> id="v_password">
<input type="text" size="20" class="vst-input password" name="v_stats_password" value="<?=htmlentities(trim($v_stats_password, "'"))?>" id="v_password">
</td>
</tr>
</table>
@ -395,7 +396,8 @@
</tr>
<tr>
<td class="step-left">
<input type="text" size="20" class="vst-input v-ftp-user" <?php print $ftp_user['is_new'] != 1 ? 'disabled="disabled"' : '' ?> name="v_ftp_user[<?php print $i ?>][v_ftp_user]" <?php if (!empty($v_ftp_user)) echo "value=".htmlentities($v_ftp_user); ?>>
<input type="text" size="20" class="vst-input v-ftp-user" <?php print $ftp_user['is_new'] != 1 ? 'disabled="disabled"' : '' ?>
name="v_ftp_user[<?php print $i ?>][v_ftp_user]" value="<?=htmlentities(trim($v_ftp_user, "'"))?>">
<small class="hint"></small>
</td>
</tr>
@ -406,7 +408,7 @@
</tr>
<tr>
<td class="step-left">
<input type="text" class="vst-input v-ftp-user-psw password" name="v_ftp_user[<?php print $i ?>][v_ftp_password]" <?php if (!empty($v_ftp_password)) echo "value=".htmlentities($v_ftp_password); ?>>
<input type="text" class="vst-input v-ftp-user-psw password" name="v_ftp_user[<?php print $i ?>][v_ftp_password]" value="<?=htmlentities(trim($v_ftp_password, "'"))?>">
</td>
</tr>
@ -417,10 +419,10 @@
</tr>
<tr>
<td class="step-left">
<input type="hidden" class="vst-input v-ftp-pre-path" name="v_ftp_pre_path" value="<?php print !empty($v_ftp_pre_path) ? htmlentities($v_ftp_pre_path) : '/'; ?>">
<input type="hidden" class="vst-input v-ftp-path" name="v_ftp_user[<?php print $i ?>][v_ftp_path_prev]" <?php if (!empty($v_ftp_path)) echo "value=".($v_ftp_path[0] != '/' ? '/' : '').htmlentities($v_ftp_path); ?>>
<input type="text" class="vst-input v-ftp-path" name="v_ftp_user[<?php print $i ?>][v_ftp_path]" <?php if (!empty($v_ftp_path)) echo "value=".($v_ftp_path[0] != '/' ? '/' : '').htmlentities($v_ftp_path); ?>>
<br /><span class="ftp-path-prefix"><?php print $v_ftp_pre_path ?></span><span class="ftp-path-value v-ftp-path-hint"></span>
<input type="hidden" class="vst-input v-ftp-pre-path" name="v_ftp_pre_path" value="<?php print !empty($v_ftp_pre_path) ? htmlentities(trim($v_ftp_pre_path, "'")) : '/'; ?>">
<input type="hidden" class="vst-input v-ftp-path" name="v_ftp_user[<?php print $i ?>][v_ftp_path_prev]" value="<?php if (!empty($v_ftp_path)) echo ($v_ftp_path[0] != '/' ? '/' : '').htmlentities(trim($v_ftp_path, "'")) ?>">
<input type="text" class="vst-input v-ftp-path" name="v_ftp_user[<?php print $i ?>][v_ftp_path]" value="<?php if (!empty($v_ftp_path)) echo ($v_ftp_path[0] != '/' ? '/' : '').htmlentities(trim($v_ftp_path, "'")); ?>">
<br /><span class="ftp-path-prefix"><?=htmlentities(trim($v_ftp_pre_path, "'"))?></span><span class="ftp-path-value v-ftp-path-hint"></span>
</td>
</tr>
<?php if ($ftp_user['is_new'] == 1): ?>
@ -431,7 +433,7 @@
</tr>
<tr>
<td class="step-left">
<input type="text" class="vst-input vst-email-alert-on-psw" name="v_ftp_user[<?php print $i ?>][v_ftp_email]" <?php if (!empty($v_ftp_email)) echo "value=".htmlentities($v_ftp_email); ?>>
<input type="text" class="vst-input vst-email-alert-on-psw" name="v_ftp_user[<?php print $i ?>][v_ftp_email]" value="<?=htmlentities(trim($v_ftp_email, "'"))?>">
</td>
</tr>
<?php endif; ?>
@ -449,10 +451,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>
@ -502,7 +504,7 @@
<td class="step-left">
<input type="hidden" class="vst-input v-ftp-pre-path" name="v_ftp_pre_path" value="">
<input type="text" class="vst-input v-ftp-path" name="v_ftp_user[%INDEX%][v_ftp_path]" value="">
<br /><span class="ftp-path-prefix"><?php print $v_ftp_pre_path_new_user ?></span><span class="ftp-path-value v-ftp-path-hint"></span>
<br /><span class="ftp-path-prefix"><?=htmlentities(trim($v_ftp_pre_path_new_user, "'"))?></span><span class="ftp-path-value v-ftp-path-hint"></span>
</td>
</tr>
<tr>

View file

@ -112,10 +112,10 @@
<table class="data-col2">
<tr>
<td style="padding: 24px 0 0 0;" width="116px">
<input type="submit" class="button" name="generate" value="<?php print __('Ok');?>">
<input type="submit" class="button" name="generate" value="<?=__('Ok')?>">
</td>
<td style="padding: 24px 0 0 0;">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -21,10 +21,10 @@
<a href="/" class="l-logo"></a>
<!-- /.l-logo -->
<div class="l-menu clearfix">
<div class="l-menu__item <?php if($_GET['type'] == 'access') echo 'l-menu__item--active' ?>"><a href="/list/web-log/?domain=<?=$_GET['domain']?>&type=access"><?=__('AccessLog')?></a></div>
<div class="l-menu__item <?php if($_GET['type'] == 'error') echo 'l-menu__item--active' ?>"><a href="/list/web-log/?domain=<?=$_GET['domain']?>&type=error"><?=__('ErrorLog')?></a></div>
<div class="l-menu__item"><a href="/download/web-log/?domain=<?=$_GET['domain']?>&type=access"><?=__('Download AccessLog')?></a></div>
<div class="l-menu__item"><a href="/download/web-log/?domain=<?=$_GET['domain']?>&type=error"><?=__('Download ErrorLog')?></a></div>
<div class="l-menu__item <?php if($_GET['type'] == 'access') echo 'l-menu__item--active' ?>"><a href="/list/web-log/?domain=<?=htmlentities($_GET['domain'])?>&type=access"><?=__('AccessLog')?></a></div>
<div class="l-menu__item <?php if($_GET['type'] == 'error') echo 'l-menu__item--active' ?>"><a href="/list/web-log/?domain=<?=htmlentities($_GET['domain'])?>&type=error"><?=__('ErrorLog')?></a></div>
<div class="l-menu__item"><a href="/download/web-log/?domain=<?=htmlentities($_GET['domain'])?>&type=access"><?=__('Download AccessLog')?></a></div>
<div class="l-menu__item"><a href="/download/web-log/?domain=<?=htmlentities($_GET['domain'])?>&type=error"><?=__('Download ErrorLog')?></a></div>
</div>
<!-- /.l-menu -->
<div class="l-profile">
@ -36,5 +36,5 @@
</div>
<!-- /.l-header -->
<div style="color: #ff6701; padding: 10px 0 20px 20px; background: #fff; "><?php echo __('Last 70 lines of %s.%s.log',$_GET['domain'],$_GET['type']) ;?></div>
<div style="color: #ff6701; padding: 10px 0 20px 20px; background: #fff; "><?php echo __('Last 70 lines of %s.%s.log',htmlentities($_GET['domain']),htmlentities($_GET['type'])) ;?></div>
<pre style="margin-left: 20px; color: #555; font-family: arial; font-size: 14px; line-height: 30px;">

View file

@ -40,7 +40,7 @@
<a class="data-date"><?=$v_time?></a>
</td>
</tr>
<tr><td class="data-<?php echo $v_status ?>"><b><?php echo __($v_status) ?></b></td></tr>
<tr><td class="data-<?=$v_status?>"><b><?=__($v_status)?></b></td></tr>
</table>
</td>
<td class="data-dotted">
@ -52,7 +52,8 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?>>
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>" disabled>
<input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
</td>
</tr>
<tr>
@ -62,7 +63,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?>>
<input type="text" size="20" class="vst-input" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>">
</td>
</tr>
<tr>
@ -72,7 +73,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".htmlentities($v_exp); ?>>
<input type="text" size="20" class="vst-input" name="v_exp" value="<?=htmlentities(trim($v_exp, "'"))?>">
</td>
</tr>
<tr>
@ -82,7 +83,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_soa" <?php if (!empty($v_soa)) echo "value=".htmlentities($v_soa); ?>>
<input type="text" size="20" class="vst-input" name="v_soa" value="<?=htmlentities(trim($v_soa, "'"))?>">
</td>
</tr>
<tr>
@ -92,17 +93,17 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".htmlentities($v_ttl); ?>>
<input type="text" size="20" class="vst-input" name="v_ttl" value="<?=htmlentities(trim($v_ttl, "'"))?>">
</td>
</tr>
</table>
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -41,7 +41,7 @@
<a class="data-date"><?=$v_time?></a>
</td>
</tr>
<tr><td class="data-<?php echo $v_status ?>"><b><?php echo __($v_status); ?></b></td></tr>
<tr><td class="data-<?=$v_status?>"><b><?=__($v_status)?></b></td></tr>
</table>
</td>
<td class="data-dotted">
@ -53,7 +53,8 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_user" <?php if (!empty($v_username)) echo "value=".htmlentities($v_username); ?> disabled> <input type="hidden" name="v_username" <?php if (!empty($v_username)) echo "value=".htmlentities($v_username); ?>>
<input type="text" size="20" class="vst-input" name="v_user" value="<?=htmlentities(trim($v_username, "'"))?>" disabled>
<input type="hidden" name="v_username" value="<?=htmlentities(trim($v_username, "'"))?>">
</td>
</tr>
<tr>
@ -63,7 +64,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input password" name="v_password" <?php if (!empty($v_password)) echo "value=".htmlentities($v_password); ?>>
<input type="text" size="20" class="vst-input password" name="v_password" value="<?=htmlentities(trim($v_password, "'"))?>">
</td>
</tr>
<tr>
@ -73,7 +74,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_email" <?php if (!empty($v_email)) echo "value=".htmlentities($v_email); ?>>
<input type="text" size="20" class="vst-input" name="v_email" value="<?=htmlentities(trim($v_email, "'"))?>">
</td>
</tr>
<tr>
@ -107,7 +108,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_fname" <?php if (!empty($v_fname)) echo "value=\"".htmlentities($v_fname)."\""; ?>>
<input type="text" size="20" class="vst-input" name="v_fname" value="<?=htmlentities(trim($v_fname, "'"))?>">
</td>
</tr>
<tr>
@ -117,7 +118,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_lname" <?php if (!empty($v_lname)) echo "value=\"".htmlentities($v_lname)."\""; ?>>
<input type="text" size="20" class="vst-input" name="v_lname" value="<?=htmlentities(trim($v_lname, "'"))?>">
</td>
</tr>
<tr>
@ -128,31 +129,21 @@
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns1" <?php if (!empty($v_ns1)) echo 'value="'.htmlentities($v_ns1).'"'; ?>>
<input type="text" size="20" class="vst-input" name="v_ns1" value="<?=htmlentities(trim($v_ns1, "'"))?>">
<span class="remove-ns additional-control delete"><?=__('delete')?></span>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns2" <?php if (!empty($v_ns2)) echo 'value="'.htmlentities($v_ns2).'"'; ?>>
<input type="text" size="20" class="vst-input" name="v_ns2" value="<?=htmlentities(trim($v_ns2, "'"))?>">
<span class="remove-ns additional-control delete"><?=__('delete')?></span>
</td>
</tr>
<!-- tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns1" <?php if (!empty($v_ns1)) echo "value=".htmlentities($v_ns1); ?>>
</td>
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns2" <?php if (!empty($v_ns2)) echo "value=".htmlentities($v_ns2); ?>>
</td>
</tr -->
<? if($v_ns3)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities($v_ns3).'">
<input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities(trim($v_ns3, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -160,7 +151,7 @@
if($v_ns4)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities($v_ns4).'">
<input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities(trim($v_ns4, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -168,7 +159,7 @@
if($v_ns5)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities($v_ns5).'">
<input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities(trim($v_ns5, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -176,7 +167,7 @@
if($v_ns6)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities($v_ns6).'">
<input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities(trim($v_ns6, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -184,7 +175,7 @@
if($v_ns7)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities($v_ns7).'">
<input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities(trim($v_ns7, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -192,7 +183,7 @@
if($v_ns8)
echo '<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities($v_ns8).'">
<input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities(trim($v_ns8, "'")).'">
<span class="remove-ns additional-control delete">'.__('delete').'</span>
</td>
</tr>';
@ -207,10 +198,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>

View file

@ -41,7 +41,7 @@
<a class="data-date"><?=$v_time?></a>
</td>
</tr>
<tr><td class="data-<?php echo $v_status ?>"><b><?php echo __($v_status) ?></b></td></tr>
<tr><td class="data-<?=$v_status ?>"><b><?=__($v_status) ?></b></td></tr>
</table>
</td>
<td class="data-dotted">
@ -53,7 +53,8 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?> disabled> <input type="hidden" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?>>
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>" disabled>
<input type="hidden" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>">
</td>
</tr>
<tr>
@ -81,7 +82,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_aliases"><?php if (!empty($v_aliases)) echo htmlentities($v_aliases); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_aliases"><?=htmlentities(trim($v_aliases, "'"))?></textarea>
</td>
</tr>
<tr>
@ -118,12 +119,12 @@
<tr>
<td class="vst-text input-label">
<?php print __('SSL Certificate');?>
<span id="generate-csr"> / <a class="generate" target="_blank" href="/generate/ssl/?domain=<?php echo $v_domain ?>"><?php print __('Generate CSR') ?></a></span>
<span id="generate-csr"> / <a class="generate" target="_blank" href="/generate/ssl/?domain=<?=htmlentites(trim($v_domain, "'"))?>"><?=__('Generate CSR')?></a></span>
</td>
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_ssl_crt"><?php if (!empty($v_ssl_crt)) echo htmlentities($v_ssl_crt); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_ssl_crt"><?=htmlentities(trim($v_ssl_crt, "'"))?></textarea>
</td>
</tr>
<tr>
@ -133,7 +134,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_ssl_key"><?php if (!empty($v_ssl_key)) echo htmlentities($v_ssl_key); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_ssl_key"><?=htmlentities(trim($v_ssl_key, "'"))?></textarea>
</td>
</tr>
<tr>
@ -143,7 +144,7 @@
</tr>
<tr>
<td>
<textarea size="20" class="vst-textinput" name="v_ssl_ca"><?php if (!empty($v_ssl_ca)) echo htmlentities($v_ssl_ca); ?></textarea>
<textarea size="20" class="vst-textinput" name="v_ssl_ca"><?=htmlentities(trim($v_ssl_ca, "'"))?></textarea>
</td>
</tr>
<?
@ -253,7 +254,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input" name="v_stats_user" <?php if (!empty($v_stats_user)) echo "value=".htmlentities($v_stats_user); ?>>
<input type="text" size="20" class="vst-input" name="v_stats_user" value="<?=htmlentities(trim($v_stats_user, "'"))?>">
</td>
</tr>
<tr>
@ -263,7 +264,7 @@
</tr>
<tr>
<td>
<input type="text" size="20" class="vst-input password" name="v_stats_password" <?php if (!empty($v_stats_password)) echo "value=".htmlentities($v_stats_password); ?> id="v_password">
<input type="text" size="20" class="vst-input password" name="v_stats_password" value="<?=htmlentities(trim($v_stats_password, "'"))?>" id="v_password">
</td>
</tr>
</table>
@ -301,7 +302,7 @@
</tr>
<tr>
<td class="step-left">
<input type="text" size="20" class="vst-input v-ftp-user" <?php print $ftp_user['is_new'] != 1 ? 'disabled="disabled"' : '' ?> name="v_ftp_user[<?php print $i ?>][v_ftp_user]" <?php if (!empty($v_ftp_user)) echo "value=".htmlentities($v_ftp_user); ?>>
<input type="text" size="20" class="vst-input v-ftp-user" <?php print $ftp_user['is_new'] != 1 ? 'disabled="disabled"' : '' ?> name="v_ftp_user[<?php print $i ?>][v_ftp_user]" value="<?=htmlentities(trim($v_ftp_user, "'"))?>">
<small class="hint"></small>
</td>
</tr>
@ -312,7 +313,7 @@
</tr>
<tr>
<td class="step-left">
<input type="text" class="vst-input v-ftp-user-psw password" name="v_ftp_user[<?php print $i ?>][v_ftp_password]" <?php if (!empty($v_ftp_password)) echo "value=".htmlentities($v_ftp_password); ?>>
<input type="text" class="vst-input v-ftp-user-psw password" name="v_ftp_user[<?php print $i ?>][v_ftp_password]" value="<?=htmlentities(trim($v_ftp_password, "'"))?>">
</td>
</tr>
@ -323,10 +324,10 @@
</tr>
<tr>
<td class="step-left">
<input type="hidden" class="vst-input v-ftp-pre-path" name="v_ftp_pre_path" value="<?php print !empty($v_ftp_pre_path) ? htmlentities($v_ftp_pre_path) : '/'; ?>">
<input type="hidden" class="vst-input v-ftp-path" name="v_ftp_user[<?php print $i ?>][v_ftp_path_prev]" <?php if (!empty($v_ftp_path)) echo "value=".($v_ftp_path[0] != '/' ? '/' : '').htmlentities($v_ftp_path); ?>>
<input type="text" class="vst-input v-ftp-path" name="v_ftp_user[<?php print $i ?>][v_ftp_path]" <?php if (!empty($v_ftp_path)) echo "value=".($v_ftp_path[0] != '/' ? '/' : '').htmlentities($v_ftp_path); ?>>
<br /><span class="ftp-path-prefix"><?php print $v_ftp_pre_path ?></span><span class="ftp-path-value v-ftp-path-hint"></span>
<input type="hidden" class="vst-input v-ftp-pre-path" name="v_ftp_pre_path" value="<?php print !empty($v_ftp_pre_path) ? htmlentities(trim($v_ftp_pre_path, "'")) : '/'; ?>">
<input type="hidden" class="vst-input v-ftp-path" name="v_ftp_user[<?php print $i ?>][v_ftp_path_prev]" value="<?=($v_ftp_path[0] != '/' ? '/' : '').htmlentities(trim($v_ftp_path, "'"))?>">
<input type="text" class="vst-input v-ftp-path" name="v_ftp_user[<?php print $i ?>][v_ftp_path]" value="<?=($v_ftp_path[0] != '/' ? '/' : '').htmlentities(trim($v_ftp_path, "'"))?>">
<br /><span class="ftp-path-prefix"><?=$v_ftp_pre_path ?></span><span class="ftp-path-value v-ftp-path-hint"></span>
</td>
</tr>
<?php if ($ftp_user['is_new'] == 1): ?>
@ -337,7 +338,7 @@
</tr>
<tr>
<td class="step-left">
<input type="text" class="vst-input vst-email-alert-on-psw" name="v_ftp_user[<?php print $i ?>][v_ftp_email]" <?php if (!empty($v_ftp_email)) echo "value=".htmlentities($v_ftp_email); ?>>
<input type="text" class="vst-input vst-email-alert-on-psw" name="v_ftp_user[<?php print $i ?>][v_ftp_email]" value="<?=htmlentities(trim($v_ftp_email, "'"))?>">
</td>
</tr>
<?php endif; ?>
@ -355,10 +356,10 @@
<table class="data-col2">
<tr>
<td class="step-top" width="116px">
<input type="submit" class="button" name="save" value="<?php print __('Save');?>">
<input type="submit" class="button" name="save" value="<?=__('Save')?>">
</td>
<td class="step-top">
<input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
<input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
</td>
</tr>
</table>
@ -408,7 +409,7 @@
<td class="step-left">
<input type="hidden" class="vst-input v-ftp-pre-path" name="v_ftp_pre_path" value="">
<input type="text" class="vst-input v-ftp-path" name="v_ftp_user[%INDEX%][v_ftp_path]" value="">
<br /><span class="ftp-path-prefix"><?php print $v_ftp_pre_path_new_user ?></span><span class="ftp-path-value v-ftp-path-hint"></span>
<br /><span class="ftp-path-prefix"><?=$v_ftp_pre_path_new_user ?></span><span class="ftp-path-value v-ftp-path-hint"></span>
</td>
</tr>
<tr>