From 55f5bf77bc231a2f4daa8f31b45e44269a0c14f3 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 10 Aug 2023 21:45:30 +0700 Subject: [PATCH] Fixed formatting --- admin/admin_rebuild_search.php | 2 +- library/ajax/mod_action.php | 4 ++-- library/config.php | 2 +- library/includes/functions_group.php | 10 +++++----- library/includes/functions_post.php | 2 +- privmsg.php | 2 +- tracker.php | 10 +++++----- viewforum.php | 2 +- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/admin/admin_rebuild_search.php b/admin/admin_rebuild_search.php index d386e0b7..0591348d 100644 --- a/admin/admin_rebuild_search.php +++ b/admin/admin_rebuild_search.php @@ -267,7 +267,7 @@ if ($mode == 'submit' || $mode == 'refresh') $processing_messages .= sprintf($lang['PROCESSING_NEXT_POSTS'], $post_limit); - meta_refresh($form_action, $refresh_rate); + meta_refresh($form_action, $refresh_rate); // create the meta tag for refresh $template->assign_vars(array( diff --git a/library/ajax/mod_action.php b/library/ajax/mod_action.php index 82b0dfac..8e08d407 100644 --- a/library/ajax/mod_action.php +++ b/library/ajax/mod_action.php @@ -91,7 +91,7 @@ switch ($mode) { $link_reg_ip .= profile_url($row) .', '; } - $link_reg_ip = rtrim($link_reg_ip, ', '); + $link_reg_ip = rtrim($link_reg_ip, ', '); } if (!empty($last_ip)) @@ -101,7 +101,7 @@ switch ($mode) { $link_last_ip .= profile_url($row) .', '; } - $link_last_ip = rtrim($link_last_ip, ', '); + $link_last_ip = rtrim($link_last_ip, ', '); } if ($profiledata['user_level'] == ADMIN && !IS_ADMIN) $reg_ip = $last_ip = $lang['HIDDEN']; diff --git a/library/config.php b/library/config.php index 8ea06846..a2907f89 100644 --- a/library/config.php +++ b/library/config.php @@ -511,7 +511,7 @@ $bb_cfg['advert_url'] = 'info.php?show=advert'; $bb_cfg['sitemap_sending'] = array( # 'Source name' => 'http://ping_url' - 'Google' => 'http://google.com/webmasters/sitemaps/ping?sitemap=', + 'Google' => 'http://google.com/webmasters/sitemaps/ping?sitemap=', ); // Extensions diff --git a/library/includes/functions_group.php b/library/includes/functions_group.php index eb242084..8bcffe5d 100644 --- a/library/includes/functions_group.php +++ b/library/includes/functions_group.php @@ -106,14 +106,14 @@ function delete_user_group ($group_id, $user_id) function create_user_group ($user_id) { - DB()->query("INSERT INTO ". BB_GROUPS ." (group_single_user) VALUES (1)"); + DB()->query("INSERT INTO ". BB_GROUPS ." (group_single_user) VALUES (1)"); - $group_id = (int) DB()->sql_nextid(); - $user_id = (int) $user_id; + $group_id = (int) DB()->sql_nextid(); + $user_id = (int) $user_id; - DB()->query("INSERT INTO ". BB_USER_GROUP ." (user_id, group_id, user_time) VALUES ($user_id, $group_id, ". TIMENOW .")"); + DB()->query("INSERT INTO ". BB_USER_GROUP ." (user_id, group_id, user_time) VALUES ($user_id, $group_id, ". TIMENOW .")"); - return $group_id; + return $group_id; } function get_group_data ($group_id) diff --git a/library/includes/functions_post.php b/library/includes/functions_post.php index 07e3a40b..08fd8ab3 100644 --- a/library/includes/functions_post.php +++ b/library/includes/functions_post.php @@ -192,7 +192,7 @@ function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_ 'post_text' => $post_message, )); - //Обновление кеша новостей на главной + //Обновление кеша новостей на главной if($bb_cfg['show_latest_news']) { $news_forums = array_flip(explode(',', $bb_cfg['latest_news_forum_id'])); diff --git a/privmsg.php b/privmsg.php index ca7b7523..989e4a10 100644 --- a/privmsg.php +++ b/privmsg.php @@ -1230,7 +1230,7 @@ else if ( $submit || $refresh || $mode != '' ) $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); - $preview_message = htmlCHR($privmsg_message, false, ENT_NOQUOTES); + $preview_message = htmlCHR($privmsg_message, false, ENT_NOQUOTES); $preview_message = bbcode2html($privmsg_message); if ( count($orig_word) ) diff --git a/tracker.php b/tracker.php index 0bc9b72c..7195bab3 100644 --- a/tracker.php +++ b/tracker.php @@ -403,7 +403,7 @@ if (!$set_default) $forum_val = join(',', $valid_forums); } - if ($forum_val && $forum_val != $search_all) + if ($forum_val && $forum_val != $search_all) { $search_in_forums_ary = array_slice(explode(',', $forum_val), 0, $max_forums_selected); $search_in_forums_fary = array_flip($search_in_forums_ary); @@ -668,10 +668,10 @@ if ($allowed_forums) { $SQL['WHERE'][] = "sn.seeders >= 1"; } - if ($tor_type) - { - $SQL['WHERE'][] = "tor.tor_type IN(1,2)"; - } + if ($tor_type) + { + $SQL['WHERE'][] = "tor.tor_type IN(1,2)"; + } // ORDER $SQL['ORDER BY'][] = "{$order_opt[$order_val]['sql']} {$sort_opt[$sort_val]['sql']}"; diff --git a/viewforum.php b/viewforum.php index 204e4357..98a3978b 100644 --- a/viewforum.php +++ b/viewforum.php @@ -99,7 +99,7 @@ if ($is_auth['auth_mod']) unset($_REQUEST['sort'], $_REQUEST['order'], $_REQUEST[$title_match_key]); $show_type_separator = false; } - $select_tst = array_merge(array($lang['TOR_STATUS_SELECT_ALL'] => -1), array_flip($lang['TOR_STATUS_NAME'])); + $select_tst = array_merge(array($lang['TOR_STATUS_SELECT_ALL'] => -1), array_flip($lang['TOR_STATUS_NAME'])); $template->assign_vars(array( 'SELECT_TST' => build_select('tst', $select_tst, $tor_status), ));