Minor improvements (#1730)

* Minor improvements

* Updated

* Updated

* Update common.php

* Update common.php

* Updated

* Revert "Updated"

This reverts commit 204d196ba5.

* Revert "Update common.php"

This reverts commit eb24dc1c85.

* Updated

* Updated

* Update build_check_updates.php

* Update build_check_updates.php

* Update common.php

* Update build_check_updates.php

* Updated

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2025-01-01 20:52:34 +07:00 committed by GitHub
commit 768837608b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 119 additions and 71 deletions

View file

@ -792,7 +792,7 @@ function generate_user_info($row, bool $have_auth = IS_ADMIN): array
{
global $userdata, $lang, $images, $bb_cfg;
$from = !empty($row['user_from']) ? render_flag($row['user_from']) : $lang['NOSELECT'];
$from = !empty($row['user_from']) ? render_flag($row['user_from'], false) : $lang['NOSELECT'];
$joined = bb_date($row['user_regdate'], 'Y-m-d H:i', false);
$user_time = !empty($row['user_time']) ? sprintf('%s <span class="signature">(%s)</span>', bb_date($row['user_time']), delta_time($row['user_time'])) : $lang['NOSELECT'];
$posts = '<a href="search.php?search_author=1&amp;uid=' . $row['user_id'] . '" target="_blank">' . $row['user_posts'] ?: 0 . '</a>';
@ -2157,6 +2157,20 @@ function readUpdaterFile(): array|bool
return json_decode(file_get_contents(UPDATER_FILE), true);
}
/**
* Version formatter
*
* @param string $version
* @return string
*/
function versionFormatter(string $version): string
{
$version = trim($version);
$version = mb_strtolower($version, 'UTF-8');
return str_replace('v', '', $version);
}
/**
* IP Geolocation API
*