@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | 'class' => 'centercol', |
394 | 394 | ), |
395 | 395 | 'data' => array( |
396 | - 'function' => function ($rowData) |
|
396 | + 'function' => function($rowData) |
|
397 | 397 | { |
398 | 398 | return $rowData['selected'] ? '<span class="generic_icons valid"></span>' : ''; |
399 | 399 | }, |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | 'class' => 'centercol', |
454 | 454 | ), |
455 | 455 | 'data' => array( |
456 | - 'function' => function ($rowData) |
|
456 | + 'function' => function($rowData) |
|
457 | 457 | { |
458 | 458 | return $rowData['selected'] ? '' : sprintf('<input type="checkbox" name="smiley_set[%1$d]" class="input_check">', $rowData['id']); |
459 | 459 | }, |
@@ -997,7 +997,7 @@ discard block |
||
997 | 997 | 'value' => $txt['smileys_location'], |
998 | 998 | ), |
999 | 999 | 'data' => array( |
1000 | - 'function' => function ($rowData) use ($txt) |
|
1000 | + 'function' => function($rowData) use ($txt) |
|
1001 | 1001 | { |
1002 | 1002 | if (empty($rowData['hidden'])) |
1003 | 1003 | return $txt['smileys_location_form']; |
@@ -1017,7 +1017,7 @@ discard block |
||
1017 | 1017 | 'value' => $txt['smileys_description'], |
1018 | 1018 | ), |
1019 | 1019 | 'data' => array( |
1020 | - 'function' => function ($rowData) use ($context, $txt, $modSettings, $smcFunc) |
|
1020 | + 'function' => function($rowData) use ($context, $txt, $modSettings, $smcFunc) |
|
1021 | 1021 | { |
1022 | 1022 | if (empty($modSettings['smileys_dir']) || !is_dir($modSettings['smileys_dir'])) |
1023 | 1023 | return $smcFunc['htmlspecialchars']($rowData['description']); |
@@ -1557,7 +1557,7 @@ discard block |
||
1557 | 1557 | 'action' => $smcFunc['htmlspecialchars'](strtr($action['destination'], array($boarddir => '.'))) |
1558 | 1558 | ); |
1559 | 1559 | |
1560 | - $file = $packagesdir . '/temp/' . $base_path . $action['filename']; |
|
1560 | + $file = $packagesdir . '/temp/' . $base_path . $action['filename']; |
|
1561 | 1561 | if (isset($action['filename']) && (!file_exists($file) || !is_writable(dirname($action['destination'])))) |
1562 | 1562 | { |
1563 | 1563 | $context['has_failure'] = true; |
@@ -1601,7 +1601,7 @@ discard block |
||
1601 | 1601 | { |
1602 | 1602 | updateSettings(array( |
1603 | 1603 | 'smiley_sets_known' => $modSettings['smiley_sets_known'] . ',' . basename($action['action']), |
1604 | - 'smiley_sets_names' => $modSettings['smiley_sets_names'] . "\n" . $smileyInfo['name'] . (count($context['actions']) > 1 ? ' ' . (!empty($action['description']) ? $smcFunc['htmlspecialchars']($action['description']) : basename($action['action'])) : ''), |
|
1604 | + 'smiley_sets_names' => $modSettings['smiley_sets_names'] . "\n" . $smileyInfo['name'] . (count($context['actions']) > 1 ? ' ' . (!empty($action['description']) ? $smcFunc['htmlspecialchars']($action['description']) : basename($action['action'])) : ''), |
|
1605 | 1605 | )); |
1606 | 1606 | } |
1607 | 1607 | |
@@ -1613,7 +1613,7 @@ discard block |
||
1613 | 1613 | '{db_prefix}log_packages', |
1614 | 1614 | array( |
1615 | 1615 | 'filename' => 'string', 'name' => 'string', 'package_id' => 'string', 'version' => 'string', |
1616 | - 'id_member_installed' => 'int', 'member_installed' => 'string','time_installed' => 'int', |
|
1616 | + 'id_member_installed' => 'int', 'member_installed' => 'string', 'time_installed' => 'int', |
|
1617 | 1617 | 'install_state' => 'int', 'failed_steps' => 'string', 'themes_installed' => 'string', |
1618 | 1618 | 'member_removed' => 'int', 'db_changes' => 'string', 'credits' => 'string', |
1619 | 1619 | ), |
@@ -1862,7 +1862,7 @@ discard block |
||
1862 | 1862 | 'columns' => array( |
1863 | 1863 | 'icon' => array( |
1864 | 1864 | 'data' => array( |
1865 | - 'function' => function ($rowData) use ($settings, $smcFunc) |
|
1865 | + 'function' => function($rowData) use ($settings, $smcFunc) |
|
1866 | 1866 | { |
1867 | 1867 | $images_url = $settings[file_exists(sprintf('%1$s/images/post/%2$s.png', $settings['theme_dir'], $rowData['filename'])) ? 'actual_images_url' : 'default_images_url']; |
1868 | 1868 | return sprintf('<img src="%1$s/post/%2$s.png" alt="%3$s">', $images_url, $rowData['filename'], $smcFunc['htmlspecialchars']($rowData['title'])); |
@@ -1896,7 +1896,7 @@ discard block |
||
1896 | 1896 | 'value' => $txt['icons_board'], |
1897 | 1897 | ), |
1898 | 1898 | 'data' => array( |
1899 | - 'function' => function ($rowData) use ($txt) |
|
1899 | + 'function' => function($rowData) use ($txt) |
|
1900 | 1900 | { |
1901 | 1901 | return empty($rowData['board_name']) ? $txt['icons_edit_icons_all_boards'] : $rowData['board_name']; |
1902 | 1902 | }, |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | 'value' => $txt['date'], |
137 | 137 | ), |
138 | 138 | 'data' => array( |
139 | - 'function' => function ($rowData) use ($txt) |
|
139 | + 'function' => function($rowData) use ($txt) |
|
140 | 140 | { |
141 | 141 | // Recurring every year or just a single year? |
142 | 142 | $year = $rowData['year'] == '0004' ? sprintf('(%1$s)', $txt['every_year']) : $rowData['year']; |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | checkSession(); |
219 | 219 | |
220 | 220 | // Not too long good sir? |
221 | - $_REQUEST['title'] = $smcFunc['substr']($_REQUEST['title'], 0, 60); |
|
221 | + $_REQUEST['title'] = $smcFunc['substr']($_REQUEST['title'], 0, 60); |
|
222 | 222 | $_REQUEST['holiday'] = isset($_REQUEST['holiday']) ? (int) $_REQUEST['holiday'] : 0; |
223 | 223 | |
224 | 224 | if (isset($_REQUEST['delete'])) |
@@ -586,7 +586,7 @@ discard block |
||
586 | 586 | 'member_name' => $regOptions['username'], |
587 | 587 | 'email_address' => $regOptions['email'], |
588 | 588 | 'passwd' => hash_password($regOptions['username'], $regOptions['password']), |
589 | - 'password_salt' => substr(md5(mt_rand()), 0, 4) , |
|
589 | + 'password_salt' => substr(md5(mt_rand()), 0, 4), |
|
590 | 590 | 'posts' => 0, |
591 | 591 | 'date_registered' => time(), |
592 | 592 | 'member_ip' => $regOptions['interface'] == 'admin' ? '127.0.0.1' : $user_info['ip'], |
@@ -676,7 +676,7 @@ discard block |
||
676 | 676 | 'time_offset', |
677 | 677 | ); |
678 | 678 | $knownInets = array( |
679 | - 'member_ip','member_ip2', |
|
679 | + 'member_ip', 'member_ip2', |
|
680 | 680 | ); |
681 | 681 | |
682 | 682 | // Call an optional function to validate the users' input. |
@@ -904,7 +904,7 @@ discard block |
||
904 | 904 | $checkName = strtr($name, array('_' => '\\_', '%' => '\\%')); |
905 | 905 | |
906 | 906 | //when we got no wildcard we can use equal -> fast |
907 | - $operator = (strpos($checkName, '%') || strpos($checkName, '_') ? 'LIKE' : '=' ); |
|
907 | + $operator = (strpos($checkName, '%') || strpos($checkName, '_') ? 'LIKE' : '='); |
|
908 | 908 | |
909 | 909 | // Make sure they don't want someone else's name. |
910 | 910 | $request = $smcFunc['db_query']('', ' |
@@ -1273,7 +1273,7 @@ discard block |
||
1273 | 1273 | $user_info['buddies'][] = $userReceiver; |
1274 | 1274 | |
1275 | 1275 | // And add a nice alert. Don't abuse though! |
1276 | - if ((cache_get_data('Buddy-sent-'. $user_info['id'] .'-'. $userReceiver, 86400)) == null) |
|
1276 | + if ((cache_get_data('Buddy-sent-' . $user_info['id'] . '-' . $userReceiver, 86400)) == null) |
|
1277 | 1277 | { |
1278 | 1278 | $smcFunc['db_insert']('insert', |
1279 | 1279 | '{db_prefix}background_tasks', |
@@ -1288,7 +1288,7 @@ discard block |
||
1288 | 1288 | ); |
1289 | 1289 | |
1290 | 1290 | // Store this in a cache entry to avoid creating multiple alerts. Give it a long life cycle. |
1291 | - cache_put_data('Buddy-sent-'. $user_info['id'] .'-'. $userReceiver, '1', 86400); |
|
1291 | + cache_put_data('Buddy-sent-' . $user_info['id'] . '-' . $userReceiver, '1', 86400); |
|
1292 | 1292 | } |
1293 | 1293 | } |
1294 | 1294 |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | |
248 | 248 | saveSettings($config_vars); |
249 | 249 | $_SESSION['adm-save'] = true; |
250 | - redirectexit('action=admin;area=serversettings;sa=database;' . $context['session_var'] . '=' . $context['session_id'] ); |
|
250 | + redirectexit('action=admin;area=serversettings;sa=database;' . $context['session_var'] . '=' . $context['session_id']); |
|
251 | 251 | } |
252 | 252 | |
253 | 253 | // Fill the config array. |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | array('localCookies', $txt['localCookies'], 'db', 'check', false, 'localCookies'), |
273 | 273 | array('globalCookies', $txt['globalCookies'], 'db', 'check', false, 'globalCookies'), |
274 | 274 | array('globalCookiesDomain', $txt['globalCookiesDomain'], 'db', 'text', false, 'globalCookiesDomain'), |
275 | - array('secureCookies', $txt['secureCookies'], 'db', 'check', false, 'secureCookies', 'disabled' => !isset($_SERVER['HTTPS']) || !(strtolower($_SERVER['HTTPS']) == 'on' || strtolower($_SERVER['HTTPS']) == '1')), |
|
275 | + array('secureCookies', $txt['secureCookies'], 'db', 'check', false, 'secureCookies', 'disabled' => !isset($_SERVER['HTTPS']) || !(strtolower($_SERVER['HTTPS']) == 'on' || strtolower($_SERVER['HTTPS']) == '1')), |
|
276 | 276 | array('httponlyCookies', $txt['httponlyCookies'], 'db', 'check', false, 'httponlyCookies'), |
277 | 277 | '', |
278 | 278 | // Sessions |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | COALESCE(mem.real_name, ms.poster_name) AS topic_started_name, ms.poster_time AS topic_started_time, |
160 | 160 | ' . ($user_info['is_guest'] ? 't.id_last_msg + 1' : 'COALESCE(lt.id_msg, lmr.id_msg, -1) + 1') . ' AS new_from |
161 | 161 | ' . (!empty($board_info['recycle']) ? ', id_previous_board, id_previous_topic' : '') . ' |
162 | - ' . (!empty($topic_selects) ? (', '. implode(', ', $topic_selects)) : '') . ' |
|
162 | + ' . (!empty($topic_selects) ? (', ' . implode(', ', $topic_selects)) : '') . ' |
|
163 | 163 | ' . (!$user_info['is_guest'] ? ', COALESCE(lt.unwatched, 0) as unwatched' : '') . ' |
164 | 164 | FROM {db_prefix}topics AS t |
165 | 165 | INNER JOIN {db_prefix}messages AS ms ON (ms.id_msg = t.id_first_msg) |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | WHERE INSTR(lo.url, {string:in_url_string}) > 0 OR lo.session = {string:session}', |
389 | 389 | array( |
390 | 390 | 'reg_id_group' => 0, |
391 | - 'in_url_string' => '"topic":'.$topic, |
|
391 | + 'in_url_string' => '"topic":' . $topic, |
|
392 | 392 | 'session' => $user_info['is_guest'] ? 'ip' . $user_info['ip'] : session_id(), |
393 | 393 | ) |
394 | 394 | ); |
@@ -457,8 +457,8 @@ discard block |
||
457 | 457 | $context['links'] = array( |
458 | 458 | 'first' => $_REQUEST['start'] >= $context['messages_per_page'] ? $scripturl . '?topic=' . $topic . '.0' : '', |
459 | 459 | 'prev' => $_REQUEST['start'] >= $context['messages_per_page'] ? $scripturl . '?topic=' . $topic . '.' . ($_REQUEST['start'] - $context['messages_per_page']) : '', |
460 | - 'next' => $_REQUEST['start'] + $context['messages_per_page'] < $context['total_visible_posts'] ? $scripturl . '?topic=' . $topic. '.' . ($_REQUEST['start'] + $context['messages_per_page']) : '', |
|
461 | - 'last' => $_REQUEST['start'] + $context['messages_per_page'] < $context['total_visible_posts'] ? $scripturl . '?topic=' . $topic. '.' . (floor($context['total_visible_posts'] / $context['messages_per_page']) * $context['messages_per_page']) : '', |
|
460 | + 'next' => $_REQUEST['start'] + $context['messages_per_page'] < $context['total_visible_posts'] ? $scripturl . '?topic=' . $topic . '.' . ($_REQUEST['start'] + $context['messages_per_page']) : '', |
|
461 | + 'last' => $_REQUEST['start'] + $context['messages_per_page'] < $context['total_visible_posts'] ? $scripturl . '?topic=' . $topic . '.' . (floor($context['total_visible_posts'] / $context['messages_per_page']) * $context['messages_per_page']) : '', |
|
462 | 462 | 'up' => $scripturl . '?board=' . $board . '.0' |
463 | 463 | ); |
464 | 464 | } |
@@ -1037,7 +1037,7 @@ discard block |
||
1037 | 1037 | id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, modified_reason, body, |
1038 | 1038 | smileys_enabled, poster_name, poster_email, approved, likes, |
1039 | 1039 | id_msg_modified < {int:new_from} AS is_read |
1040 | - ' . (!empty($msg_selects) ? (', '. implode(', ', $msg_selects)) : '') . ' |
|
1040 | + ' . (!empty($msg_selects) ? (', ' . implode(', ', $msg_selects)) : '') . ' |
|
1041 | 1041 | FROM {db_prefix}messages |
1042 | 1042 | ' . (!empty($msg_tables) ? implode("\n\t", $msg_tables) : '') . ' |
1043 | 1043 | WHERE id_msg IN ({array_int:message_list}) |
@@ -1681,17 +1681,17 @@ discard block |
||
1681 | 1681 | if (!empty($modSettings['attachmentRecodeLineEndings']) && !isset($_REQUEST['image']) && in_array($file_ext, array('txt', 'css', 'htm', 'html', 'php', 'xml'))) |
1682 | 1682 | { |
1683 | 1683 | if (strpos($_SERVER['HTTP_USER_AGENT'], 'Windows') !== false) |
1684 | - $callback = function ($buffer) |
|
1684 | + $callback = function($buffer) |
|
1685 | 1685 | { |
1686 | 1686 | return preg_replace('~[\r]?\n~', "\r\n", $buffer); |
1687 | 1687 | }; |
1688 | 1688 | elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'Mac') !== false) |
1689 | - $callback = function ($buffer) |
|
1689 | + $callback = function($buffer) |
|
1690 | 1690 | { |
1691 | 1691 | return preg_replace('~[\r]?\n~', "\r", $buffer); |
1692 | 1692 | }; |
1693 | 1693 | else |
1694 | - $callback = function ($buffer) |
|
1694 | + $callback = function($buffer) |
|
1695 | 1695 | { |
1696 | 1696 | return preg_replace('~[\r]?\n~', "\n", $buffer); |
1697 | 1697 | }; |
@@ -1772,7 +1772,7 @@ discard block |
||
1772 | 1772 | list($subname) = $smcFunc['db_fetch_row']($request); |
1773 | 1773 | $smcFunc['db_free_result']($request); |
1774 | 1774 | $_SESSION['split_selection'][$topic] = $messages; |
1775 | - redirectexit('action=splittopics;sa=selectTopics;topic=' . $topic . '.0;subname_enc=' .urlencode($subname) . ';' . $context['session_var'] . '=' . $context['session_id']); |
|
1775 | + redirectexit('action=splittopics;sa=selectTopics;topic=' . $topic . '.0;subname_enc=' . urlencode($subname) . ';' . $context['session_var'] . '=' . $context['session_id']); |
|
1776 | 1776 | } |
1777 | 1777 | |
1778 | 1778 | // Allowed to delete any message? |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | |
573 | 573 | // Don't want to mess with code... |
574 | 574 | $types = array('install', 'uninstall', 'upgrade'); |
575 | - foreach($types as $type) |
|
575 | + foreach ($types as $type) |
|
576 | 576 | { |
577 | 577 | if (isset($package[$type]['code'])) |
578 | 578 | { |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | 'value' => $txt['package_restore_permissions_cur_status'], |
698 | 698 | ), |
699 | 699 | 'data' => array( |
700 | - 'function' => function ($rowData) use ($txt) |
|
700 | + 'function' => function($rowData) use ($txt) |
|
701 | 701 | { |
702 | 702 | $formatTxt = $rowData['result'] == '' || $rowData['result'] == 'skipped' ? $txt['package_restore_permissions_pre_change'] : $txt['package_restore_permissions_post_change']; |
703 | 703 | return sprintf($formatTxt, $rowData['cur_perms'], $rowData['new_perms'], $rowData['writable_message']); |
@@ -725,7 +725,7 @@ discard block |
||
725 | 725 | 'value' => $txt['package_restore_permissions_result'], |
726 | 726 | ), |
727 | 727 | 'data' => array( |
728 | - 'function' => function ($rowData) use ($txt) |
|
728 | + 'function' => function($rowData) use ($txt) |
|
729 | 729 | { |
730 | 730 | return $txt['package_restore_permissions_action_' . $rowData['result']]; |
731 | 731 | }, |
@@ -1195,7 +1195,7 @@ discard block |
||
1195 | 1195 | if ($action->exists('@lang')) |
1196 | 1196 | { |
1197 | 1197 | // Auto-select the language based on either request variable or current language. |
1198 | - if ((isset($_REQUEST['readme']) && $action->fetch('@lang') == $_REQUEST['readme']) || (isset($_REQUEST['license']) && $action->fetch('@lang') == $_REQUEST['license']) || (!isset($_REQUEST['readme']) && $action->fetch('@lang') == $language) || (!isset($_REQUEST['license']) && $action->fetch('@lang') == $language)) |
|
1198 | + if ((isset($_REQUEST['readme']) && $action->fetch('@lang') == $_REQUEST['readme']) || (isset($_REQUEST['license']) && $action->fetch('@lang') == $_REQUEST['license']) || (!isset($_REQUEST['readme']) && $action->fetch('@lang') == $language) || (!isset($_REQUEST['license']) && $action->fetch('@lang') == $language)) |
|
1199 | 1199 | { |
1200 | 1200 | // In case the user put the blocks in the wrong order. |
1201 | 1201 | if (isset($context[$type]['selected']) && $context[$type]['selected'] == 'default') |
@@ -1243,7 +1243,7 @@ discard block |
||
1243 | 1243 | 'redirect_url' => $action->exists('@url') ? $action->fetch('@url') : '', |
1244 | 1244 | 'redirect_timeout' => $action->exists('@timeout') ? (int) $action->fetch('@timeout') : '', |
1245 | 1245 | 'parse_bbc' => $action->exists('@parsebbc') && $action->fetch('@parsebbc') == 'true', |
1246 | - 'language' => (($actionType == 'readme' || $actionType == 'license') && $action->exists('@lang') && $action->fetch('@lang') == $language) ? $language : '', |
|
1246 | + 'language' => (($actionType == 'readme' || $actionType == 'license') && $action->exists('@lang') && $action->fetch('@lang') == $language) ? $language : '', |
|
1247 | 1247 | ); |
1248 | 1248 | |
1249 | 1249 | continue; |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | // Build the reports button array. |
113 | 113 | $context['report_buttons'] = array( |
114 | 114 | 'generate_reports' => array('text' => 'generate_reports', 'image' => 'print.png', 'url' => $scripturl . '?action=admin;area=reports', 'active' => true), |
115 | - 'print' => array('text' => 'print', 'image' => 'print.png', 'url' => $scripturl . '?action=admin;area=reports;rt=' . $context['report_type']. ';st=print', 'custom' => 'target="_blank"'), |
|
115 | + 'print' => array('text' => 'print', 'image' => 'print.png', 'url' => $scripturl . '?action=admin;area=reports;rt=' . $context['report_type'] . ';st=print', 'custom' => 'target="_blank"'), |
|
116 | 116 | ); |
117 | 117 | |
118 | 118 | // Allow mods to add additional buttons here |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | $request = $smcFunc['db_query']('', ' |
345 | 345 | SELECT id_board, id_group |
346 | 346 | FROM {db_prefix}moderator_groups |
347 | - WHERE ' . $board_clause .' AND ' . $group_clause, |
|
347 | + WHERE ' . $board_clause . ' AND ' . $group_clause, |
|
348 | 348 | array( |
349 | 349 | ) |
350 | 350 | ); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | return null; |
49 | 49 | } |
50 | 50 | if (PasswordCompat\binary\_strlen($password) > 72) { |
51 | - $password = PasswordCompat\binary\_substr($password, 0,72); |
|
51 | + $password = PasswordCompat\binary\_substr($password, 0, 72); |
|
52 | 52 | } |
53 | 53 | $resultLength = 0; |
54 | 54 | switch ($algo) { |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | return false; |
237 | 237 | } |
238 | 238 | if (PasswordCompat\binary\_strlen($password) > 72) { |
239 | - $password = PasswordCompat\binary\_substr($password, 0,72); |
|
239 | + $password = PasswordCompat\binary\_substr($password, 0, 72); |
|
240 | 240 | } |
241 | 241 | $ret = crypt($password, $hash); |
242 | 242 | if (!is_string($ret) || PasswordCompat\binary\_strlen($ret) != PasswordCompat\binary\_strlen($hash) || PasswordCompat\binary\_strlen($ret) <= 13) { |
@@ -357,9 +357,9 @@ discard block |
||
357 | 357 | $parameter = strtolower(strtr($smcFunc['htmlspecialchars']($search_params[$param_name], ENT_QUOTES), array('%' => '\%', '_' => '\_', '*' => '%', '?' => '_'))); |
358 | 358 | |
359 | 359 | if ($smcFunc['db_case_sensitive']) |
360 | - $query_parts[] = '(LOWER(' . implode( ') LIKE {string:' . $param_name . '_normal} OR LOWER(', $param_info['db_fields']) . ') LIKE {string:' . $param_name . '_normal})'; |
|
360 | + $query_parts[] = '(LOWER(' . implode(') LIKE {string:' . $param_name . '_normal} OR LOWER(', $param_info['db_fields']) . ') LIKE {string:' . $param_name . '_normal})'; |
|
361 | 361 | else |
362 | - $query_parts[] = '(' . implode( ' LIKE {string:' . $param_name . '_normal} OR ', $param_info['db_fields']) . ' LIKE {string:' . $param_name . '_normal})'; |
|
362 | + $query_parts[] = '(' . implode(' LIKE {string:' . $param_name . '_normal} OR ', $param_info['db_fields']) . ' LIKE {string:' . $param_name . '_normal})'; |
|
363 | 363 | $where_params[$param_name . '_normal'] = '%' . $parameter . '%'; |
364 | 364 | } |
365 | 365 | } |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | 'value' => $txt['viewmembers_online'], |
519 | 519 | ), |
520 | 520 | 'data' => array( |
521 | - 'function' => function ($rowData) use ($txt) |
|
521 | + 'function' => function($rowData) use ($txt) |
|
522 | 522 | { |
523 | 523 | // Calculate number of days since last online. |
524 | 524 | if (empty($rowData['last_login'])) |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | 'class' => 'centercol', |
573 | 573 | ), |
574 | 574 | 'data' => array( |
575 | - 'function' => function ($rowData) use ($user_info) |
|
575 | + 'function' => function($rowData) use ($user_info) |
|
576 | 576 | { |
577 | 577 | return '<input type="checkbox" name="delete[]" value="' . $rowData['id_member'] . '" class="input_check"' . ($rowData['id_member'] == $user_info['id'] || $rowData['id_group'] == 1 || in_array(1, explode(',', $rowData['additional_groups'])) ? ' disabled' : '') . '>'; |
578 | 578 | }, |
@@ -877,7 +877,7 @@ discard block |
||
877 | 877 | 'value' => $txt['hostname'], |
878 | 878 | ), |
879 | 879 | 'data' => array( |
880 | - 'function' => function ($rowData) |
|
880 | + 'function' => function($rowData) |
|
881 | 881 | { |
882 | 882 | return host_from_ip(inet_dtop($rowData['member_ip'])); |
883 | 883 | }, |
@@ -889,7 +889,7 @@ discard block |
||
889 | 889 | 'value' => $context['current_filter'] == 4 ? $txt['viewmembers_online'] : $txt['date_registered'], |
890 | 890 | ), |
891 | 891 | 'data' => array( |
892 | - 'function' => function ($rowData) use ($context) |
|
892 | + 'function' => function($rowData) use ($context) |
|
893 | 893 | { |
894 | 894 | return timeformat($rowData['' . ($context['current_filter'] == 4 ? 'last_login' : 'date_registered') . '']); |
895 | 895 | }, |
@@ -906,7 +906,7 @@ discard block |
||
906 | 906 | 'style' => 'width: 20%;', |
907 | 907 | ), |
908 | 908 | 'data' => array( |
909 | - 'function' => function ($rowData) use ($scripturl, $txt) |
|
909 | + 'function' => function($rowData) use ($scripturl, $txt) |
|
910 | 910 | { |
911 | 911 | $member_links = array(); |
912 | 912 | foreach ($rowData['duplicate_members'] as $member) |
@@ -916,7 +916,7 @@ discard block |
||
916 | 916 | else |
917 | 917 | $member_links[] = $member['name'] . ' (' . $txt['guest'] . ')'; |
918 | 918 | } |
919 | - return implode (', ', $member_links); |
|
919 | + return implode(', ', $member_links); |
|
920 | 920 | }, |
921 | 921 | 'class' => 'smalltext', |
922 | 922 | ), |