@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | <script> |
| 389 | 389 | function swapPostGroup(isChecked) |
| 390 | 390 | { |
| 391 | - var is_moderator_group = ', (int)$context['is_moderator_group'], '; |
|
| 391 | + var is_moderator_group = ', (int) $context['is_moderator_group'], '; |
|
| 392 | 392 | var group_type = ', $context['group']['type'], '; |
| 393 | 393 | var min_posts_text = document.getElementById(\'min_posts_text\'); |
| 394 | 394 | var group_desc_text = document.getElementById(\'group_desc_text\'); |
@@ -453,7 +453,7 @@ discard block |
||
| 453 | 453 | if (empty($modSettings['deny_boards_access'])) |
| 454 | 454 | echo ' |
| 455 | 455 | <li class="category"> |
| 456 | - <a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \''.$form_id.'\'); return false;"><strong>', $category['name'], '</strong></a> |
|
| 456 | + <a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \'' . $form_id . '\'); return false;"><strong>', $category['name'], '</strong></a> |
|
| 457 | 457 | <ul>'; |
| 458 | 458 | else |
| 459 | 459 | echo ' |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | |
| 144 | 144 | // Redirect to the selector if they chose selective. |
| 145 | 145 | if ($_POST['step2'] == 'selective') |
| 146 | - redirectexit ('action=splittopics;sa=selectTopics;subname=' . $_POST['subname'] . ';topic=' . $topic . '.0;start2=0'); |
|
| 146 | + redirectexit('action=splittopics;sa=selectTopics;subname=' . $_POST['subname'] . ';topic=' . $topic . '.0;start2=0'); |
|
| 147 | 147 | |
| 148 | 148 | $_POST['at'] = (int) $_POST['at']; |
| 149 | 149 | $messagesToBeSplit = array(); |
@@ -185,14 +185,14 @@ discard block |
||
| 185 | 185 | $report_buttons = array( |
| 186 | 186 | 'ignore' => array( |
| 187 | 187 | 'text' => !$context['report']['ignore'] ? 'mc_reportedp_ignore' : 'mc_reportedp_unignore', |
| 188 | - 'url' => $scripturl.'?action=moderate;area=reportedposts;sa=handle;ignore='.(int) !$context['report']['ignore'].';rid='.$context['report']['id'].';'.$context['session_var'].'='.$context['session_id'].';'.$context['mod-report-ignore_token_var'].'='.$context['mod-report-ignore_token'], |
|
| 188 | + 'url' => $scripturl . '?action=moderate;area=reportedposts;sa=handle;ignore=' . (int) !$context['report']['ignore'] . ';rid=' . $context['report']['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . ';' . $context['mod-report-ignore_token_var'] . '=' . $context['mod-report-ignore_token'], |
|
| 189 | 189 | 'class' => !$context['report']['ignore'] ? ' you_sure' : '', |
| 190 | 190 | 'custom' => !$context['report']['ignore'] ? ' data-confirm="' . $txt['mc_reportedp_ignore_confirm'] . '"' : '', |
| 191 | 191 | 'icon' => 'ignore' |
| 192 | 192 | ), |
| 193 | 193 | 'close' => array( |
| 194 | 194 | 'text' => $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', |
| 195 | - 'url' => $scripturl.'?action=moderate;area=reportedposts;sa=handle;closed='.(int) !$context['report']['closed'].';rid='.$context['report']['id'].';'.$context['session_var'].'='.$context['session_id'].';'.$context['mod-report-closed_token_var'].'='.$context['mod-report-closed_token'], |
|
| 195 | + 'url' => $scripturl . '?action=moderate;area=reportedposts;sa=handle;closed=' . (int) !$context['report']['closed'] . ';rid=' . $context['report']['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . ';' . $context['mod-report-closed_token_var'] . '=' . $context['mod-report-closed_token'], |
|
| 196 | 196 | 'icon' => 'close' |
| 197 | 197 | ) |
| 198 | 198 | ); |
@@ -465,14 +465,14 @@ discard block |
||
| 465 | 465 | $report_buttons = array( |
| 466 | 466 | 'ignore' => array( |
| 467 | 467 | 'text' => !$context['report']['ignore'] ? 'mc_reportedp_ignore' : 'mc_reportedp_unignore', |
| 468 | - 'url' => $scripturl.'?action=moderate;area=reportedmembers;sa=handle;ignore='.(int)!$context['report']['ignore'].';rid='.$context['report']['id'].';'.$context['session_var'].'='.$context['session_id'].';'.$context['mod-report-ignore_token_var'].'='.$context['mod-report-ignore_token'], |
|
| 468 | + 'url' => $scripturl . '?action=moderate;area=reportedmembers;sa=handle;ignore=' . (int) !$context['report']['ignore'] . ';rid=' . $context['report']['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . ';' . $context['mod-report-ignore_token_var'] . '=' . $context['mod-report-ignore_token'], |
|
| 469 | 469 | 'class' => !$context['report']['ignore'] ? ' you_sure' : '', |
| 470 | 470 | 'custom' => !$context['report']['ignore'] ? ' data-confirm="' . $txt['mc_reportedp_ignore_confirm'] . '"' : '', |
| 471 | 471 | 'icon' => 'ignore' |
| 472 | 472 | ), |
| 473 | 473 | 'close' => array( |
| 474 | 474 | 'text' => $context['report']['closed'] ? 'mc_reportedp_open' : 'mc_reportedp_close', |
| 475 | - 'url' => $scripturl.'?action=moderate;area=reportedmembers;sa=handle;closed='.(int)!$context['report']['closed'].';rid='.$context['report']['id'].';'.$context['session_var'].'='.$context['session_id'].';'.$context['mod-report-closed_token_var'].'='.$context['mod-report-closed_token'], |
|
| 475 | + 'url' => $scripturl . '?action=moderate;area=reportedmembers;sa=handle;closed=' . (int) !$context['report']['closed'] . ';rid=' . $context['report']['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . ';' . $context['mod-report-closed_token_var'] . '=' . $context['mod-report-closed_token'], |
|
| 476 | 476 | 'icon' => 'close' |
| 477 | 477 | ) |
| 478 | 478 | ); |
@@ -619,7 +619,7 @@ |
||
| 619 | 619 | if (!empty($modSettings['force_ssl']) && empty($maintenance) && !httpsOn()) |
| 620 | 620 | fatal_lang_error('login_ssl_required', false); |
| 621 | 621 | |
| 622 | - $password = isset($_POST['oldpasswrd']) ? $_POST['oldpasswrd'] : ''; |
|
| 622 | + $password = isset($_POST['oldpasswrd']) ? $_POST['oldpasswrd'] : ''; |
|
| 623 | 623 | |
| 624 | 624 | // You didn't even enter a password! |
| 625 | 625 | if (trim($password) == '') |
@@ -738,7 +738,7 @@ |
||
| 738 | 738 | ); |
| 739 | 739 | else |
| 740 | 740 | $context['allowed_actions'] = array( |
| 741 | - 'ok' => $txt['admin_browse_w_approve'] .' '. $txt['admin_browse_no_email'], |
|
| 741 | + 'ok' => $txt['admin_browse_w_approve'] . ' ' . $txt['admin_browse_no_email'], |
|
| 742 | 742 | 'okemail' => $txt['admin_browse_w_approve'] . ' ' . $txt['admin_browse_w_email'], |
| 743 | 743 | 'require_activation' => $txt['admin_browse_w_approve_require_activate'], |
| 744 | 744 | 'reject' => $txt['admin_browse_w_reject'], |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | require_once($sourcedir . '/Load.php'); |
| 62 | 62 | |
| 63 | 63 | // If $maintenance is set specifically to 2, then we're upgrading or something. |
| 64 | -if (!empty($maintenance) && 2 === $maintenance) |
|
| 64 | +if (!empty($maintenance) && 2 === $maintenance) |
|
| 65 | 65 | display_maintenance_message(); |
| 66 | 66 | |
| 67 | 67 | // Create a variable to store some SMF specific functions in. |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * |
| 112 | 112 | * @param string $class The fully-qualified class name. |
| 113 | 113 | */ |
| 114 | -spl_autoload_register(function ($class) use ($sourcedir) |
|
| 114 | +spl_autoload_register(function($class) use ($sourcedir) |
|
| 115 | 115 | { |
| 116 | 116 | $classMap = array( |
| 117 | 117 | 'ReCaptcha\\' => 'ReCaptcha/', |
@@ -1931,7 +1931,7 @@ |
||
| 1931 | 1931 | <div class="floatright smalltext righttext"> |
| 1932 | 1932 | <div class="recipient_to">« <strong>', $txt['to'], ':</strong> ', implode(', ', $draft['recipients']['to']), ' »</div>'; |
| 1933 | 1933 | |
| 1934 | - if(!empty($draft['recipients']['bcc'])) |
|
| 1934 | + if (!empty($draft['recipients']['bcc'])) |
|
| 1935 | 1935 | echo' |
| 1936 | 1936 | <div class="pm_bbc">« <strong>', $txt['pm_bcc'], ':</strong> ', implode(', ', $draft['recipients']['bcc']), ' »</div>'; |
| 1937 | 1937 | |
@@ -756,7 +756,7 @@ |
||
| 756 | 756 | } |
| 757 | 757 | |
| 758 | 758 | // Filter out any redundant separators before we start the loop |
| 759 | - $context['config_vars'] = array_filter($context['config_vars'], function ($v) use ($context) |
|
| 759 | + $context['config_vars'] = array_filter($context['config_vars'], function($v) use ($context) |
|
| 760 | 760 | { |
| 761 | 761 | static $config_vars, $prev; |
| 762 | 762 | |
@@ -581,7 +581,7 @@ |
||
| 581 | 581 | $value['id'] = $key; |
| 582 | 582 | |
| 583 | 583 | $button = ' |
| 584 | - <a class="button button_strip_' . $key . (!empty($value['active']) ? ' active' : '') . (isset($value['class']) ? ' ' . $value['class'] : '') . '" ' . (!empty($value['url']) ? 'href="' . $value['url'] . '"' : '') . ' ' . (isset($value['custom']) ? ' ' . $value['custom'] : '') . '>'.(!empty($value['icon']) ? '<span class="main_icons '.$value['icon'].'"></span>' : '').'' . $txt[$value['text']] . '</a>'; |
|
| 584 | + <a class="button button_strip_' . $key . (!empty($value['active']) ? ' active' : '') . (isset($value['class']) ? ' ' . $value['class'] : '') . '" ' . (!empty($value['url']) ? 'href="' . $value['url'] . '"' : '') . ' ' . (isset($value['custom']) ? ' ' . $value['custom'] : '') . '>' . (!empty($value['icon']) ? '<span class="main_icons ' . $value['icon'] . '"></span>' : '') . '' . $txt[$value['text']] . '</a>'; |
|
| 585 | 585 | |
| 586 | 586 | if (!empty($value['sub_buttons'])) |
| 587 | 587 | { |