@@ -36,10 +36,12 @@ |
||
36 | 36 | <ul>'; |
37 | 37 | |
38 | 38 | foreach ($context['groups'] as $group) |
39 | - echo ' |
|
39 | + { |
|
40 | + echo ' |
|
40 | 41 | <li> |
41 | 42 | <label for="who_', $group['id'], '"><input type="checkbox" name="who[', $group['id'], ']" id="who_', $group['id'], '" value="', $group['id'], '" checked="checked" /> ', $group['name'], '</label> <em>(', $group['member_count'], ')</em> |
42 | 43 | </li>'; |
44 | + } |
|
43 | 45 | |
44 | 46 | echo ' |
45 | 47 | <li> |
@@ -275,8 +275,10 @@ discard block |
||
275 | 275 | </div>'; |
276 | 276 | |
277 | 277 | foreach ($context['recipients'] as $key => $values) |
278 | - echo ' |
|
278 | + { |
|
279 | + echo ' |
|
279 | 280 | <input type="hidden" name="', $key, '" value="', implode(($key == 'emails' ? ';' : ','), $values), '" />'; |
281 | + } |
|
280 | 282 | |
281 | 283 | // The vars used to preview a newsletter without loading a new page, used by post.js previewControl() |
282 | 284 | addInlineJavascript(' |
@@ -338,8 +340,10 @@ discard block |
||
338 | 340 | |
339 | 341 | // All the things we must remember! |
340 | 342 | foreach ($context['recipients'] as $key => $values) |
341 | - echo ' |
|
343 | + { |
|
344 | + echo ' |
|
342 | 345 | <input type="hidden" name="', $key, '" value="', implode(($key == 'emails' ? ';' : ','), $values), '" />'; |
346 | + } |
|
343 | 347 | |
344 | 348 | echo ' |
345 | 349 | </div> |
@@ -79,8 +79,10 @@ discard block |
||
79 | 79 | <select name="targetboard" onchange="this.form.submit();">'; |
80 | 80 | |
81 | 81 | foreach ($context['boards'] as $board) |
82 | - echo ' |
|
82 | + { |
|
83 | + echo ' |
|
83 | 84 | <option value="', $board['id'], '"', $board['id'] == $context['target_board'] ? ' selected="selected"' : '', '>', $board['category'], ' - ', $board['name'], '</option>'; |
85 | + } |
|
84 | 86 | |
85 | 87 | echo ' |
86 | 88 | </select> |
@@ -115,13 +117,15 @@ discard block |
||
115 | 117 | <ul class="merge_topics">'; |
116 | 118 | |
117 | 119 | foreach ($context['topics'] as $topic) |
118 | - echo ' |
|
120 | + { |
|
121 | + echo ' |
|
119 | 122 | <li> |
120 | 123 | <a class="linkbutton" href="', $scripturl, '?action=mergetopics;sa=options;board=', $context['current_board'], '.0;from=', $context['origin_topic'], ';to=', $topic['id'], ';', $context['session_var'], '=', $context['session_id'], '"> |
121 | 124 | <img class="centericon" src="', $settings['images_url'], '/buttons/merge.png" alt="', $txt['merge'], '" /> |
122 | 125 | </a> |
123 | 126 | <a href="', $scripturl, '?topic=', $topic['id'], '.0" target="_blank" class="new_win">', $topic['subject'], '</a> ', sprintf($txt['topic_started_by'], $topic['poster']['link']), ' |
124 | 127 | </li>'; |
128 | + } |
|
125 | 129 | |
126 | 130 | echo ' |
127 | 131 | </ul> |
@@ -153,7 +157,8 @@ discard block |
||
153 | 157 | <tbody>'; |
154 | 158 | |
155 | 159 | foreach ($context['topics'] as $topic) |
156 | - echo ' |
|
160 | + { |
|
161 | + echo ' |
|
157 | 162 | <tr> |
158 | 163 | <td class="centertext"> |
159 | 164 | <input type="checkbox" name="topics[]" value="', $topic['id'], '" checked="checked" /> |
@@ -173,6 +178,7 @@ discard block |
||
173 | 178 | <input type="checkbox" name="notifications[]" value="' . $topic['id'] . '" checked="checked" /> |
174 | 179 | </td> |
175 | 180 | </tr>'; |
181 | + } |
|
176 | 182 | |
177 | 183 | echo ' |
178 | 184 | </tbody> |
@@ -185,8 +191,10 @@ discard block |
||
185 | 191 | <select name="subject" onchange="this.form.custom_subject.style.display = (this.options[this.selectedIndex].value != 0) ? \'none\': \'block\' ;">'; |
186 | 192 | |
187 | 193 | foreach ($context['topics'] as $topic) |
188 | - echo ' |
|
194 | + { |
|
195 | + echo ' |
|
189 | 196 | <option value="', $topic['id'], '"' . ($topic['selected'] ? ' selected="selected"' : '') . '>', $topic['subject'], '</option>'; |
197 | + } |
|
190 | 198 | |
191 | 199 | echo ' |
192 | 200 | <option value="0">', $txt['merge_custom_subject'], ':</option> |
@@ -218,10 +226,12 @@ discard block |
||
218 | 226 | <ul>'; |
219 | 227 | |
220 | 228 | foreach ($context['polls'] as $poll) |
221 | - echo ' |
|
229 | + { |
|
230 | + echo ' |
|
222 | 231 | <li> |
223 | 232 | <input type="radio" id="poll', $poll['id'], '" name="poll" value="', $poll['id'], '"', $poll['selected'] ? ' checked="checked"' : '', ' /> <label for="poll', $poll['id'], '">', $poll['question'], '</label> (', $txt['topic'], ': <a href="', $scripturl, '?topic=', $poll['topic']['id'], '.0" target="_blank" class="new_win">', $poll['topic']['subject'], '</a>) |
224 | 233 | </li>'; |
234 | + } |
|
225 | 235 | |
226 | 236 | echo ' |
227 | 237 | <li> |
@@ -130,7 +130,8 @@ discard block |
||
130 | 130 | |
131 | 131 | // Loop through all the shiny features. |
132 | 132 | foreach ($context['features'] as $id => $feature) |
133 | - echo ' |
|
133 | + { |
|
134 | + echo ' |
|
134 | 135 | <div class="features"> |
135 | 136 | <img class="features_image" src="', $feature['image'], '" alt="', $feature['title'], '" /> |
136 | 137 | <div class="features_switch" id="js_feature_', $id, '"> |
@@ -141,6 +142,7 @@ discard block |
||
141 | 142 | <p>', $feature['desc'], '</p> |
142 | 143 | <hr /> |
143 | 144 | </div>'; |
145 | + } |
|
144 | 146 | |
145 | 147 | echo ' |
146 | 148 | <div class="righttext"> |
@@ -168,7 +168,8 @@ discard block |
||
168 | 168 | <tbody>'; |
169 | 169 | |
170 | 170 | foreach ($context['membergroups'] as $membergroup) |
171 | - echo ' |
|
171 | + { |
|
172 | + echo ' |
|
172 | 173 | <tr> |
173 | 174 | <td>', $membergroup['name'], '</td> |
174 | 175 | <td class="centertext"> |
@@ -178,6 +179,7 @@ discard block |
||
178 | 179 | ', $membergroup['can_be_additional'] ? '<input type="checkbox" name="membergroups[2][]" value="' . $membergroup['id'] . '" checked="checked" />' : '', ' |
179 | 180 | </td> |
180 | 181 | </tr>'; |
182 | + } |
|
181 | 183 | |
182 | 184 | echo ' |
183 | 185 | <tr> |
@@ -206,7 +208,8 @@ discard block |
||
206 | 208 | <tbody>'; |
207 | 209 | |
208 | 210 | foreach ($context['postgroups'] as $postgroup) |
209 | - echo ' |
|
211 | + { |
|
212 | + echo ' |
|
210 | 213 | <tr> |
211 | 214 | <td> |
212 | 215 | ', $postgroup['name'], ' |
@@ -215,6 +218,7 @@ discard block |
||
215 | 218 | <input type="checkbox" name="postgroups[]" value="', $postgroup['id'], '" checked="checked" /> |
216 | 219 | </td> |
217 | 220 | </tr>'; |
221 | + } |
|
218 | 222 | |
219 | 223 | echo ' |
220 | 224 | <tr> |
@@ -59,8 +59,10 @@ |
||
59 | 59 | <ul>'; |
60 | 60 | |
61 | 61 | foreach ($context['manual_sections'] as $section_id => $wiki_id) |
62 | - echo ' |
|
62 | + { |
|
63 | + echo ' |
|
63 | 64 | <li><a href="', $context['wiki_url'], '/', $wiki_id, ($txt['lang_dictionary'] != 'en' && $txt['lang_dictionary'] != 'english' ? '/' . $txt['lang_dictionary'] : ''), '" target="_blank" class="new_win">', $txt['manual_section_' . $section_id . '_title'], '</a> - ', $txt['manual_section_' . $section_id . '_desc'], '</li>'; |
65 | + } |
|
64 | 66 | |
65 | 67 | echo ' |
66 | 68 | </ul> |
@@ -59,7 +59,9 @@ |
||
59 | 59 | 'can_remove_poll' => 'poll_remove', |
60 | 60 | ); |
61 | 61 | foreach ($anyown_permissions as $contextual => $perm) |
62 | - $context[$contextual] = allowedTo($perm . '_any') || ($context['user']['started'] && allowedTo($perm . '_own')); |
|
62 | + { |
|
63 | + $context[$contextual] = allowedTo($perm . '_any') || ($context['user']['started'] && allowedTo($perm . '_own')); |
|
64 | + } |
|
63 | 65 | |
64 | 66 | $context['can_add_poll'] &= self::$_enabled && $topicinfo['id_poll'] <= 0; |
65 | 67 | $context['can_remove_poll'] &= self::$_enabled && $topicinfo['id_poll'] > 0; |
@@ -514,7 +514,9 @@ discard block |
||
514 | 514 | else |
515 | 515 | { |
516 | 516 | foreach ($this->_searchArray as $index => $value) |
517 | - $orParts[$index] = array($value); |
|
517 | + { |
|
518 | + $orParts[$index] = array($value); |
|
519 | + } |
|
518 | 520 | } |
519 | 521 | |
520 | 522 | // Make sure the excluded words are in all or-branches. |
@@ -612,7 +614,9 @@ discard block |
||
612 | 614 | } |
613 | 615 | |
614 | 616 | foreach ($temp_params as $k => $v) |
615 | - $encoded[] = $k . '|\'|' . $v; |
|
617 | + { |
|
618 | + $encoded[] = $k . '|\'|' . $v; |
|
619 | + } |
|
616 | 620 | |
617 | 621 | if (!empty($encoded)) |
618 | 622 | { |
@@ -766,12 +770,14 @@ discard block |
||
766 | 770 | // Create a list of database-escaped search names. |
767 | 771 | $realNameMatches = array(); |
768 | 772 | foreach ($possible_users as $possible_user) |
769 | - $realNameMatches[] = $this->_db->quote( |
|
773 | + { |
|
774 | + $realNameMatches[] = $this->_db->quote( |
|
770 | 775 | '{string:possible_user}', |
771 | 776 | array( |
772 | 777 | 'possible_user' => $possible_user |
773 | 778 | ) |
774 | 779 | ); |
780 | + } |
|
775 | 781 | |
776 | 782 | // Retrieve a list of possible members. |
777 | 783 | $request = $this->_db->query('', ' |
@@ -889,7 +895,9 @@ discard block |
||
889 | 895 | if (count($this->_search_params['brd']) != 0) |
890 | 896 | { |
891 | 897 | foreach ($this->_search_params['brd'] as $k => $v) |
892 | - $this->_search_params['brd'][$k] = (int) $v; |
|
898 | + { |
|
899 | + $this->_search_params['brd'][$k] = (int) $v; |
|
900 | + } |
|
893 | 901 | |
894 | 902 | // If we've selected all boards, this parameter can be left empty. |
895 | 903 | require_once(SUBSDIR . '/Boards.subs.php'); |
@@ -1510,7 +1518,9 @@ discard block |
||
1510 | 1518 | ); |
1511 | 1519 | $posters = array(); |
1512 | 1520 | while ($row = $this->_db->fetch_assoc($request)) |
1513 | - $posters[] = $row['id_member']; |
|
1521 | + { |
|
1522 | + $posters[] = $row['id_member']; |
|
1523 | + } |
|
1514 | 1524 | $this->_db->free_result($request); |
1515 | 1525 | |
1516 | 1526 | return $posters; |
@@ -1957,7 +1967,9 @@ discard block |
||
1957 | 1967 | |
1958 | 1968 | $usedIDs[$row['id_topic']] = true; |
1959 | 1969 | foreach ($row as $key => $value) |
1960 | - $inserts[$row['id_topic']][] = (int) $row[$key]; |
|
1970 | + { |
|
1971 | + $inserts[$row['id_topic']][] = (int) $row[$key]; |
|
1972 | + } |
|
1961 | 1973 | } |
1962 | 1974 | $this->_db->free_result($ignoreRequest); |
1963 | 1975 | |
@@ -1966,7 +1978,9 @@ discard block |
||
1966 | 1978 | { |
1967 | 1979 | $query_columns = array(); |
1968 | 1980 | foreach ($main_query['select'] as $k => $v) |
1969 | - $query_columns[$k] = 'int'; |
|
1981 | + { |
|
1982 | + $query_columns[$k] = 'int'; |
|
1983 | + } |
|
1970 | 1984 | |
1971 | 1985 | $this->_db->insert('', |
1972 | 1986 | '{db_prefix}log_search_results', |
@@ -41,7 +41,9 @@ discard block |
||
41 | 41 | |
42 | 42 | $returns = array(); |
43 | 43 | while ($row = $db->fetch_assoc($request)) |
44 | - $returns[$row['derived_from']][] = $row; |
|
44 | + { |
|
45 | + $returns[$row['derived_from']][] = $row; |
|
46 | + } |
|
45 | 47 | |
46 | 48 | return $returns; |
47 | 49 | } |
@@ -72,7 +74,9 @@ discard block |
||
72 | 74 | |
73 | 75 | $returns = array(); |
74 | 76 | while ($row = $db->fetch_assoc($request)) |
75 | - $returns = $row; |
|
77 | + { |
|
78 | + $returns = $row; |
|
79 | + } |
|
76 | 80 | |
77 | 81 | return $returns; |
78 | 82 | } |