diff --git a/CHANGELOG.md b/CHANGELOG.md index 785140962..f04b24571 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,9 +19,10 @@ - search.php parameter sanitizing [\#1213](https://github.com/torrentpier/torrentpier/pull/1213) ([kovalensky](https://github.com/kovalensky), [belomaxorka](https://github.com/belomaxorka)) - Limit execution time for forum file-listing [\#1211](https://github.com/torrentpier/torrentpier/pull/1211) ([kovalensky](https://github.com/kovalensky), [belomaxorka](https://github.com/belomaxorka)) - Some reported bugfixes [\#1214](https://github.com/torrentpier/torrentpier/pull/1214) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1215](https://github.com/torrentpier/torrentpier/pull/1215), [\#1217](https://github.com/torrentpier/torrentpier/pull/1217), [\#1219](https://github.com/torrentpier/torrentpier/pull/1219), [\#1220](https://github.com/torrentpier/torrentpier/pull/1220) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#1215](https://github.com/torrentpier/torrentpier/pull/1215), [\#1217](https://github.com/torrentpier/torrentpier/pull/1217), [\#1219](https://github.com/torrentpier/torrentpier/pull/1219), [\#1220](https://github.com/torrentpier/torrentpier/pull/1220), [\#1224](https://github.com/torrentpier/torrentpier/pull/1224) ([belomaxorka](https://github.com/belomaxorka)) - Fixed extensions issue [\#1218](https://github.com/torrentpier/torrentpier/pull/1218) ([belomaxorka](https://github.com/belomaxorka)) - Fixed broken sorting in group.php [\#1221](https://github.com/torrentpier/torrentpier/pull/1221) ([belomaxorka](https://github.com/belomaxorka)) +- Introduce limit setting for max number of files to be processed in separate index file-listing [\#1223](https://github.com/torrentpier/torrentpier/pull/1223) ([kovalensky](https://github.com/kovalensky)) ## [v2.4.0-rc2](https://github.com/torrentpier/torrentpier/tree/v2.4.0-rc2) (2023-12-12) [Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-rc1...v2.4.0-rc2) diff --git a/library/includes/functions.php b/library/includes/functions.php index fe2ff86b9..c27fd6845 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -811,7 +811,18 @@ function generate_user_info($row, bool $have_auth = IS_ADMIN): array $www = $lang['NOSELECT']; } - return ['from' => $from, 'joined' => $joined, 'joined_raw' => $row['user_regdate'], 'posts' => $posts, 'pm' => $pm, 'avatar' => $avatar, 'user_time' => $user_time, 'user_time_raw' => $row['user_time'], 'email' => $email, 'www' => $www]; + return [ + 'from' => $from, + 'joined' => $joined, + 'joined_raw' => $row['user_regdate'], + 'posts' => $posts, + 'pm' => $pm, + 'avatar' => $avatar, + 'user_time' => $user_time, + 'user_time_raw' => ($row['user_time'] ?? ''), + 'email' => $email, + 'www' => $www + ]; } function get_bt_userdata($user_id) diff --git a/library/includes/ucp/topic_watch.php b/library/includes/ucp/topic_watch.php index c4f592765..753020e64 100644 --- a/library/includes/ucp/topic_watch.php +++ b/library/includes/ucp/topic_watch.php @@ -78,6 +78,7 @@ if ($watch_count > 0) { 'REPLIES' => $watch[$i]['topic_replies'], 'AUTHOR' => profile_url($watch[$i]), 'LAST_POST' => bb_date($watch[$i]['topic_last_post_time']) . '
' . profile_url(['user_id' => $watch[$i]['last_user_id'], 'username' => $watch[$i]['last_username'], 'user_rank' => $watch[$i]['last_user_rank']]), + 'LAST_POST_RAW' => $watch[$i]['topic_last_post_time'], 'LAST_POST_ID' => $watch[$i]['topic_last_post_id'], 'IS_UNREAD' => $is_unread, 'TOPIC_ICON' => get_topic_icon($watch[$i], $is_unread), diff --git a/memberlist.php b/memberlist.php index 8b7bb168f..3f1d4db8d 100644 --- a/memberlist.php +++ b/memberlist.php @@ -78,8 +78,8 @@ if ($result = DB()->fetch_rowset($sql)) { 'USER' => profile_url($row), 'AVATAR' => $user_info['avatar'], 'FROM' => $user_info['from'], - 'JOINED_RAW' => $row['user_regdate'], 'JOINED' => $user_info['joined'], + 'JOINED_RAW' => $user_info['joined_raw'], 'POSTS' => $user_info['posts'], 'PM' => $user_info['pm'], 'EMAIL' => $user_info['email'], diff --git a/styles/templates/default/usercp_topic_watch.tpl b/styles/templates/default/usercp_topic_watch.tpl index 9a1f3dcc5..bd72345bc 100644 --- a/styles/templates/default/usercp_topic_watch.tpl +++ b/styles/templates/default/usercp_topic_watch.tpl @@ -1,127 +1,138 @@ - - - + + + - - - - + + + +
-

{PAGE_TITLE}

- -
{PAGINATION}
+

{PAGE_TITLE}

+ +
{PAGINATION}
- - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + +
{L_FORUM}{L_TOPIC}{L_AUTHOR}{L_REPLIES}{L_LASTPOST}
- {watch.TOPIC_ICON} - - {watch.FORUM_TITLE} - {watch.TOPIC_TITLE} -
 [{ICON_GOTOPOST}{L_GOTO_SHORT} {watch.PAGINATION} ] -
{watch.AUTHOR}{watch.REPLIES} - {watch.LAST_POST}{ICON_NEWEST_REPLY} - {ICON_LATEST_REPLY} -
- {L_DEL_LIST_INFO}{MATCHES} -
{L_FORUM}{L_TOPIC}{L_AUTHOR}{L_REPLIES}{L_LASTPOST}
+ {watch.TOPIC_ICON} + + {watch.FORUM_TITLE} + {watch.TOPIC_TITLE} +
 [{ICON_GOTOPOST}{L_GOTO_SHORT} {watch.PAGINATION} ] +
{watch.AUTHOR}{watch.REPLIES} + {watch.LAST_POST_RAW} + {watch.LAST_POST}{ICON_NEWEST_REPLY} + {ICON_LATEST_REPLY} +
+ {L_DEL_LIST_INFO}{MATCHES} +