@@ -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> |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | if (!empty($message['custom_fields']['below_avatar'])) |
| 269 | 269 | foreach ($message['custom_fields']['below_avatar'] as $custom) |
| 270 | 270 | echo ' |
| 271 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
| 271 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
| 272 | 272 | |
| 273 | 273 | if (!$message['member']['is_guest']) |
| 274 | 274 | echo ' |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | |
| 311 | 311 | foreach ($message['custom_fields']['icons'] as $custom) |
| 312 | 312 | echo ' |
| 313 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
| 313 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
| 314 | 314 | |
| 315 | 315 | echo ' |
| 316 | 316 | </ol> |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | if (!empty($message['custom_fields']['standard'])) |
| 369 | 369 | foreach ($message['custom_fields']['standard'] as $custom) |
| 370 | 370 | echo ' |
| 371 | - <li class="custom ', $custom['col_name'] ,'">', $custom['title'], ': ', $custom['value'], '</li>'; |
|
| 371 | + <li class="custom ', $custom['col_name'], '">', $custom['title'], ': ', $custom['value'], '</li>'; |
|
| 372 | 372 | |
| 373 | 373 | // Are we showing the warning status? |
| 374 | 374 | if ($message['member']['can_see_warning']) |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | if (!empty($message['custom_fields']['bottom_poster'])) |
| 380 | 380 | foreach ($message['custom_fields']['bottom_poster'] as $custom) |
| 381 | 381 | echo ' |
| 382 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
| 382 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
| 383 | 383 | } |
| 384 | 384 | |
| 385 | 385 | // Done with the information about the poster... on to the post itself. |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | |
| 479 | 479 | foreach ($message['custom_fields']['above_signature'] as $custom) |
| 480 | 480 | echo ' |
| 481 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
| 481 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
| 482 | 482 | |
| 483 | 483 | echo ' |
| 484 | 484 | </ul> |
@@ -499,7 +499,7 @@ discard block |
||
| 499 | 499 | |
| 500 | 500 | foreach ($message['custom_fields']['below_signature'] as $custom) |
| 501 | 501 | echo ' |
| 502 | - <li class="custom ', $custom['col_name'] ,'">', $custom['value'], '</li>'; |
|
| 502 | + <li class="custom ', $custom['col_name'], '">', $custom['value'], '</li>'; |
|
| 503 | 503 | |
| 504 | 504 | echo ' |
| 505 | 505 | </ul> |
@@ -631,7 +631,7 @@ discard block |
||
| 631 | 631 | while ($message = $context['get_pmessage']('subject')) |
| 632 | 632 | { |
| 633 | 633 | echo ' |
| 634 | - <tr class="windowbg', $message['is_unread'] ? ' unread_pm' : '','"> |
|
| 634 | + <tr class="windowbg', $message['is_unread'] ? ' unread_pm' : '', '"> |
|
| 635 | 635 | <td class="table_icon"> |
| 636 | 636 | <script> |
| 637 | 637 | currentLabels[', $message['id'], '] = {'; |
@@ -903,12 +903,12 @@ discard block |
||
| 903 | 903 | // You can only reply if they are not a guest... |
| 904 | 904 | if (!$message['member']['is_guest']) |
| 905 | 905 | echo ' |
| 906 | - <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'], ' |
|
| 907 | - <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']; |
|
| 906 | + <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'], ' |
|
| 907 | + <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']; |
|
| 908 | 908 | // This is for "forwarding" - even if the member is gone. |
| 909 | 909 | else |
| 910 | 910 | echo ' |
| 911 | - <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']; |
|
| 911 | + <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']; |
|
| 912 | 912 | } |
| 913 | 913 | |
| 914 | 914 | echo ' |
@@ -1008,7 +1008,7 @@ discard block |
||
| 1008 | 1008 | <div class="', empty($context['error_type']) || $context['error_type'] != 'serious' ? 'noticebox' : 'errorbox', '"', empty($context['post_error']['messages']) ? ' style="display: none"' : '', ' id="errors"> |
| 1009 | 1009 | <dl> |
| 1010 | 1010 | <dt> |
| 1011 | - <strong id="error_serious">', $txt['error_while_submitting'] , '</strong> |
|
| 1011 | + <strong id="error_serious">', $txt['error_while_submitting'], '</strong> |
|
| 1012 | 1012 | </dt> |
| 1013 | 1013 | <dd class="error" id="error_list"> |
| 1014 | 1014 | ', empty($context['post_error']['messages']) ? '' : implode('<br>', $context['post_error']['messages']), ' |
@@ -1064,7 +1064,7 @@ discard block |
||
| 1064 | 1064 | <span', (isset($context['post_error']['no_subject']) ? ' class="error"' : ''), ' id="caption_subject">', $txt['subject'], ':</span> |
| 1065 | 1065 | </dt> |
| 1066 | 1066 | <dd id="pm_subject"> |
| 1067 | - <input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80"',isset($context['post_error']['no_subject']) ? ' class="error"' : ' class="input_text"', '/> |
|
| 1067 | + <input type="text" name="subject" value="', $context['subject'], '" tabindex="', $context['tabindex']++, '" size="80" maxlength="80"', isset($context['post_error']['no_subject']) ? ' class="error"' : ' class="input_text"', '/> |
|
| 1068 | 1068 | </dd> |
| 1069 | 1069 | </dl><hr>'; |
| 1070 | 1070 | |
@@ -1427,7 +1427,7 @@ discard block |
||
| 1427 | 1427 | echo ' |
| 1428 | 1428 | <div class="padding"> |
| 1429 | 1429 | <input type="submit" name="save" value="', $txt['save'], '" class="button_submit"> |
| 1430 | - <input type="submit" name="delete" value="', $txt['quickmod_delete_selected'], '" data-confirm="', $txt['pm_labels_delete'] ,'" class="button_submit you_sure"> |
|
| 1430 | + <input type="submit" name="delete" value="', $txt['quickmod_delete_selected'], '" data-confirm="', $txt['pm_labels_delete'], '" class="button_submit you_sure"> |
|
| 1431 | 1431 | </div>'; |
| 1432 | 1432 | |
| 1433 | 1433 | echo ' |
@@ -1591,7 +1591,7 @@ discard block |
||
| 1591 | 1591 | if (!empty($context['rules'])) |
| 1592 | 1592 | echo ' |
| 1593 | 1593 | <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '"> |
| 1594 | - <input type="submit" name="delselected" value="', $txt['pm_delete_selected_rule'], '" data-confirm="', $txt['pm_js_delete_rule_confirm'] ,'" class="button_submit smalltext you_sure">'; |
|
| 1594 | + <input type="submit" name="delselected" value="', $txt['pm_delete_selected_rule'], '" data-confirm="', $txt['pm_js_delete_rule_confirm'], '" class="button_submit smalltext you_sure">'; |
|
| 1595 | 1595 | |
| 1596 | 1596 | echo ' |
| 1597 | 1597 | </div> |
@@ -1832,9 +1832,9 @@ discard block |
||
| 1832 | 1832 | |
| 1833 | 1833 | echo ' |
| 1834 | 1834 | <select name="acttype[', $k, ']" id="acttype', $k, '" onchange="updateActionDef(', $k, '); rebuildRuleDesc();"> |
| 1835 | - <option value="">', $txt['pm_rule_sel_action'] , ':</option> |
|
| 1836 | - <option value="lab"', $action['t'] == 'lab' ? ' selected' : '', '>', $txt['pm_rule_label'] , '</option> |
|
| 1837 | - <option value="del"', $action['t'] == 'del' ? ' selected' : '', '>', $txt['pm_rule_delete'] , '</option> |
|
| 1835 | + <option value="">', $txt['pm_rule_sel_action'], ':</option> |
|
| 1836 | + <option value="lab"', $action['t'] == 'lab' ? ' selected' : '', '>', $txt['pm_rule_label'], '</option> |
|
| 1837 | + <option value="del"', $action['t'] == 'del' ? ' selected' : '', '>', $txt['pm_rule_delete'], '</option> |
|
| 1838 | 1838 | </select> |
| 1839 | 1839 | <span id="labdiv', $k, '"> |
| 1840 | 1840 | <select name="labdef[', $k, ']" id="labdef', $k, '" onchange="rebuildRuleDesc();"> |
@@ -1951,7 +1951,7 @@ discard block |
||
| 1951 | 1951 | </div> |
| 1952 | 1952 | <ul class="quickbuttons"> |
| 1953 | 1953 | <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> |
| 1954 | - <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> |
|
| 1954 | + <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> |
|
| 1955 | 1955 | </ul> |
| 1956 | 1956 | </div>'; |
| 1957 | 1957 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | |
| 40 | 40 | foreach ($category['boards'] as $board) |
| 41 | 41 | echo ' |
| 42 | - <option value="', $board['id'], '"', $board['selected'] ? ' selected' : '', $board['id'] == $context['current_board'] ? ' disabled' : '', '>', $board['child_level'] > 0 ? str_repeat('==', $board['child_level']-1) . '=> ' : '', $board['name'], '</option>'; |
|
| 42 | + <option value="', $board['id'], '"', $board['selected'] ? ' selected' : '', $board['id'] == $context['current_board'] ? ' disabled' : '', '>', $board['child_level'] > 0 ? str_repeat('==', $board['child_level'] - 1) . '=> ' : '', $board['name'], '</option>'; |
|
| 43 | 43 | echo ' |
| 44 | 44 | </optgroup>'; |
| 45 | 45 | } |
@@ -139,10 +139,10 @@ discard block |
||
| 139 | 139 | foreach ($context['posting_fields'] as $pf) |
| 140 | 140 | echo ' |
| 141 | 141 | <dt> |
| 142 | - ', $pf['dt'] ,' |
|
| 142 | + ', $pf['dt'], ' |
|
| 143 | 143 | </dt> |
| 144 | 144 | <dd> |
| 145 | - ', $pf['dd'] ,' |
|
| 145 | + ', $pf['dd'], ' |
|
| 146 | 146 | </dd>'; |
| 147 | 147 | |
| 148 | 148 | |
@@ -459,13 +459,13 @@ discard block |
||
| 459 | 459 | <p class="message" data-dz-message></p> |
| 460 | 460 | <p class="attached_BBC"> |
| 461 | 461 | <input type="text" name="attachBBC" value="" readonly> |
| 462 | - <a class="button_submit insertBBC">', $txt['attached_insertBBC'] ,'</a> |
|
| 462 | + <a class="button_submit insertBBC">', $txt['attached_insertBBC'], '</a> |
|
| 463 | 463 | </p> |
| 464 | 464 | <p class="progressBar" role="progressBar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><span></span></p> |
| 465 | 465 | </div> |
| 466 | 466 | <div class="attach-ui"> |
| 467 | - <a data-dz-remove class="button_submit delete">', $txt['modify_cancel'] ,'</a> |
|
| 468 | - <a class="button_submit start">', $txt['upload'] ,'</a> |
|
| 467 | + <a data-dz-remove class="button_submit delete">', $txt['modify_cancel'], '</a> |
|
| 468 | + <a class="button_submit start">', $txt['upload'], '</a> |
|
| 469 | 469 | </div> |
| 470 | 470 | </div> |
| 471 | 471 | </div> |
@@ -482,10 +482,10 @@ discard block |
||
| 482 | 482 | </dt> |
| 483 | 483 | <dd class="smalltext fallback"> |
| 484 | 484 | <div id="attachUpload" class="descbox"> |
| 485 | - <h5>', $txt['attach_drop_zone'] ,'</h5> |
|
| 486 | - <a class="button_submit" id="attach-cancelAll">', $txt['attached_cancelAll'] ,'</a> |
|
| 487 | - <a class="button_submit" id="attach-uploadAll">', $txt['attached_uploadAll'] ,'</a> |
|
| 488 | - <a class="button_submit fileinput-button">', $txt['attach_add'] ,'</a> |
|
| 485 | + <h5>', $txt['attach_drop_zone'], '</h5> |
|
| 486 | + <a class="button_submit" id="attach-cancelAll">', $txt['attached_cancelAll'], '</a> |
|
| 487 | + <a class="button_submit" id="attach-uploadAll">', $txt['attached_uploadAll'], '</a> |
|
| 488 | + <a class="button_submit fileinput-button">', $txt['attach_add'], '</a> |
|
| 489 | 489 | <div id="total-progress" class="progressBar" role="progressBar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><span></span></div> |
| 490 | 490 | <div class="fallback"> |
| 491 | 491 | <input type="file" multiple="multiple" name="attachment[]" id="attachment1" class="input_file fallback"> (<a href="javascript:void(0);" onclick="cleanFileInput(\'attachment1\');">', $txt['clean_attach'], '</a>) |
@@ -592,7 +592,7 @@ discard block |
||
| 592 | 592 | // Option to delete an event if user is editing one. |
| 593 | 593 | if ($context['make_event'] && !$context['event']['new']) |
| 594 | 594 | echo ' |
| 595 | - <input type="submit" name="deleteevent" value="', $txt['event_delete'], '" data-confirm="', $txt['event_delete_confirm'] ,'" class="button_submit you_sure">'; |
|
| 595 | + <input type="submit" name="deleteevent" value="', $txt['event_delete'], '" data-confirm="', $txt['event_delete_confirm'], '" class="button_submit you_sure">'; |
|
| 596 | 596 | |
| 597 | 597 | echo ' |
| 598 | 598 | </span> |
@@ -846,7 +846,7 @@ discard block |
||
| 846 | 846 | });'; |
| 847 | 847 | |
| 848 | 848 | echo ' |
| 849 | - var oEditorID = "', $context['post_box_name'] ,'"; |
|
| 849 | + var oEditorID = "', $context['post_box_name'], '"; |
|
| 850 | 850 | var oEditorObject = oEditorHandle_', $context['post_box_name'], '; |
| 851 | 851 | </script>'; |
| 852 | 852 | |
@@ -878,7 +878,7 @@ discard block |
||
| 878 | 878 | { |
| 879 | 879 | echo ' |
| 880 | 880 | <ul class="quickbuttons" id="msg_', $post['id'], '_quote"> |
| 881 | - <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> |
|
| 881 | + <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> |
|
| 882 | 882 | <li id="post_modify"><a href="#postmodify" onclick="return insertQuoteFast(', $post['id'], ');"><span class="generic_icons quote"></span>', $txt['quote'], '</a></li> |
| 883 | 883 | </ul>'; |
| 884 | 884 | } |
@@ -965,7 +965,7 @@ discard block |
||
| 965 | 965 | <head> |
| 966 | 966 | <meta charset="', $context['character_set'], '"> |
| 967 | 967 | <title>', $txt['spell_check'], '</title> |
| 968 | - <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'] ,'"> |
|
| 968 | + <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'], '"> |
|
| 969 | 969 | <style> |
| 970 | 970 | body, td |
| 971 | 971 | { |
@@ -998,8 +998,8 @@ discard block |
||
| 998 | 998 | var spell_formname = window.opener.spell_formname; |
| 999 | 999 | var spell_fieldname = window.opener.spell_fieldname; |
| 1000 | 1000 | </script> |
| 1001 | - <script src="', $settings['default_theme_url'], '/scripts/spellcheck.js', $modSettings['browser_cache'] ,'"></script> |
|
| 1002 | - <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'] ,'"></script> |
|
| 1001 | + <script src="', $settings['default_theme_url'], '/scripts/spellcheck.js', $modSettings['browser_cache'], '"></script> |
|
| 1002 | + <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'], '"></script> |
|
| 1003 | 1003 | <script> |
| 1004 | 1004 | ', $context['spell_js'], ' |
| 1005 | 1005 | </script> |
@@ -1041,7 +1041,7 @@ discard block |
||
| 1041 | 1041 | <head> |
| 1042 | 1042 | <meta charset="', $context['character_set'], '"> |
| 1043 | 1043 | <title>', $txt['retrieving_quote'], '</title> |
| 1044 | - <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'] ,'"></script> |
|
| 1044 | + <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'], '"></script> |
|
| 1045 | 1045 | </head> |
| 1046 | 1046 | <body> |
| 1047 | 1047 | ', $txt['retrieving_quote'], ' |
@@ -24,8 +24,8 @@ discard block |
||
| 24 | 24 | <meta charset="', $context['character_set'], '"> |
| 25 | 25 | <meta name="robots" content="noindex"> |
| 26 | 26 | <title>', $context['page_title'], '</title> |
| 27 | - <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'] ,'"> |
|
| 28 | - <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'] ,'"></script> |
|
| 27 | + <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'], '"> |
|
| 28 | + <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'], '"></script> |
|
| 29 | 29 | </head> |
| 30 | 30 | <body id="help_popup"> |
| 31 | 31 | <div class="windowbg description"> |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | <title>', $txt['find_members'], '</title> |
| 51 | 51 | <meta charset="', $context['character_set'], '"> |
| 52 | 52 | <meta name="robots" content="noindex"> |
| 53 | - <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'] ,'"> |
|
| 54 | - <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'] ,'"></script> |
|
| 53 | + <link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $modSettings['browser_cache'], '"> |
|
| 54 | + <script src="', $settings['default_theme_url'], '/scripts/script.js', $modSettings['browser_cache'], '"></script> |
|
| 55 | 55 | <script> |
| 56 | 56 | var membersAdded = []; |
| 57 | 57 | function addMember(name) |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | 'Shitiz "Dragooon" Garg', |
| 591 | 591 | 'Karl "RegularExpression" Benson', |
| 592 | 592 | 'Matthew "Labradoodle-360" Kerle', |
| 593 | - $user_info['is_admin'] ? 'Matt "Grudge" Wolf': 'Grudge', |
|
| 593 | + $user_info['is_admin'] ? 'Matt "Grudge" Wolf' : 'Grudge', |
|
| 594 | 594 | 'Michael "Thantos" Miller', |
| 595 | 595 | 'Norv', |
| 596 | 596 | 'Peter "Arantor" Spicer', |
@@ -813,13 +813,13 @@ discard block |
||
| 813 | 813 | $credit_info = smf_json_decode($row['credits'], true); |
| 814 | 814 | |
| 815 | 815 | $copyright = empty($credit_info['copyright']) ? '' : $txt['credits_copyright'] . ' © ' . $smcFunc['htmlspecialchars']($credit_info['copyright']); |
| 816 | - $license = empty($credit_info['license']) ? '' : $txt['credits_license'] . ': ' . (!empty($credit_info['licenseurl']) ? '<a href="'. $smcFunc['htmlspecialchars']($credit_info['licenseurl']) .'">'. $smcFunc['htmlspecialchars']($credit_info['license']) .'</a>' : $smcFunc['htmlspecialchars']($credit_info['license'])); |
|
| 816 | + $license = empty($credit_info['license']) ? '' : $txt['credits_license'] . ': ' . (!empty($credit_info['licenseurl']) ? '<a href="' . $smcFunc['htmlspecialchars']($credit_info['licenseurl']) . '">' . $smcFunc['htmlspecialchars']($credit_info['license']) . '</a>' : $smcFunc['htmlspecialchars']($credit_info['license'])); |
|
| 817 | 817 | $version = $txt['credits_version'] . ' ' . $row['version']; |
| 818 | 818 | $title = (empty($credit_info['title']) ? $row['name'] : $smcFunc['htmlspecialchars']($credit_info['title'])) . ': ' . $version; |
| 819 | 819 | |
| 820 | 820 | // build this one out and stash it away |
| 821 | 821 | $mod_name = empty($credit_info['url']) ? $title : '<a href="' . $credit_info['url'] . '">' . $title . '</a>'; |
| 822 | - $mods[] = $mod_name . (!empty($license) ? ' | ' . $license : '') . (!empty($copyright) ? ' | ' . $copyright : ''); |
|
| 822 | + $mods[] = $mod_name . (!empty($license) ? ' | ' . $license : '') . (!empty($copyright) ? ' | ' . $copyright : ''); |
|
| 823 | 823 | } |
| 824 | 824 | cache_put_data('mods_credits', $mods, 86400); |
| 825 | 825 | } |
@@ -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 | |
| 194 | 194 | });', true); |
@@ -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! |
@@ -659,7 +659,7 @@ discard block |
||
| 659 | 659 | |
| 660 | 660 | // Remove the phrase parts and extract the words. |
| 661 | 661 | $wordArray = preg_replace('~(?:^|\s)(?:[-]?)"(?:[^"]+)"(?:$|\s)~' . ($context['utf8'] ? 'u' : ''), ' ', $search_params['search']); |
| 662 | - $wordArray = explode(' ', $smcFunc['htmlspecialchars'](un_htmlspecialchars($wordArray), ENT_QUOTES)); |
|
| 662 | + $wordArray = explode(' ', $smcFunc['htmlspecialchars'](un_htmlspecialchars($wordArray), ENT_QUOTES)); |
|
| 663 | 663 | |
| 664 | 664 | // A minus sign in front of a word excludes the word.... so... |
| 665 | 665 | $excludedWords = array(); |
@@ -1104,7 +1104,7 @@ discard block |
||
| 1104 | 1104 | SELECT |
| 1105 | 1105 | {int:id_search}, |
| 1106 | 1106 | t.id_topic, |
| 1107 | - ' . $relevance. ', |
|
| 1107 | + ' . $relevance . ', |
|
| 1108 | 1108 | ' . (empty($userQuery) ? 't.id_first_msg' : 'm.id_msg') . ', |
| 1109 | 1109 | 1 |
| 1110 | 1110 | FROM ' . $subject_query['from'] . (empty($subject_query['inner_join']) ? '' : ' |
@@ -1339,7 +1339,7 @@ discard block |
||
| 1339 | 1339 | if (empty($subject_query['where'])) |
| 1340 | 1340 | continue; |
| 1341 | 1341 | |
| 1342 | - $ignoreRequest = $smcFunc['db_search_query']('insert_log_search_topics', ($smcFunc['db_support_ignore'] ? ( ' |
|
| 1342 | + $ignoreRequest = $smcFunc['db_search_query']('insert_log_search_topics', ($smcFunc['db_support_ignore'] ? (' |
|
| 1343 | 1343 | INSERT IGNORE INTO {db_prefix}' . ($createTemporary ? 'tmp_' : '') . 'log_search_topics |
| 1344 | 1344 | (' . ($createTemporary ? '' : 'id_search, ') . 'id_topic)') : '') . ' |
| 1345 | 1345 | SELECT ' . ($createTemporary ? '' : $_SESSION['search_cache']['id_search'] . ', ') . 't.id_topic |
@@ -1568,7 +1568,7 @@ discard block |
||
| 1568 | 1568 | } |
| 1569 | 1569 | $main_query['select']['relevance'] = substr($relevance, 0, -3) . ') / ' . $new_weight_total . ' AS relevance'; |
| 1570 | 1570 | |
| 1571 | - $ignoreRequest = $smcFunc['db_search_query']('insert_log_search_results_no_index', ($smcFunc['db_support_ignore'] ? ( ' |
|
| 1571 | + $ignoreRequest = $smcFunc['db_search_query']('insert_log_search_results_no_index', ($smcFunc['db_support_ignore'] ? (' |
|
| 1572 | 1572 | INSERT IGNORE INTO ' . '{db_prefix}log_search_results |
| 1573 | 1573 | (' . implode(', ', array_keys($main_query['select'])) . ')') : '') . ' |
| 1574 | 1574 | SELECT |
@@ -1636,7 +1636,7 @@ discard block |
||
| 1636 | 1636 | $relevance = substr($relevance, 0, -3) . ') / ' . $weight_total . ' AS relevance'; |
| 1637 | 1637 | |
| 1638 | 1638 | $usedIDs = array_flip(empty($inserts) ? array() : array_keys($inserts)); |
| 1639 | - $ignoreRequest = $smcFunc['db_search_query']('insert_log_search_results_sub_only', ($smcFunc['db_support_ignore'] ? ( ' |
|
| 1639 | + $ignoreRequest = $smcFunc['db_search_query']('insert_log_search_results_sub_only', ($smcFunc['db_support_ignore'] ? (' |
|
| 1640 | 1640 | INSERT IGNORE INTO {db_prefix}log_search_results |
| 1641 | 1641 | (id_search, id_topic, relevance, id_msg, num_matches)') : '') . ' |
| 1642 | 1642 | SELECT |
@@ -2102,7 +2102,7 @@ discard block |
||
| 2102 | 2102 | $query = trim($query, "\*+"); |
| 2103 | 2103 | $query = strtr($smcFunc['htmlspecialchars']($query), array('\\\'' => '\'')); |
| 2104 | 2104 | |
| 2105 | - $body_highlighted = preg_replace_callback('/((<[^>]*)|' . preg_quote(strtr($query, array('\'' => ''')), '/') . ')/i' . ($context['utf8'] ? 'u' : ''), function ($m) |
|
| 2105 | + $body_highlighted = preg_replace_callback('/((<[^>]*)|' . preg_quote(strtr($query, array('\'' => ''')), '/') . ')/i' . ($context['utf8'] ? 'u' : ''), function($m) |
|
| 2106 | 2106 | { |
| 2107 | 2107 | return isset($m[2]) && "$m[2]" == "$m[1]" ? stripslashes("$m[1]") : "<strong class=\"highlight\">$m[1]</strong>"; |
| 2108 | 2108 | }, $body_highlighted); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | $table = str_replace('{db_prefix}', $db_prefix, $table); |
| 93 | 93 | |
| 94 | - $pg_tables = array('pg_catalog','information_schema'); |
|
| 94 | + $pg_tables = array('pg_catalog', 'information_schema'); |
|
| 95 | 95 | |
| 96 | 96 | $request = $smcFunc['db_query']('', ' |
| 97 | 97 | SELECT pg_relation_size(C.oid) AS "size" |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | { |
| 290 | 290 | static $ver; |
| 291 | 291 | |
| 292 | - if(!empty($ver)) |
|
| 292 | + if (!empty($ver)) |
|
| 293 | 293 | return $ver; |
| 294 | 294 | |
| 295 | 295 | global $smcFunc; |
@@ -1326,7 +1326,7 @@ discard block |
||
| 1326 | 1326 | 'class' => 'centercol', |
| 1327 | 1327 | ), |
| 1328 | 1328 | 'data' => array( |
| 1329 | - 'function' => function ($rowData) |
|
| 1329 | + 'function' => function($rowData) |
|
| 1330 | 1330 | { |
| 1331 | 1331 | $isChecked = $rowData['disabled'] ? '' : ' checked'; |
| 1332 | 1332 | $onClickHandler = $rowData['can_show_register'] ? sprintf(' onclick="document.getElementById(\'reg_%1$s\').disabled = !this.checked;"', $rowData['id']) : ''; |
@@ -1342,7 +1342,7 @@ discard block |
||
| 1342 | 1342 | 'class' => 'centercol', |
| 1343 | 1343 | ), |
| 1344 | 1344 | 'data' => array( |
| 1345 | - 'function' => function ($rowData) |
|
| 1345 | + 'function' => function($rowData) |
|
| 1346 | 1346 | { |
| 1347 | 1347 | $isChecked = $rowData['on_register'] && !$rowData['disabled'] ? ' checked' : ''; |
| 1348 | 1348 | $isDisabled = $rowData['can_show_register'] ? '' : ' disabled'; |
@@ -1389,15 +1389,15 @@ discard block |
||
| 1389 | 1389 | 'value' => $txt['custom_profile_fieldorder'], |
| 1390 | 1390 | ), |
| 1391 | 1391 | 'data' => array( |
| 1392 | - 'function' => function ($rowData) use ($context, $txt, $scripturl) |
|
| 1392 | + 'function' => function($rowData) use ($context, $txt, $scripturl) |
|
| 1393 | 1393 | { |
| 1394 | - $return = '<p class="centertext bold_text">'. $rowData['field_order'] .'<br />'; |
|
| 1394 | + $return = '<p class="centertext bold_text">' . $rowData['field_order'] . '<br />'; |
|
| 1395 | 1395 | |
| 1396 | 1396 | if ($rowData['field_order'] > 1) |
| 1397 | - $return .= '<a href="' . $scripturl . '?action=admin;area=featuresettings;sa=profileedit;fid=' . $rowData['id_field'] . ';move=up"><span class="toggle_up" title="'. $txt['custom_edit_order_move'] .' '. $txt['custom_edit_order_up'] .'"></span></a>'; |
|
| 1397 | + $return .= '<a href="' . $scripturl . '?action=admin;area=featuresettings;sa=profileedit;fid=' . $rowData['id_field'] . ';move=up"><span class="toggle_up" title="' . $txt['custom_edit_order_move'] . ' ' . $txt['custom_edit_order_up'] . '"></span></a>'; |
|
| 1398 | 1398 | |
| 1399 | 1399 | if ($rowData['field_order'] < $context['custFieldsMaxOrder']) |
| 1400 | - $return .= '<a href="' . $scripturl . '?action=admin;area=featuresettings;sa=profileedit;fid=' . $rowData['id_field'] . ';move=down"><span class="toggle_down" title="'. $txt['custom_edit_order_move'] .' '. $txt['custom_edit_order_down'] .'"></span></a>'; |
|
| 1400 | + $return .= '<a href="' . $scripturl . '?action=admin;area=featuresettings;sa=profileedit;fid=' . $rowData['id_field'] . ';move=down"><span class="toggle_down" title="' . $txt['custom_edit_order_move'] . ' ' . $txt['custom_edit_order_down'] . '"></span></a>'; |
|
| 1401 | 1401 | |
| 1402 | 1402 | $return .= '</p>'; |
| 1403 | 1403 | |
@@ -1415,7 +1415,7 @@ discard block |
||
| 1415 | 1415 | 'value' => $txt['custom_profile_fieldname'], |
| 1416 | 1416 | ), |
| 1417 | 1417 | 'data' => array( |
| 1418 | - 'function' => function ($rowData) use ($scripturl) |
|
| 1418 | + 'function' => function($rowData) use ($scripturl) |
|
| 1419 | 1419 | { |
| 1420 | 1420 | return sprintf('<a href="%1$s?action=admin;area=featuresettings;sa=profileedit;fid=%2$d">%3$s</a><div class="smalltext">%4$s</div>', $scripturl, $rowData['id_field'], $rowData['field_name'], $rowData['field_desc']); |
| 1421 | 1421 | }, |
@@ -1431,7 +1431,7 @@ discard block |
||
| 1431 | 1431 | 'value' => $txt['custom_profile_fieldtype'], |
| 1432 | 1432 | ), |
| 1433 | 1433 | 'data' => array( |
| 1434 | - 'function' => function ($rowData) use ($txt) |
|
| 1434 | + 'function' => function($rowData) use ($txt) |
|
| 1435 | 1435 | { |
| 1436 | 1436 | $textKey = sprintf('custom_profile_type_%1$s', $rowData['field_type']); |
| 1437 | 1437 | return isset($txt[$textKey]) ? $txt[$textKey] : $textKey; |
@@ -1449,7 +1449,7 @@ discard block |
||
| 1449 | 1449 | 'value' => $txt['custom_profile_active'], |
| 1450 | 1450 | ), |
| 1451 | 1451 | 'data' => array( |
| 1452 | - 'function' => function ($rowData) use ($txt) |
|
| 1452 | + 'function' => function($rowData) use ($txt) |
|
| 1453 | 1453 | { |
| 1454 | 1454 | return $rowData['active'] ? $txt['yes'] : $txt['no']; |
| 1455 | 1455 | }, |
@@ -1466,7 +1466,7 @@ discard block |
||
| 1466 | 1466 | 'value' => $txt['custom_profile_placement'], |
| 1467 | 1467 | ), |
| 1468 | 1468 | 'data' => array( |
| 1469 | - 'function' => function ($rowData) |
|
| 1469 | + 'function' => function($rowData) |
|
| 1470 | 1470 | { |
| 1471 | 1471 | global $txt, $context; |
| 1472 | 1472 | |
@@ -1701,7 +1701,7 @@ discard block |
||
| 1701 | 1701 | redirectexit('action=admin;area=featuresettings;sa=profile'); // @todo implement an error handler |
| 1702 | 1702 | |
| 1703 | 1703 | // All good, proceed. |
| 1704 | - $smcFunc['db_query']('',' |
|
| 1704 | + $smcFunc['db_query']('', ' |
|
| 1705 | 1705 | UPDATE {db_prefix}custom_fields |
| 1706 | 1706 | SET field_order = {int:old_order} |
| 1707 | 1707 | WHERE field_order = {int:new_order}', |
@@ -1710,7 +1710,7 @@ discard block |
||
| 1710 | 1710 | 'old_order' => $context['field']['order'], |
| 1711 | 1711 | ) |
| 1712 | 1712 | ); |
| 1713 | - $smcFunc['db_query']('',' |
|
| 1713 | + $smcFunc['db_query']('', ' |
|
| 1714 | 1714 | UPDATE {db_prefix}custom_fields |
| 1715 | 1715 | SET field_order = {int:new_order} |
| 1716 | 1716 | WHERE id_field = {int:id_field}', |
@@ -1812,7 +1812,7 @@ discard block |
||
| 1812 | 1812 | $smcFunc['db_free_result']($request); |
| 1813 | 1813 | |
| 1814 | 1814 | $unique = false; |
| 1815 | - for ($i = 0; !$unique && $i < 9; $i ++) |
|
| 1815 | + for ($i = 0; !$unique && $i < 9; $i++) |
|
| 1816 | 1816 | { |
| 1817 | 1817 | if (!in_array($col_name, $current_fields)) |
| 1818 | 1818 | $unique = true; |
@@ -1985,7 +1985,7 @@ discard block |
||
| 1985 | 1985 | ); |
| 1986 | 1986 | |
| 1987 | 1987 | // Re-arrange the order. |
| 1988 | - $smcFunc['db_query']('',' |
|
| 1988 | + $smcFunc['db_query']('', ' |
|
| 1989 | 1989 | UPDATE {db_prefix}custom_fields |
| 1990 | 1990 | SET field_order = field_order - 1 |
| 1991 | 1991 | WHERE field_order > {int:current_order}', |
@@ -2249,7 +2249,7 @@ discard block |
||
| 2249 | 2249 | $context['token_check'] = 'noti-admin'; |
| 2250 | 2250 | |
| 2251 | 2251 | // Specify our action since we'll want to post back here instead of the profile |
| 2252 | - $context['action'] = 'action=admin;area=featuresettings;sa=alerts;'. $context['session_var'] .'='. $context['session_id']; |
|
| 2252 | + $context['action'] = 'action=admin;area=featuresettings;sa=alerts;' . $context['session_var'] . '=' . $context['session_id']; |
|
| 2253 | 2253 | |
| 2254 | 2254 | loadTemplate('Profile'); |
| 2255 | 2255 | loadLanguage('Profile'); |