|
47 | 47 | </tr> |
48 | 48 | <tr> |
49 | 49 | <td> |
50 | | - <input type="text" size="20" class="vst-input" name="v_domain" <?php if (!empty($v_domain)) echo "value=".htmlentities($v_domain); ?>> |
| 50 | + <input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'"))?>"> |
51 | 51 | </td> |
52 | 52 | </tr> |
53 | 53 | <tr> |
|
57 | 57 | </tr> |
58 | 58 | <tr> |
59 | 59 | <td> |
60 | | - <input type="text" size="20" class="vst-input" name="v_ip" <?php if (!empty($v_ip)) echo "value=".htmlentities($v_ip); ?>> |
| 60 | + <input type="text" size="20" class="vst-input" name="v_ip" value="<?=htmlentities(trim($v_ip, "'"))?>"> |
61 | 61 | </td> |
62 | 62 | </tr> |
63 | 63 | <tr> |
|
75 | 75 | </tr> |
76 | 76 | <tr> |
77 | 77 | <td> |
78 | | - <input type="text" size="20" class="vst-input" name="v_exp" <?php if (!empty($v_exp)) echo "value=".htmlentities($v_exp); ?>> |
| 78 | + <input type="text" size="20" class="vst-input" name="v_exp" value="<?=htmlentities(trim($v_exp, "'"))?>"> |
79 | 79 | </td> |
80 | 80 | </tr> |
81 | 81 | <tr> |
|
85 | 85 | </tr> |
86 | 86 | <tr> |
87 | 87 | <td> |
88 | | - <input type="text" size="20" class="vst-input" name="v_ttl" <?php if (!empty($v_ttl)) echo "value=".htmlentities($v_ttl); ?>> |
| 88 | + <input type="text" size="20" class="vst-input" name="v_ttl" value="<?=htmlentities(trim($v_ttl, "'"))?>"> |
89 | 89 | </td> |
90 | 90 | </tr> |
91 | 91 | <tr> |
|
95 | 95 | </tr> |
96 | 96 | <tr> |
97 | 97 | <td> |
98 | | - <input type="text" size="20" class="vst-input" name="v_ns1" <?php if (!empty($v_ns1)) echo 'value="'.htmlentities($v_ns1).'"'; ?>> |
| 98 | + <input type="text" size="20" class="vst-input" name="v_ns1" value="<?=htmlentities(trim($v_ns1, "'"))?>"> |
99 | 99 | <span class="remove-ns additional-control delete"><?=__('delete')?></span> |
100 | 100 | </td> |
101 | 101 | </tr> |
102 | 102 | <tr> |
103 | 103 | <td> |
104 | | - <input type="text" size="20" class="vst-input" name="v_ns2" <?php if (!empty($v_ns2)) echo 'value="'.htmlentities($v_ns2).'"'; ?>> |
| 104 | + <input type="text" size="20" class="vst-input" name="v_ns2" value="<?=htmlentities(trim($v_ns2, "'"))?>"> |
105 | 105 | <span class="remove-ns additional-control delete"><?=__('delete')?></span> |
106 | 106 | </td> |
107 | 107 | </tr> |
108 | 108 | <? if($v_ns3) |
109 | 109 | echo '<tr> |
110 | 110 | <td> |
111 | | - <input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities($v_ns3).'"> |
| 111 | + <input type="text" size="20" class="vst-input" name="v_ns3" value="'.htmlentities(trim($v_ns3, "'")).'"> |
112 | 112 | <span class="remove-ns additional-control delete">'.__('delete').'</span> |
113 | 113 | </td> |
114 | 114 | </tr>'; |
115 | 115 |
|
116 | 116 | if($v_ns4) |
117 | 117 | echo '<tr> |
118 | 118 | <td> |
119 | | - <input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities($v_ns4).'"> |
| 119 | + <input type="text" size="20" class="vst-input" name="v_ns4" value="'.htmlentities(trim($v_ns4, "'")).'"> |
120 | 120 | <span class="remove-ns additional-control delete">'.__('delete').'</span> |
121 | 121 | </td> |
122 | 122 | </tr>'; |
123 | 123 |
|
124 | 124 | if($v_ns5) |
125 | 125 | echo '<tr> |
126 | 126 | <td> |
127 | | - <input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities($v_ns5).'"> |
| 127 | + <input type="text" size="20" class="vst-input" name="v_ns5" value="'.htmlentities(trim($v_ns5, "'")).'"> |
128 | 128 | <span class="remove-ns additional-control delete">'.__('delete').'</span> |
129 | 129 | </td> |
130 | 130 | </tr>'; |
131 | 131 |
|
132 | 132 | if($v_ns6) |
133 | 133 | echo '<tr> |
134 | 134 | <td> |
135 | | - <input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities($v_ns6).'"> |
| 135 | + <input type="text" size="20" class="vst-input" name="v_ns6" value="'.htmlentities(trim($v_ns6, "'")).'"> |
136 | 136 | <span class="remove-ns additional-control delete">'.__('delete').'</span> |
137 | 137 | </td> |
138 | 138 | </tr>'; |
139 | 139 |
|
140 | 140 | if($v_ns7) |
141 | 141 | echo '<tr> |
142 | 142 | <td> |
143 | | - <input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities($v_ns7).'"> |
| 143 | + <input type="text" size="20" class="vst-input" name="v_ns7" value="'.htmlentities(trim($v_ns7, "'")).'"> |
144 | 144 | <span class="remove-ns additional-control delete">'.__('delete').'</span> |
145 | 145 | </td> |
146 | 146 | </tr>'; |
147 | 147 |
|
148 | 148 | if($v_ns8) |
149 | 149 | echo '<tr> |
150 | 150 | <td> |
151 | | - <input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities($v_ns8).'"> |
| 151 | + <input type="text" size="20" class="vst-input" name="v_ns8" value="'.htmlentities(trim($v_ns8, "'")).'"> |
152 | 152 | <span class="remove-ns additional-control delete">'.__('delete').'</span> |
153 | 153 | </td> |
154 | 154 | </tr>'; |
|
166 | 166 | <table class="data-col2"> |
167 | 167 | <tr> |
168 | 168 | <td class="step-top" width="116px"> |
169 | | - <input type="submit" name="ok" value="<?php print __('Add');?>" class="button"> |
| 169 | + <input type="submit" name="ok" value="<?=__('Add')?>" class="button"> |
170 | 170 | </td> |
171 | 171 | <td class="step-top"> |
172 | | - <input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>"> |
| 172 | + <input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>"> |
173 | 173 | </td> |
174 | 174 | </tr> |
175 | 175 | </table> |
|
0 commit comments