mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Minor improvements (#1730)
* Minor improvements * Updated * Updated * Update common.php * Update common.php * Updated * Revert "Updated" This reverts commit204d196ba5
. * Revert "Update common.php" This reverts commiteb24dc1c85
. * 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:
parent
4a076a09cc
commit
768837608b
9 changed files with 119 additions and 71 deletions
|
@ -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&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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue