@@ -1730,10 +1730,13 @@ |
||
| 1730 | 1730 | if ($result[0] === 127 // Valid Response |
| 1731 | 1731 | && ($result[3] & 3 || $result[3] & 5) // Listed as Suspicious + Harvester || Suspicious + Comment Spammer |
| 1732 | 1732 | && $result[2] >= $modSettings['badbehavior_httpbl_threat'] // Level |
| 1733 | - && $result[1] <= $modSettings['badbehavior_httpbl_maxage']) // Age |
|
| 1733 | + && $result[1] <= $modSettings['badbehavior_httpbl_maxage']) |
|
| 1734 | + { |
|
| 1735 | + // Age |
|
| 1734 | 1736 | { |
| 1735 | 1737 | return true; |
| 1736 | 1738 | } |
| 1739 | + } |
|
| 1737 | 1740 | } |
| 1738 | 1741 | |
| 1739 | 1742 | return false; |
@@ -1377,11 +1377,13 @@ |
||
| 1377 | 1377 | { |
| 1378 | 1378 | // If we revert to the old id-group we need to ensure it wasn't from a subscription. |
| 1379 | 1379 | foreach ($context['subscriptions'] as $id => $group) |
| 1380 | - // It was? Make them a regular member then! |
|
| 1380 | + { |
|
| 1381 | + // It was? Make them a regular member then! |
|
| 1381 | 1382 | { |
| 1382 | 1383 | if ($group['prim_group'] == $member['id_group']) |
| 1383 | 1384 | { |
| 1384 | 1385 | $member['id_group'] = 0; |
| 1386 | + } |
|
| 1385 | 1387 | } |
| 1386 | 1388 | } |
| 1387 | 1389 | |
@@ -735,10 +735,12 @@ |
||
| 735 | 735 | } |
| 736 | 736 | // If this is being unapproved, and it's equal to the id_last_msg we need to find a new one! |
| 737 | 737 | elseif (!$approve) |
| 738 | - // Default to the first message and then we'll override in a bit ;) |
|
| 738 | + { |
|
| 739 | + // Default to the first message and then we'll override in a bit ;) |
|
| 739 | 740 | { |
| 740 | 741 | $topic_changes[$row['id_topic']]['id_last_msg'] = $row['id_first_msg']; |
| 741 | 742 | } |
| 743 | + } |
|
| 742 | 744 | |
| 743 | 745 | $topic_changes[$row['id_topic']]['unapproved_posts'] += $approve ? -1 : 1; |
| 744 | 746 | $board_changes[$row['id_board']]['unapproved_posts'] += $approve ? -1 : 1; |
@@ -306,8 +306,7 @@ |
||
| 306 | 306 | class_exists($modSettings['front_page']) |
| 307 | 307 | && in_array('validateFrontPageOptions', get_class_methods($modSettings['front_page'])) |
| 308 | 308 | && !$front_page::validateFrontPageOptions($this->_req->post) |
| 309 | - ) |
|
| 310 | - { |
|
| 309 | + ) { |
|
| 311 | 310 | $this->_req->post->front_page = ''; |
| 312 | 311 | } |
| 313 | 312 | } |
@@ -12,5 +12,6 @@ |
||
| 12 | 12 | header('Location: ' . $boardurl); |
| 13 | 13 | } |
| 14 | 14 | // Can't find it... just forget it. |
| 15 | -else |
|
| 15 | +else { |
|
| 16 | 16 | exit; |
| 17 | +} |
|
@@ -2,6 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | // Try to handle it with the upper level index.php. (it should know what to do.) |
| 4 | 4 | if (file_exists(dirname(dirname(__FILE__)) . '/index.php')) |
| 5 | +{ |
|
| 5 | 6 | include (dirname(dirname(__FILE__)) . '/index.php'); |
| 6 | -else |
|
| 7 | - exit; |
|
| 8 | 7 | \ No newline at end of file |
| 8 | +} |
|
| 9 | +else { |
|
| 10 | + exit; |
|
| 11 | +} |
|
@@ -2,6 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | // Try to handle it with the upper level index.php. (it should know what to do.) |
| 4 | 4 | if (file_exists(dirname(dirname(__FILE__)) . '/index.php')) |
| 5 | +{ |
|
| 5 | 6 | include (dirname(dirname(__FILE__)) . '/index.php'); |
| 6 | -else |
|
| 7 | - exit; |
|
| 8 | 7 | \ No newline at end of file |
| 8 | +} |
|
| 9 | +else { |
|
| 10 | + exit; |
|
| 11 | +} |
|
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | </li> |
| 136 | 136 | </ul> |
| 137 | 137 | <?php if (User::$info->is_admin) |
| 138 | - { |
|
| 138 | +{ |
|
| 139 | 139 | ?> |
| 140 | 140 | <h3>Advanced Functions <i class="helpicon i-help" title="Functions that require additional tweaking, not just copy and paste."></i></h3> |
| 141 | 141 | <ul> |
@@ -949,10 +949,12 @@ discard block |
||
| 949 | 949 | $topics = ssi_recentTopics(8, null, null, 'array'); |
| 950 | 950 | |
| 951 | 951 | foreach ($topics as $topic) |
| 952 | - echo ' |
|
| 952 | + { |
|
| 953 | + echo ' |
|
| 953 | 954 | <li> |
| 954 | 955 | <a href="', $topic['href'], '">', $topic['subject'], '</a> ', $txt['by'], ' ', $topic['poster']['link'], ' |
| 955 | 956 | </li>'; |
| 957 | + } |
|
| 956 | 958 | |
| 957 | 959 | unset($topics); |
| 958 | 960 | |
@@ -2,6 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | // Try to handle it with the upper level index.php. (it should know what to do.) |
| 4 | 4 | if (file_exists(dirname(dirname(__FILE__)) . '/index.php')) |
| 5 | +{ |
|
| 5 | 6 | include (dirname(dirname(__FILE__)) . '/index.php'); |
| 6 | -else |
|
| 7 | - exit; |
|
| 8 | 7 | \ No newline at end of file |
| 8 | +} |
|
| 9 | +else { |
|
| 10 | + exit; |
|
| 11 | +} |
|