@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | LEFT JOIN {db_prefix}topics AS t ON (t.id_topic = m.id_topic) |
233 | 233 | WHERE t.id_topic IS NULL |
234 | 234 | GROUP BY m.id_topic, m.id_board', |
235 | - 'fix_processing' => function ($row) use ($smcFunc) |
|
235 | + 'fix_processing' => function($row) use ($smcFunc) |
|
236 | 236 | { |
237 | 237 | global $salvageBoardID; |
238 | 238 | |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | // Remove all topics that have zero messages in the messages table. |
319 | 319 | 'fix_collect' => array( |
320 | 320 | 'index' => 'id_topic', |
321 | - 'process' => function ($topics) use ($smcFunc) |
|
321 | + 'process' => function($topics) use ($smcFunc) |
|
322 | 322 | { |
323 | 323 | $smcFunc['db_query']('', ' |
324 | 324 | DELETE FROM {db_prefix}topics |
@@ -356,21 +356,21 @@ discard block |
||
356 | 356 | AND p.id_poll IS NULL |
357 | 357 | GROUP BY o.id_poll, t.id_topic, t.id_board, t.id_member_started, m.member_name |
358 | 358 | ', |
359 | - 'fix_processing' => function ($row) use ($smcFunc, $txt) |
|
359 | + 'fix_processing' => function($row) use ($smcFunc, $txt) |
|
360 | 360 | { |
361 | 361 | global $salvageBoardID; |
362 | 362 | |
363 | 363 | $row['poster_name'] = !empty($row['poster_name']) ? $row['poster_name'] : $txt['guest']; |
364 | 364 | $row['id_poster'] = !empty($row['id_poster']) ? $row['id_poster'] : 0; |
365 | 365 | |
366 | - if(empty($row['id_board'])) |
|
366 | + if (empty($row['id_board'])) |
|
367 | 367 | { |
368 | 368 | // Only if we don't have a reasonable idea of where to put it. |
369 | 369 | createSalvageArea(); |
370 | - $row['id_board'] = (int)$salvageBoardID; |
|
370 | + $row['id_board'] = (int) $salvageBoardID; |
|
371 | 371 | } |
372 | 372 | |
373 | - if(empty($row['id_topic'])) { |
|
373 | + if (empty($row['id_topic'])) { |
|
374 | 374 | $newMessageID = $smcFunc['db_insert']('', |
375 | 375 | '{db_prefix}messages', |
376 | 376 | array( |
@@ -492,7 +492,7 @@ discard block |
||
492 | 492 | LEFT JOIN {db_prefix}topics AS t ON (t.id_poll = p.id_poll) |
493 | 493 | WHERE p.id_poll BETWEEN {STEP_LOW} AND {STEP_HIGH} |
494 | 494 | AND t.id_poll IS NULL', |
495 | - 'fix_processing' => function ($row) use ($smcFunc, $txt) |
|
495 | + 'fix_processing' => function($row) use ($smcFunc, $txt) |
|
496 | 496 | { |
497 | 497 | global $salvageBoardID; |
498 | 498 | |
@@ -605,7 +605,7 @@ discard block |
||
605 | 605 | WHERE t.id_topic BETWEEN {STEP_LOW} AND {STEP_HIGH} |
606 | 606 | GROUP BY t.id_topic, t.id_first_msg, t.id_last_msg, t.approved, mf.approved |
607 | 607 | ORDER BY t.id_topic', |
608 | - 'fix_processing' => function ($row) use ($smcFunc) |
|
608 | + 'fix_processing' => function($row) use ($smcFunc) |
|
609 | 609 | { |
610 | 610 | $row['firstmsg_approved'] = (int) $row['firstmsg_approved']; |
611 | 611 | $row['myid_first_msg'] = (int) $row['myid_first_msg']; |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | ) |
635 | 635 | ); |
636 | 636 | }, |
637 | - 'message_function' => function ($row) use ($txt, &$context) |
|
637 | + 'message_function' => function($row) use ($txt, &$context) |
|
638 | 638 | { |
639 | 639 | // A pretend error? |
640 | 640 | if ($row['id_first_msg'] == $row['myid_first_msg'] && $row['id_last_msg'] == $row['myid_last_msg'] && $row['approved'] == $row['firstmsg_approved']) |
@@ -668,7 +668,7 @@ discard block |
||
668 | 668 | WHERE t.id_topic BETWEEN {STEP_LOW} AND {STEP_HIGH} |
669 | 669 | GROUP BY t.id_topic, t.num_replies, mf.approved |
670 | 670 | ORDER BY t.id_topic', |
671 | - 'fix_processing' => function ($row) |
|
671 | + 'fix_processing' => function($row) |
|
672 | 672 | { |
673 | 673 | |
674 | 674 | global $smcFunc; |
@@ -689,7 +689,7 @@ discard block |
||
689 | 689 | ); |
690 | 690 | |
691 | 691 | }, |
692 | - 'message_function' => function ($row) |
|
692 | + 'message_function' => function($row) |
|
693 | 693 | { |
694 | 694 | |
695 | 695 | global $txt, $context; |
@@ -722,7 +722,7 @@ discard block |
||
722 | 722 | GROUP BY t.id_topic, t.unapproved_posts |
723 | 723 | HAVING unapproved_posts != COUNT(mu.id_msg) |
724 | 724 | ORDER BY t.id_topic', |
725 | - 'fix_processing' => function ($row) |
|
725 | + 'fix_processing' => function($row) |
|
726 | 726 | { |
727 | 727 | |
728 | 728 | global $smcFunc; |
@@ -764,7 +764,7 @@ discard block |
||
764 | 764 | WHERE b.id_board IS NULL |
765 | 765 | AND t.id_topic BETWEEN {STEP_LOW} AND {STEP_HIGH} |
766 | 766 | GROUP BY t.id_board', |
767 | - 'fix_processing' => function ($row) |
|
767 | + 'fix_processing' => function($row) |
|
768 | 768 | { |
769 | 769 | |
770 | 770 | global $smcFunc, $salvageCatID, $txt; |
@@ -813,7 +813,7 @@ discard block |
||
813 | 813 | ORDER BY b.id_cat, b.id_board', |
814 | 814 | 'fix_collect' => array( |
815 | 815 | 'index' => 'id_cat', |
816 | - 'process' => function ($cats) |
|
816 | + 'process' => function($cats) |
|
817 | 817 | { |
818 | 818 | global $smcFunc, $salvageCatID; |
819 | 819 | createSalvageArea(); |
@@ -849,7 +849,7 @@ discard block |
||
849 | 849 | // Last step-make sure all non-guest posters still exist. |
850 | 850 | 'fix_collect' => array( |
851 | 851 | 'index' => 'id_msg', |
852 | - 'process' => function ($msgs) |
|
852 | + 'process' => function($msgs) |
|
853 | 853 | { |
854 | 854 | |
855 | 855 | global $smcFunc; |
@@ -878,7 +878,7 @@ discard block |
||
878 | 878 | ORDER BY b.id_parent, b.id_board', |
879 | 879 | 'fix_collect' => array( |
880 | 880 | 'index' => 'id_parent', |
881 | - 'process' => function ($parents) |
|
881 | + 'process' => function($parents) |
|
882 | 882 | { |
883 | 883 | global $smcFunc, $salvageBoardID, $salvageCatID; |
884 | 884 | createSalvageArea(); |
@@ -912,7 +912,7 @@ discard block |
||
912 | 912 | AND p.id_poll IS NULL', |
913 | 913 | 'fix_collect' => array( |
914 | 914 | 'index' => 'id_poll', |
915 | - 'process' => function ($polls) |
|
915 | + 'process' => function($polls) |
|
916 | 916 | { |
917 | 917 | |
918 | 918 | global $smcFunc; |
@@ -946,7 +946,7 @@ discard block |
||
946 | 946 | ORDER BY cal.id_topic', |
947 | 947 | 'fix_collect' => array( |
948 | 948 | 'index' => 'id_topic', |
949 | - 'process' => function ($events) |
|
949 | + 'process' => function($events) |
|
950 | 950 | { |
951 | 951 | |
952 | 952 | global $smcFunc; |
@@ -978,7 +978,7 @@ discard block |
||
978 | 978 | AND lt.id_member BETWEEN {STEP_LOW} AND {STEP_HIGH}', |
979 | 979 | 'fix_collect' => array( |
980 | 980 | 'index' => 'id_topic', |
981 | - 'process' => function ($topics) |
|
981 | + 'process' => function($topics) |
|
982 | 982 | { |
983 | 983 | |
984 | 984 | global $smcFunc; |
@@ -1010,7 +1010,7 @@ discard block |
||
1010 | 1010 | GROUP BY lt.id_member', |
1011 | 1011 | 'fix_collect' => array( |
1012 | 1012 | 'index' => 'id_member', |
1013 | - 'process' => function ($members) |
|
1013 | + 'process' => function($members) |
|
1014 | 1014 | { |
1015 | 1015 | |
1016 | 1016 | global $smcFunc; |
@@ -1042,7 +1042,7 @@ discard block |
||
1042 | 1042 | GROUP BY lb.id_board', |
1043 | 1043 | 'fix_collect' => array( |
1044 | 1044 | 'index' => 'id_board', |
1045 | - 'process' => function ($boards) |
|
1045 | + 'process' => function($boards) |
|
1046 | 1046 | { |
1047 | 1047 | |
1048 | 1048 | global $smcFunc; |
@@ -1074,7 +1074,7 @@ discard block |
||
1074 | 1074 | GROUP BY lb.id_member', |
1075 | 1075 | 'fix_collect' => array( |
1076 | 1076 | 'index' => 'id_member', |
1077 | - 'process' => function ($members) use ($smcFunc) |
|
1077 | + 'process' => function($members) use ($smcFunc) |
|
1078 | 1078 | { |
1079 | 1079 | $smcFunc['db_query']('', ' |
1080 | 1080 | DELETE FROM {db_prefix}log_boards |
@@ -1103,7 +1103,7 @@ discard block |
||
1103 | 1103 | GROUP BY lmr.id_board', |
1104 | 1104 | 'fix_collect' => array( |
1105 | 1105 | 'index' => 'id_board', |
1106 | - 'process' => function ($boards) use ($smcFunc) |
|
1106 | + 'process' => function($boards) use ($smcFunc) |
|
1107 | 1107 | { |
1108 | 1108 | $smcFunc['db_query']('', ' |
1109 | 1109 | DELETE FROM {db_prefix}log_mark_read |
@@ -1132,7 +1132,7 @@ discard block |
||
1132 | 1132 | GROUP BY lmr.id_member', |
1133 | 1133 | 'fix_collect' => array( |
1134 | 1134 | 'index' => 'id_member', |
1135 | - 'process' => function ($members) use ($smcFunc) |
|
1135 | + 'process' => function($members) use ($smcFunc) |
|
1136 | 1136 | { |
1137 | 1137 | $smcFunc['db_query']('', ' |
1138 | 1138 | DELETE FROM {db_prefix}log_mark_read |
@@ -1161,7 +1161,7 @@ discard block |
||
1161 | 1161 | GROUP BY pmr.id_pm', |
1162 | 1162 | 'fix_collect' => array( |
1163 | 1163 | 'index' => 'id_pm', |
1164 | - 'process' => function ($pms) use ($smcFunc) |
|
1164 | + 'process' => function($pms) use ($smcFunc) |
|
1165 | 1165 | { |
1166 | 1166 | $smcFunc['db_query']('', ' |
1167 | 1167 | DELETE FROM {db_prefix}pm_recipients |
@@ -1191,7 +1191,7 @@ discard block |
||
1191 | 1191 | GROUP BY pmr.id_member', |
1192 | 1192 | 'fix_collect' => array( |
1193 | 1193 | 'index' => 'id_member', |
1194 | - 'process' => function ($members) |
|
1194 | + 'process' => function($members) |
|
1195 | 1195 | { |
1196 | 1196 | |
1197 | 1197 | global $smcFunc; |
@@ -1223,7 +1223,7 @@ discard block |
||
1223 | 1223 | AND mem.id_member IS NULL', |
1224 | 1224 | 'fix_collect' => array( |
1225 | 1225 | 'index' => 'id_pm', |
1226 | - 'process' => function ($guestMessages) |
|
1226 | + 'process' => function($guestMessages) |
|
1227 | 1227 | { |
1228 | 1228 | |
1229 | 1229 | global $smcFunc; |
@@ -1255,7 +1255,7 @@ discard block |
||
1255 | 1255 | GROUP BY ln.id_member', |
1256 | 1256 | 'fix_collect' => array( |
1257 | 1257 | 'index' => 'id_member', |
1258 | - 'process' => function ($members) use ($smcFunc) |
|
1258 | + 'process' => function($members) use ($smcFunc) |
|
1259 | 1259 | { |
1260 | 1260 | $smcFunc['db_query']('', ' |
1261 | 1261 | DELETE FROM {db_prefix}log_notify |
@@ -1282,7 +1282,7 @@ discard block |
||
1282 | 1282 | LEFT JOIN {db_prefix}log_search_subjects AS lss ON (lss.id_topic = t.id_topic) |
1283 | 1283 | WHERE t.id_topic BETWEEN {STEP_LOW} AND {STEP_HIGH} |
1284 | 1284 | AND lss.id_topic IS NULL', |
1285 | - 'fix_full_processing' => function ($result) |
|
1285 | + 'fix_full_processing' => function($result) |
|
1286 | 1286 | { |
1287 | 1287 | |
1288 | 1288 | global $smcFunc; |
@@ -1314,7 +1314,7 @@ discard block |
||
1314 | 1314 | ); |
1315 | 1315 | |
1316 | 1316 | }, |
1317 | - 'message_function' => function ($row) |
|
1317 | + 'message_function' => function($row) |
|
1318 | 1318 | { |
1319 | 1319 | |
1320 | 1320 | global $txt, $context; |
@@ -1344,7 +1344,7 @@ discard block |
||
1344 | 1344 | AND t.id_topic IS NULL', |
1345 | 1345 | 'fix_collect' => array( |
1346 | 1346 | 'index' => 'id_topic', |
1347 | - 'process' => function ($deleteTopics) |
|
1347 | + 'process' => function($deleteTopics) |
|
1348 | 1348 | { |
1349 | 1349 | |
1350 | 1350 | global $smcFunc; |
@@ -1376,7 +1376,7 @@ discard block |
||
1376 | 1376 | AND mem.id_member IS NULL', |
1377 | 1377 | 'fix_collect' => array( |
1378 | 1378 | 'index' => 'id_member', |
1379 | - 'process' => function ($members) |
|
1379 | + 'process' => function($members) |
|
1380 | 1380 | { |
1381 | 1381 | |
1382 | 1382 | global $smcFunc; |
@@ -1407,7 +1407,7 @@ discard block |
||
1407 | 1407 | AND p.id_poll IS NULL', |
1408 | 1408 | 'fix_collect' => array( |
1409 | 1409 | 'index' => 'id_poll', |
1410 | - 'process' => function ($polls) |
|
1410 | + 'process' => function($polls) |
|
1411 | 1411 | { |
1412 | 1412 | |
1413 | 1413 | global $smcFunc; |
@@ -1438,7 +1438,7 @@ discard block |
||
1438 | 1438 | AND lrc.id_report IS NULL', |
1439 | 1439 | 'fix_collect' => array( |
1440 | 1440 | 'index' => 'id_report', |
1441 | - 'process' => function ($reports) |
|
1441 | + 'process' => function($reports) |
|
1442 | 1442 | { |
1443 | 1443 | |
1444 | 1444 | global $smcFunc; |
@@ -1469,7 +1469,7 @@ discard block |
||
1469 | 1469 | AND lr.id_report IS NULL', |
1470 | 1470 | 'fix_collect' => array( |
1471 | 1471 | 'index' => 'id_report', |
1472 | - 'process' => function ($reports) |
|
1472 | + 'process' => function($reports) |
|
1473 | 1473 | { |
1474 | 1474 | global $smcFunc; |
1475 | 1475 | $smcFunc['db_query']('', ' |
@@ -1499,7 +1499,7 @@ discard block |
||
1499 | 1499 | GROUP BY lgr.id_member', |
1500 | 1500 | 'fix_collect' => array( |
1501 | 1501 | 'index' => 'id_member', |
1502 | - 'process' => function ($members) |
|
1502 | + 'process' => function($members) |
|
1503 | 1503 | { |
1504 | 1504 | global $smcFunc; |
1505 | 1505 | $smcFunc['db_query']('', ' |
@@ -1529,7 +1529,7 @@ discard block |
||
1529 | 1529 | GROUP BY lgr.id_group', |
1530 | 1530 | 'fix_collect' => array( |
1531 | 1531 | 'index' => 'id_group', |
1532 | - 'process' => function ($groups) |
|
1532 | + 'process' => function($groups) |
|
1533 | 1533 | { |
1534 | 1534 | global $smcFunc; |
1535 | 1535 | $smcFunc['db_query']('', ' |
@@ -232,7 +232,7 @@ |
||
232 | 232 | // In maintenance mode, only login is allowed and don't show OverlayDiv |
233 | 233 | echo ' |
234 | 234 | <ul class="floatleft welcome"> |
235 | - <li>', sprintf($txt['welcome_guest'], $txt['guest_title'], '', $scripturl. '?action=login', 'return true;'), '</li> |
|
235 | + <li>', sprintf($txt['welcome_guest'], $txt['guest_title'], '', $scripturl . '?action=login', 'return true;'), '</li> |
|
236 | 236 | </ul>'; |
237 | 237 | |
238 | 238 | if (!empty($modSettings['userLanguage']) && !empty($context['languages']) && count($context['languages']) > 1) |
@@ -945,7 +945,7 @@ |
||
945 | 945 | } |
946 | 946 | |
947 | 947 | echo isset($config_var['postinput']) ? ' |
948 | - ' . $config_var['postinput'] : '',' |
|
948 | + ' . $config_var['postinput'] : '', ' |
|
949 | 949 | </dd>'; |
950 | 950 | } |
951 | 951 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | $error_call++; |
40 | 40 | |
41 | 41 | // are we in a loop? |
42 | - if($error_call > 2) |
|
42 | + if ($error_call > 2) |
|
43 | 43 | { |
44 | 44 | if (!isset($db_show_debug) || $db_show_debug === false) |
45 | 45 | $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); |
@@ -3078,8 +3078,7 @@ |
||
3078 | 3078 | <div class="roundframe"> |
3079 | 3079 | <div> |
3080 | 3080 | ', !empty($context['tfa_backup']) ? ' |
3081 | - <div class="smalltext error">' . $txt['tfa_backup_used_desc'] . '</div>' : |
|
3082 | - ($modSettings['tfa_mode'] == 2 ? ' |
|
3081 | + <div class="smalltext error">' . $txt['tfa_backup_used_desc'] . '</div>' : ($modSettings['tfa_mode'] == 2 ? ' |
|
3083 | 3082 | <div class="smalltext"><strong>' . $txt['tfa_forced_desc'] . '</strong></div>' : ''), ' |
3084 | 3083 | <div class="smalltext">', $txt['tfa_desc'], '</div> |
3085 | 3084 | <div class="floatleft"> |
@@ -417,8 +417,8 @@ discard block |
||
417 | 417 | </div><!-- .attached_BBC --> |
418 | 418 | <div class="progressBar" role="progressBar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><span></span></div> |
419 | 419 | <div class="attach-ui"> |
420 | - <a data-dz-remove class="button cancel">', $txt['modify_cancel'] ,'</a> |
|
421 | - <a class="button upload">', $txt['upload'] ,'</a> |
|
420 | + <a data-dz-remove class="button cancel">', $txt['modify_cancel'], '</a> |
|
421 | + <a class="button upload">', $txt['upload'], '</a> |
|
422 | 422 | </div> |
423 | 423 | </div><!-- .attach-info --> |
424 | 424 | </div><!-- #au-template --> |
@@ -433,10 +433,10 @@ discard block |
||
433 | 433 | </dt> |
434 | 434 | <dd class="smalltext fallback"> |
435 | 435 | <div id="attachUpload" class="descbox"> |
436 | - <h5>', $txt['attach_drop_zone'] ,'</h5> |
|
437 | - <a class="button" id="attach-cancelAll">', $txt['attached_cancelAll'] ,'</a> |
|
438 | - <a class="button" id="attach-uploadAll">', $txt['attached_uploadAll'] ,'</a> |
|
439 | - <a class="button fileinput-button">', $txt['attach_add'] ,'</a> |
|
436 | + <h5>', $txt['attach_drop_zone'], '</h5> |
|
437 | + <a class="button" id="attach-cancelAll">', $txt['attached_cancelAll'], '</a> |
|
438 | + <a class="button" id="attach-uploadAll">', $txt['attached_uploadAll'], '</a> |
|
439 | + <a class="button fileinput-button">', $txt['attach_add'], '</a> |
|
440 | 440 | <div id="total-progress" class="progressBar" role="progressBar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><span></span></div> |
441 | 441 | <div class="fallback"> |
442 | 442 | <input type="file" multiple="multiple" name="attachment[]" id="attachment1" class="fallback"> (<a href="javascript:void(0);" onclick="cleanFileInput(\'attachment1\');">', $txt['clean_attach'], '</a>) |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | // Option to delete an event if user is editing one. |
542 | 542 | if ($context['make_event'] && !$context['event']['new']) |
543 | 543 | echo ' |
544 | - <input type="submit" name="deleteevent" value="', $txt['event_delete'], '" data-confirm="', $txt['event_delete_confirm'] ,'" class="button you_sure">'; |
|
544 | + <input type="submit" name="deleteevent" value="', $txt['event_delete'], '" data-confirm="', $txt['event_delete_confirm'], '" class="button you_sure">'; |
|
545 | 545 | |
546 | 546 | echo ' |
547 | 547 | </span> |
@@ -795,7 +795,7 @@ discard block |
||
795 | 795 | });'; |
796 | 796 | |
797 | 797 | echo ' |
798 | - var oEditorID = "', $context['post_box_name'] ,'"; |
|
798 | + var oEditorID = "', $context['post_box_name'], '"; |
|
799 | 799 | var oEditorObject = oEditorHandle_', $context['post_box_name'], '; |
800 | 800 | </script>'; |
801 | 801 | |
@@ -827,7 +827,7 @@ discard block |
||
827 | 827 | if ($context['can_quote']) |
828 | 828 | echo ' |
829 | 829 | <ul class="quickbuttons" id="msg_', $post['id'], '_quote"> |
830 | - <li style="display:none;" id="quoteSelected_', $post['id'], '" data-msgid="', $post['id'], '"><a href="javascript:void(0)"><span class="generic_icons quote_selected"></span>', $txt['quote_selected_action'] ,'</a></li> |
|
830 | + <li style="display:none;" id="quoteSelected_', $post['id'], '" data-msgid="', $post['id'], '"><a href="javascript:void(0)"><span class="generic_icons quote_selected"></span>', $txt['quote_selected_action'], '</a></li> |
|
831 | 831 | <li id="post_modify"><a href="#postmodify" onclick="return insertQuoteFast(', $post['id'], ');"><span class="generic_icons quote"></span>', $txt['quote'], '</a></li> |
832 | 832 | </ul>'; |
833 | 833 | |
@@ -911,7 +911,7 @@ discard block |
||
911 | 911 | <head> |
912 | 912 | <meta charset="', $context['character_set'], '"> |
913 | 913 | <title>', $txt['spell_check'], '</title> |
914 | - <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'] ,'"> |
|
914 | + <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'], '"> |
|
915 | 915 | <style> |
916 | 916 | body, td { |
917 | 917 | font-size: small; |
@@ -941,8 +941,8 @@ discard block |
||
941 | 941 | var spell_formname = window.opener.spell_formname; |
942 | 942 | var spell_fieldname = window.opener.spell_fieldname; |
943 | 943 | </script> |
944 | - <script src="', $settings['default_theme_url'], '/scripts/spellcheck.js', $modSettings['browser_cache'] ,'"></script> |
|
945 | - <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'] ,'"></script> |
|
944 | + <script src="', $settings['default_theme_url'], '/scripts/spellcheck.js', $modSettings['browser_cache'], '"></script> |
|
945 | + <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'], '"></script> |
|
946 | 946 | <script> |
947 | 947 | ', $context['spell_js'], ' |
948 | 948 | </script> |
@@ -986,7 +986,7 @@ discard block |
||
986 | 986 | <head> |
987 | 987 | <meta charset="', $context['character_set'], '"> |
988 | 988 | <title>', $txt['retrieving_quote'], '</title> |
989 | - <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'] ,'"></script> |
|
989 | + <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'], '"></script> |
|
990 | 990 | </head> |
991 | 991 | <body> |
992 | 992 | ', $txt['retrieving_quote'], ' |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | |
232 | 232 | foreach ($message['custom_fields']['above_member'] as $custom) |
233 | 233 | echo ' |
234 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
234 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
235 | 235 | |
236 | 236 | echo ' |
237 | 237 | </ul> |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | if (!empty($message['custom_fields']['below_avatar'])) |
267 | 267 | foreach ($message['custom_fields']['below_avatar'] as $custom) |
268 | 268 | echo ' |
269 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
269 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
270 | 270 | |
271 | 271 | if (!$message['member']['is_guest']) |
272 | 272 | echo ' |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | |
309 | 309 | foreach ($message['custom_fields']['icons'] as $custom) |
310 | 310 | echo ' |
311 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
311 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
312 | 312 | |
313 | 313 | echo ' |
314 | 314 | </ol> |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | if (!empty($message['custom_fields']['standard'])) |
373 | 373 | foreach ($message['custom_fields']['standard'] as $custom) |
374 | 374 | echo ' |
375 | - <li class="custom ', $custom['col_name'] ,'">', $custom['title'], ': ', $custom['value'], '</li>'; |
|
375 | + <li class="custom ', $custom['col_name'], '">', $custom['title'], ': ', $custom['value'], '</li>'; |
|
376 | 376 | |
377 | 377 | // Are we showing the warning status? |
378 | 378 | if ($message['member']['can_see_warning']) |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | if (!empty($message['custom_fields']['bottom_poster'])) |
384 | 384 | foreach ($message['custom_fields']['bottom_poster'] as $custom) |
385 | 385 | echo ' |
386 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
386 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
387 | 387 | } |
388 | 388 | |
389 | 389 | // Done with the information about the poster... on to the post itself. |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | |
485 | 485 | foreach ($message['custom_fields']['above_signature'] as $custom) |
486 | 486 | echo ' |
487 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
487 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
488 | 488 | |
489 | 489 | echo ' |
490 | 490 | </ul> |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | |
508 | 508 | foreach ($message['custom_fields']['below_signature'] as $custom) |
509 | 509 | echo ' |
510 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
510 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
511 | 511 | |
512 | 512 | echo ' |
513 | 513 | </ul> |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | while ($message = $context['get_pmessage']('subject')) |
644 | 644 | { |
645 | 645 | echo ' |
646 | - <tr class="windowbg', $message['is_unread'] ? ' unread_pm' : '','"> |
|
646 | + <tr class="windowbg', $message['is_unread'] ? ' unread_pm' : '', '"> |
|
647 | 647 | <td class="table_icon"> |
648 | 648 | <script> |
649 | 649 | currentLabels[', $message['id'], '] = {'; |
@@ -922,13 +922,13 @@ discard block |
||
922 | 922 | // You can only reply if they are not a guest... |
923 | 923 | if (!$message['member']['is_guest']) |
924 | 924 | echo ' |
925 | - <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'sent' ? '' : $message['member']['id'], '">', $quote_button , '</a>', $context['menu_separator'], ' |
|
926 | - <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=', $message['member']['id'], '">', $reply_button , '</a> ', $context['menu_separator']; |
|
925 | + <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote;u=', $context['folder'] == 'sent' ? '' : $message['member']['id'], '">', $quote_button, '</a>', $context['menu_separator'], ' |
|
926 | + <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';u=', $message['member']['id'], '">', $reply_button, '</a> ', $context['menu_separator']; |
|
927 | 927 | |
928 | 928 | // This is for "forwarding" - even if the member is gone. |
929 | 929 | else |
930 | 930 | echo ' |
931 | - <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote">', $quote_button , '</a>', $context['menu_separator']; |
|
931 | + <a href="', $scripturl, '?action=pm;sa=send;f=', $context['folder'], $context['current_label_id'] != -1 ? ';l=' . $context['current_label_id'] : '', ';pmsg=', $message['id'], ';quote">', $quote_button, '</a>', $context['menu_separator']; |
|
932 | 932 | } |
933 | 933 | |
934 | 934 | echo ' |
@@ -1031,7 +1031,7 @@ discard block |
||
1031 | 1031 | <div class="', empty($context['error_type']) || $context['error_type'] != 'serious' ? 'noticebox' : 'errorbox', '"', empty($context['post_error']['messages']) ? ' style="display: none"' : '', ' id="errors"> |
1032 | 1032 | <dl> |
1033 | 1033 | <dt> |
1034 | - <strong id="error_serious">', $txt['error_while_submitting'] , '</strong> |
|
1034 | + <strong id="error_serious">', $txt['error_while_submitting'], '</strong> |
|
1035 | 1035 | </dt> |
1036 | 1036 | <dd class="error" id="error_list"> |
1037 | 1037 | ', empty($context['post_error']['messages']) ? '' : implode('<br>', $context['post_error']['messages']), ' |
@@ -1087,7 +1087,7 @@ discard block |
||
1087 | 1087 | <span', (isset($context['post_error']['no_subject']) ? ' class="error"' : ''), ' id="caption_subject">', $txt['subject'], ':</span> |
1088 | 1088 | </dt> |
1089 | 1089 | <dd id="pm_subject"> |
1090 | - <input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80"',isset($context['post_error']['no_subject']) ? ' class="error"' : '', '> |
|
1090 | + <input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80"', isset($context['post_error']['no_subject']) ? ' class="error"' : '', '> |
|
1091 | 1091 | </dd> |
1092 | 1092 | </dl> |
1093 | 1093 | <hr>'; |
@@ -1452,7 +1452,7 @@ discard block |
||
1452 | 1452 | echo ' |
1453 | 1453 | <div class="padding"> |
1454 | 1454 | <input type="submit" name="save" value="', $txt['save'], '" class="button"> |
1455 | - <input type="submit" name="delete" value="', $txt['quickmod_delete_selected'], '" data-confirm="', $txt['pm_labels_delete'] ,'" class="button you_sure"> |
|
1455 | + <input type="submit" name="delete" value="', $txt['quickmod_delete_selected'], '" data-confirm="', $txt['pm_labels_delete'], '" class="button you_sure"> |
|
1456 | 1456 | </div>'; |
1457 | 1457 | |
1458 | 1458 | echo ' |
@@ -1617,7 +1617,7 @@ discard block |
||
1617 | 1617 | if (!empty($context['rules'])) |
1618 | 1618 | echo ' |
1619 | 1619 | <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '"> |
1620 | - <input type="submit" name="delselected" value="', $txt['pm_delete_selected_rule'], '" data-confirm="', $txt['pm_js_delete_rule_confirm'] ,'" class="button smalltext you_sure">'; |
|
1620 | + <input type="submit" name="delselected" value="', $txt['pm_delete_selected_rule'], '" data-confirm="', $txt['pm_js_delete_rule_confirm'], '" class="button smalltext you_sure">'; |
|
1621 | 1621 | |
1622 | 1622 | echo ' |
1623 | 1623 | </div> |
@@ -1860,9 +1860,9 @@ discard block |
||
1860 | 1860 | |
1861 | 1861 | echo ' |
1862 | 1862 | <select name="acttype[', $k, ']" id="acttype', $k, '" onchange="updateActionDef(', $k, '); rebuildRuleDesc();"> |
1863 | - <option value="">', $txt['pm_rule_sel_action'] , ':</option> |
|
1864 | - <option value="lab"', $action['t'] == 'lab' ? ' selected' : '', '>', $txt['pm_rule_label'] , '</option> |
|
1865 | - <option value="del"', $action['t'] == 'del' ? ' selected' : '', '>', $txt['pm_rule_delete'] , '</option> |
|
1863 | + <option value="">', $txt['pm_rule_sel_action'], ':</option> |
|
1864 | + <option value="lab"', $action['t'] == 'lab' ? ' selected' : '', '>', $txt['pm_rule_label'], '</option> |
|
1865 | + <option value="del"', $action['t'] == 'del' ? ' selected' : '', '>', $txt['pm_rule_delete'], '</option> |
|
1866 | 1866 | </select> |
1867 | 1867 | <span id="labdiv', $k, '"> |
1868 | 1868 | <select name="labdef[', $k, ']" id="labdef', $k, '" onchange="rebuildRuleDesc();"> |
@@ -1974,7 +1974,7 @@ discard block |
||
1974 | 1974 | </div> |
1975 | 1975 | <ul class="quickbuttons"> |
1976 | 1976 | <li><a href="', $scripturl, '?action=pm;sa=showpmdrafts;id_draft=', $draft['id_draft'], ';', $context['session_var'], '=', $context['session_id'], '"><span class="generic_icons modifybutton"></span>', $txt['draft_edit'], '</a></li> |
1977 | - <li><a href="', $scripturl, '?action=pm;sa=showpmdrafts;delete=', $draft['id_draft'], ';', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['draft_remove'] ,'?" class="you_sure"><span class="generic_icons remove_button"></span>', $txt['draft_delete'], '</a></li> |
|
1977 | + <li><a href="', $scripturl, '?action=pm;sa=showpmdrafts;delete=', $draft['id_draft'], ';', $context['session_var'], '=', $context['session_id'], '" data-confirm="', $txt['draft_remove'], '?" class="you_sure"><span class="generic_icons remove_button"></span>', $txt['draft_delete'], '</a></li> |
|
1978 | 1978 | </ul> |
1979 | 1979 | </div><!-- .windowbg -->'; |
1980 | 1980 | } |
@@ -198,22 +198,22 @@ discard block |
||
198 | 198 | |
199 | 199 | case 'date': |
200 | 200 | if (preg_match('~^(\d{4})-([0-1]?\d)-([0-3]?\d)$~', $replacement, $date_matches) === 1) |
201 | - return sprintf('\'%04d-%02d-%02d\'', $date_matches[1], $date_matches[2], $date_matches[3]).'::date'; |
|
201 | + return sprintf('\'%04d-%02d-%02d\'', $date_matches[1], $date_matches[2], $date_matches[3]) . '::date'; |
|
202 | 202 | else |
203 | 203 | smf_db_error_backtrace('Wrong value type sent to the database. Date expected. (' . $matches[2] . ')', '', E_USER_ERROR, __FILE__, __LINE__); |
204 | 204 | break; |
205 | 205 | |
206 | 206 | case 'time': |
207 | 207 | if (preg_match('~^([0-1]?\d|2[0-3]):([0-5]\d):([0-5]\d)$~', $replacement, $time_matches) === 1) |
208 | - return sprintf('\'%02d:%02d:%02d\'', $time_matches[1], $time_matches[2], $time_matches[3]).'::time'; |
|
208 | + return sprintf('\'%02d:%02d:%02d\'', $time_matches[1], $time_matches[2], $time_matches[3]) . '::time'; |
|
209 | 209 | else |
210 | 210 | smf_db_error_backtrace('Wrong value type sent to the database. Time expected. (' . $matches[2] . ')', '', E_USER_ERROR, __FILE__, __LINE__); |
211 | 211 | break; |
212 | 212 | |
213 | 213 | case 'datetime': |
214 | 214 | if (preg_match('~^(\d{4})-([0-1]?\d)-([0-3]?\d) ([0-1]?\d|2[0-3]):([0-5]\d):([0-5]\d)$~', $replacement, $datetime_matches) === 1) |
215 | - return 'to_timestamp('. |
|
216 | - sprintf('\'%04d-%02d-%02d %02d:%02d:%02d\'', $datetime_matches[1], $datetime_matches[2], $datetime_matches[3], $datetime_matches[4], $datetime_matches[5] ,$datetime_matches[6]). |
|
215 | + return 'to_timestamp(' . |
|
216 | + sprintf('\'%04d-%02d-%02d %02d:%02d:%02d\'', $datetime_matches[1], $datetime_matches[2], $datetime_matches[3], $datetime_matches[4], $datetime_matches[5], $datetime_matches[6]) . |
|
217 | 217 | ',\'YYYY-MM-DD HH24:MI:SS\')'; |
218 | 218 | else |
219 | 219 | smf_db_error_backtrace('Wrong value type sent to the database. Datetime expected. (' . $matches[2] . ')', '', E_USER_ERROR, __FILE__, __LINE__); |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | $old_pos = 0; |
424 | 424 | $pos = -1; |
425 | 425 | // Remove the string escape for better runtime |
426 | - $db_string_1 = str_replace('\'\'','',$db_string); |
|
426 | + $db_string_1 = str_replace('\'\'', '', $db_string); |
|
427 | 427 | while (true) |
428 | 428 | { |
429 | 429 | $pos = strpos($db_string_1, '\'', $pos + 1); |
@@ -801,7 +801,7 @@ discard block |
||
801 | 801 | if (!empty($keys) && (count($keys) > 0) && $returnmode > 0) |
802 | 802 | { |
803 | 803 | // we only take the first key |
804 | - $returning = ' RETURNING '.$keys[0]; |
|
804 | + $returning = ' RETURNING ' . $keys[0]; |
|
805 | 805 | $with_returning = true; |
806 | 806 | } |
807 | 807 | |
@@ -832,7 +832,7 @@ discard block |
||
832 | 832 | INSERT INTO ' . $table . '("' . implode('", "', $indexed_columns) . '") |
833 | 833 | VALUES |
834 | 834 | ' . implode(', |
835 | - ', $insertRows).$replace.$returning, |
|
835 | + ', $insertRows) . $replace . $returning, |
|
836 | 836 | array( |
837 | 837 | 'security_override' => true, |
838 | 838 | 'db_error_skip' => $method == 'ignore' || $table === $db_prefix . 'log_errors', |
@@ -845,7 +845,7 @@ discard block |
||
845 | 845 | if ($returnmode === 2) |
846 | 846 | $return_var = array(); |
847 | 847 | |
848 | - while(($row = $smcFunc['db_fetch_row']($request)) && $with_returning) |
|
848 | + while (($row = $smcFunc['db_fetch_row']($request)) && $with_returning) |
|
849 | 849 | { |
850 | 850 | if (is_numeric($row[0])) // try to emulate mysql limitation |
851 | 851 | { |
@@ -254,8 +254,8 @@ discard block |
||
254 | 254 | |
255 | 255 | case 'datetime': |
256 | 256 | if (preg_match('~^(\d{4})-([0-1]?\d)-([0-3]?\d) ([0-1]?\d|2[0-3]):([0-5]\d):([0-5]\d)$~', $replacement, $datetime_matches) === 1) |
257 | - return 'str_to_date('. |
|
258 | - sprintf('\'%04d-%02d-%02d %02d:%02d:%02d\'', $datetime_matches[1], $datetime_matches[2], $datetime_matches[3], $datetime_matches[4], $datetime_matches[5] ,$datetime_matches[6]). |
|
257 | + return 'str_to_date(' . |
|
258 | + sprintf('\'%04d-%02d-%02d %02d:%02d:%02d\'', $datetime_matches[1], $datetime_matches[2], $datetime_matches[3], $datetime_matches[4], $datetime_matches[5], $datetime_matches[6]) . |
|
259 | 259 | ',\'%Y-%m-%d %h:%i:%s\')'; |
260 | 260 | else |
261 | 261 | smf_db_error_backtrace('Wrong value type sent to the database. Datetime expected. (' . $matches[2] . ')', '', E_USER_ERROR, __FILE__, __LINE__); |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | $old_pos = 0; |
460 | 460 | $pos = -1; |
461 | 461 | // Remove the string escape for better runtime |
462 | - $db_string_1 = str_replace('\\\'','',$db_string); |
|
462 | + $db_string_1 = str_replace('\\\'', '', $db_string); |
|
463 | 463 | while (true) |
464 | 464 | { |
465 | 465 | $pos = strpos($db_string_1, '\'', $pos + 1); |
@@ -841,7 +841,7 @@ discard block |
||
841 | 841 | { |
842 | 842 | $count = count($insertRows); |
843 | 843 | $ai = 0; |
844 | - for($i = 0; $i < $count; $i++) |
|
844 | + for ($i = 0; $i < $count; $i++) |
|
845 | 845 | { |
846 | 846 | $old_id = $smcFunc['db_insert_id'](); |
847 | 847 | |
@@ -867,13 +867,13 @@ discard block |
||
867 | 867 | $count2 = count($indexed_columns); |
868 | 868 | for ($x = 0; $x < $count2; $x++) |
869 | 869 | { |
870 | - $where_string += key($indexed_columns[$x]) . ' = '. $insertRows[$i][$x]; |
|
870 | + $where_string += key($indexed_columns[$x]) . ' = ' . $insertRows[$i][$x]; |
|
871 | 871 | if (($x + 1) < $count2) |
872 | 872 | $where_string += ' AND '; |
873 | 873 | } |
874 | 874 | |
875 | - $request = $smcFunc['db_query']('',' |
|
876 | - SELECT `'. $keys[0] . '` FROM ' . $table .' |
|
875 | + $request = $smcFunc['db_query']('', ' |
|
876 | + SELECT `'. $keys[0] . '` FROM ' . $table . ' |
|
877 | 877 | WHERE ' . $where_string . ' LIMIT 1', |
878 | 878 | array() |
879 | 879 | ); |
@@ -902,7 +902,7 @@ discard block |
||
902 | 902 | $return_var = array(); |
903 | 903 | $count = count($insertRows); |
904 | 904 | $start = smf_db_insert_id($table, $keys[0]); |
905 | - for ($i = 0; $i < $count; $i++ ) |
|
905 | + for ($i = 0; $i < $count; $i++) |
|
906 | 906 | $return_var[] = $start + $i; |
907 | 907 | } |
908 | 908 | return $return_var; |
@@ -1035,7 +1035,7 @@ discard block |
||
1035 | 1035 | mysqli_stmt_bind_param($mysql_error_data_prep, 'iissssssi', |
1036 | 1036 | $error_array[0], $error_array[1], $error_array[2], $error_array[3], $error_array[4], $error_array[5], $error_array[6], |
1037 | 1037 | $error_array[7], $error_array[8]); |
1038 | - mysqli_stmt_execute ($mysql_error_data_prep); |
|
1038 | + mysqli_stmt_execute($mysql_error_data_prep); |
|
1039 | 1039 | } |
1040 | 1040 | |
1041 | 1041 | ?> |
1042 | 1042 | \ No newline at end of file |