Fixed formatting

This commit is contained in:
Roman Kelesidis 2023-08-10 21:45:30 +07:00
parent 5bd41e3f8f
commit 55f5bf77bc
8 changed files with 17 additions and 17 deletions

View File

@ -267,7 +267,7 @@ if ($mode == 'submit' || $mode == 'refresh')
$processing_messages .= sprintf($lang['PROCESSING_NEXT_POSTS'], $post_limit); $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 // create the meta tag for refresh
$template->assign_vars(array( $template->assign_vars(array(

View File

@ -91,7 +91,7 @@ switch ($mode)
{ {
$link_reg_ip .= profile_url($row) .', '; $link_reg_ip .= profile_url($row) .', ';
} }
$link_reg_ip = rtrim($link_reg_ip, ', '); $link_reg_ip = rtrim($link_reg_ip, ', ');
} }
if (!empty($last_ip)) if (!empty($last_ip))
@ -101,7 +101,7 @@ switch ($mode)
{ {
$link_last_ip .= profile_url($row) .', '; $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']; if ($profiledata['user_level'] == ADMIN && !IS_ADMIN) $reg_ip = $last_ip = $lang['HIDDEN'];

View File

@ -511,7 +511,7 @@ $bb_cfg['advert_url'] = 'info.php?show=advert';
$bb_cfg['sitemap_sending'] = array( $bb_cfg['sitemap_sending'] = array(
# 'Source name' => 'http://ping_url' # 'Source name' => 'http://ping_url'
'Google' => 'http://google.com/webmasters/sitemaps/ping?sitemap=', 'Google' => 'http://google.com/webmasters/sitemaps/ping?sitemap=',
); );
// Extensions // Extensions

View File

@ -106,14 +106,14 @@ function delete_user_group ($group_id, $user_id)
function create_user_group ($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(); $group_id = (int) DB()->sql_nextid();
$user_id = (int) $user_id; $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) function get_group_data ($group_id)

View File

@ -192,7 +192,7 @@ function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_
'post_text' => $post_message, 'post_text' => $post_message,
)); ));
//Обновление кеша новостей на главной //Обновление кеша новостей на главной
if($bb_cfg['show_latest_news']) if($bb_cfg['show_latest_news'])
{ {
$news_forums = array_flip(explode(',', $bb_cfg['latest_news_forum_id'])); $news_forums = array_flip(explode(',', $bb_cfg['latest_news_forum_id']));

View File

@ -1230,7 +1230,7 @@ else if ( $submit || $refresh || $mode != '' )
$replacement_word = array(); $replacement_word = array();
obtain_word_list($orig_word, $replacement_word); 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); $preview_message = bbcode2html($privmsg_message);
if ( count($orig_word) ) if ( count($orig_word) )

View File

@ -403,7 +403,7 @@ if (!$set_default)
$forum_val = join(',', $valid_forums); $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_ary = array_slice(explode(',', $forum_val), 0, $max_forums_selected);
$search_in_forums_fary = array_flip($search_in_forums_ary); $search_in_forums_fary = array_flip($search_in_forums_ary);
@ -668,10 +668,10 @@ if ($allowed_forums)
{ {
$SQL['WHERE'][] = "sn.seeders >= 1"; $SQL['WHERE'][] = "sn.seeders >= 1";
} }
if ($tor_type) if ($tor_type)
{ {
$SQL['WHERE'][] = "tor.tor_type IN(1,2)"; $SQL['WHERE'][] = "tor.tor_type IN(1,2)";
} }
// ORDER // ORDER
$SQL['ORDER BY'][] = "{$order_opt[$order_val]['sql']} {$sort_opt[$sort_val]['sql']}"; $SQL['ORDER BY'][] = "{$order_opt[$order_val]['sql']} {$sort_opt[$sort_val]['sql']}";

View File

@ -99,7 +99,7 @@ if ($is_auth['auth_mod'])
unset($_REQUEST['sort'], $_REQUEST['order'], $_REQUEST[$title_match_key]); unset($_REQUEST['sort'], $_REQUEST['order'], $_REQUEST[$title_match_key]);
$show_type_separator = false; $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( $template->assign_vars(array(
'SELECT_TST' => build_select('tst', $select_tst, $tor_status), 'SELECT_TST' => build_select('tst', $select_tst, $tor_status),
)); ));