@@ -704,7 +704,7 @@ |
||
704 | 704 | $mail_result = false; |
705 | 705 | } |
706 | 706 | } |
707 | - catch(ErrorException $e) |
|
707 | + catch (ErrorException $e) |
|
708 | 708 | { |
709 | 709 | log_error($e->getMessage(), 'general', $e->getFile(), $e->getLine()); |
710 | 710 | log_error(sprintf($txt['mail_send_unable'], $to)); |
@@ -140,7 +140,7 @@ |
||
140 | 140 | $max_age = $time - $cached['time'] + (5 * 86400); |
141 | 141 | header('content-type: ' . $cached['content_type']); |
142 | 142 | header('content-length: ' . $cached['size']); |
143 | - header('cache-control: public, max-age=' . $max_age ); |
|
143 | + header('cache-control: public, max-age=' . $max_age); |
|
144 | 144 | header('last-modified: ' . gmdate('D, d M Y H:i:s', $cached['time']) . ' GMT'); |
145 | 145 | header('etag: ' . $eTag); |
146 | 146 | echo base64_decode($cached['body']); |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | } |
251 | 251 | $smcFunc['db_free_result']($request); |
252 | 252 | |
253 | - if($withSender) |
|
253 | + if ($withSender) |
|
254 | 254 | { |
255 | 255 | $senders = loadMemberData($senders); |
256 | 256 | foreach ($senders as $member) |
@@ -1896,7 +1896,7 @@ discard block |
||
1896 | 1896 | if (count($context['ip']) !== 2) |
1897 | 1897 | fatal_lang_error('invalid_tracking_ip', false); |
1898 | 1898 | |
1899 | - $ip_string = array('{inet:ip_address_low}','{inet:ip_address_high}'); |
|
1899 | + $ip_string = array('{inet:ip_address_low}', '{inet:ip_address_high}'); |
|
1900 | 1900 | $fields = array( |
1901 | 1901 | 'ip_address_low' => $context['ip']['low'], |
1902 | 1902 | 'ip_address_high' => $context['ip']['high'], |
@@ -1904,7 +1904,7 @@ discard block |
||
1904 | 1904 | |
1905 | 1905 | $ip_var = $context['ip']; |
1906 | 1906 | |
1907 | - if ($context['ip']['low'] !== $context['ip']['high']) |
|
1907 | + if ($context['ip']['low'] !== $context['ip']['high']) |
|
1908 | 1908 | $context['ip'] = $context['ip']['low'] . ' - ' . $context['ip']['high']; |
1909 | 1909 | else |
1910 | 1910 | $context['ip'] = $context['ip']['low']; |
@@ -461,7 +461,7 @@ |
||
461 | 461 | $fields = ''; |
462 | 462 | foreach ($context['print_custom_fields']['below_signature'] as $field) |
463 | 463 | if (!empty($field['output_html'])) |
464 | - $fields .= ' |
|
464 | + $fields .= ' |
|
465 | 465 | <li>' . $field['output_html'] . '</li>'; |
466 | 466 | |
467 | 467 | if (!empty($fields)) |
@@ -85,7 +85,7 @@ |
||
85 | 85 | foreach ($board['children'] as $child) |
86 | 86 | { |
87 | 87 | if (!$child['is_redirect']) |
88 | - $child['link'] = ''. ($child['new'] ? '<a href="' . $scripturl . '?action=unread;board=' . $child['id'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')" class="new_posts">' . $txt['new'] . '</a>' : '') . '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="board_new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>'; |
|
88 | + $child['link'] = '' . ($child['new'] ? '<a href="' . $scripturl . '?action=unread;board=' . $child['id'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')" class="new_posts">' . $txt['new'] . '</a>' : '') . '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="board_new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>'; |
|
89 | 89 | else |
90 | 90 | $child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>'; |
91 | 91 |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | echo ' |
72 | 72 | <div class="main_container"> |
73 | - <div class="cat_bar ', $category['is_collapsed'] ? 'collapsed' : '','" id="category_', $category['id'], '"> |
|
73 | + <div class="cat_bar ', $category['is_collapsed'] ? 'collapsed' : '', '" id="category_', $category['id'], '"> |
|
74 | 74 | <h3 class="catbg">'; |
75 | 75 | |
76 | 76 | // If this category even can collapse, show a link to collapse it. |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | foreach ($board['children'] as $child) |
250 | 250 | { |
251 | 251 | if (!$child['is_redirect']) |
252 | - $child['link'] = ''. ($child['new'] ? '<a href="' . $scripturl . '?action=unread;board=' . $child['id'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')" class="new_posts">' . $txt['new'] . '</a>' : '') . '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="board_new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>'; |
|
252 | + $child['link'] = '' . ($child['new'] ? '<a href="' . $scripturl . '?action=unread;board=' . $child['id'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')" class="new_posts">' . $txt['new'] . '</a>' : '') . '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="board_new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>'; |
|
253 | 253 | else |
254 | 254 | $child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . ' - ' . $child['short_description'] . '">' . $child['name'] . '</a>'; |
255 | 255 |
@@ -1256,7 +1256,7 @@ discard block |
||
1256 | 1256 | ); |
1257 | 1257 | if (empty($value)) |
1258 | 1258 | { |
1259 | - $deletes = array('id_theme' => 1 , 'variable' => $row['col_name'], 'id_member' => $memID); |
|
1259 | + $deletes = array('id_theme' => 1, 'variable' => $row['col_name'], 'id_member' => $memID); |
|
1260 | 1260 | unset($user_profile[$memID]['options'][$row['col_name']]); |
1261 | 1261 | } |
1262 | 1262 | else |
@@ -1284,7 +1284,7 @@ discard block |
||
1284 | 1284 | array('id_theme', 'variable', 'id_member') |
1285 | 1285 | ); |
1286 | 1286 | if (!empty($deletes)) |
1287 | - $smcFunc['db_query']('',' |
|
1287 | + $smcFunc['db_query']('', ' |
|
1288 | 1288 | DELETE FROM {db_prefix}themes |
1289 | 1289 | WHERE id_theme = {int:id_theme} AND |
1290 | 1290 | variable = {string:variable} AND |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | } |
137 | 137 | if ($c === $n) { |
138 | 138 | $q = $delta; |
139 | - for ($k = static::BASE;; $k += static::BASE) { |
|
139 | + for ($k = static::BASE; ; $k += static::BASE) { |
|
140 | 140 | $t = $this->calculateThreshold($k, $bias); |
141 | 141 | if ($q < $t) { |
142 | 142 | break; |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | $oldi = $i; |
225 | 225 | $w = 1; |
226 | 226 | |
227 | - for ($k = static::BASE;; $k += static::BASE) { |
|
227 | + for ($k = static::BASE; ; $k += static::BASE) { |
|
228 | 228 | $digit = static::$decodeTable[$input[$pos++]]; |
229 | 229 | $i = $i + ($digit * $w); |
230 | 230 | $t = $this->calculateThreshold($k, $bias); |
@@ -181,14 +181,14 @@ discard block |
||
181 | 181 | { |
182 | 182 | collapsedDiv.show(\'slow\'); |
183 | 183 | icon.removeClass(\'toggle_down\').addClass(\'toggle_up\'); |
184 | - icon.prop(\'title\', '. JavaScriptEscape($txt['hide']) .'); |
|
184 | + icon.prop(\'title\', '. JavaScriptEscape($txt['hide']) . '); |
|
185 | 185 | } |
186 | 186 | |
187 | 187 | else |
188 | 188 | { |
189 | 189 | collapsedDiv.hide(\'slow\'); |
190 | 190 | icon.removeClass(\'toggle_up\').addClass(\'toggle_down\'); |
191 | - icon.prop(\'title\', '. JavaScriptEscape($txt['show']) .'); |
|
191 | + icon.prop(\'title\', '. JavaScriptEscape($txt['show']) . '); |
|
192 | 192 | } |
193 | 193 | });', true); |
194 | 194 | } |
@@ -641,7 +641,7 @@ discard block |
||
641 | 641 | |
642 | 642 | // Setup the correct template, even though I'll admit we ain't downloading ;) |
643 | 643 | $context['sub_template'] = 'downloaded'; |
644 | - $allowext = array('.zip','.tgz','.gz'); |
|
644 | + $allowext = array('.zip', '.tgz', '.gz'); |
|
645 | 645 | // @todo Use FTP if the Packages directory is not writable. |
646 | 646 | |
647 | 647 | // Check the file was even sent! |
@@ -653,13 +653,13 @@ discard block |
||
653 | 653 | // Make sure it has a sane filename. |
654 | 654 | $_FILES['package']['name'] = preg_replace(array('/\s/', '/\.[\.]+/', '/[^\w_\.\-]/'), array('_', '.', ''), $_FILES['package']['name']); |
655 | 655 | $extension = substr(strrchr(strtolower($_FILES['package']['name']), '.'), 0); |
656 | - if(!in_array($extension, $allowext)) |
|
656 | + if (!in_array($extension, $allowext)) |
|
657 | 657 | { |
658 | 658 | fatal_lang_error('package_upload_error_supports', false, array('zip, tgz, tar.gz')); |
659 | 659 | } |
660 | 660 | |
661 | 661 | // We only need the filename... |
662 | - $extension = ($extension == '.gz') ? '.tar.gz' : $extension ; |
|
662 | + $extension = ($extension == '.gz') ? '.tar.gz' : $extension; |
|
663 | 663 | $packageName = time() . $extension; |
664 | 664 | |
665 | 665 | // Setup the destination and throw an error if the file is already there! |