mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#1443)
* Minor improvements * Updated * Update terms.php * Update main.php * Update CHANGELOG.md * Update memberlist.tpl
This commit is contained in:
parent
564fc25cbc
commit
8c925cc303
7 changed files with 15 additions and 21 deletions
|
@ -10,7 +10,7 @@
|
|||
- Improved app debug [\#1438](https://github.com/torrentpier/torrentpier/pull/1438) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Demo mode: Allow registering torrents by default [\#1440](https://github.com/torrentpier/torrentpier/pull/1440) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Code refactoring [\#1441](https://github.com/torrentpier/torrentpier/pull/1441) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#1435](https://github.com/torrentpier/torrentpier/pull/1435) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#1435](https://github.com/torrentpier/torrentpier/pull/1435), [\#1443](https://github.com/torrentpier/torrentpier/pull/1443) ([belomaxorka](https://github.com/belomaxorka))
|
||||
|
||||
## [v2.4.2](https://github.com/torrentpier/torrentpier/tree/v2.4.2) (2024-03-30)
|
||||
[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.1...v2.4.2)
|
||||
|
|
|
@ -2749,7 +2749,7 @@ $lang['ATOM_GLOBAL_FEED'] = 'Global feed for all forums';
|
|||
$lang['HASH_INVALID'] = 'Hash %s is invalid';
|
||||
$lang['HASH_NOT_FOUND'] = 'Release with hash %s not found';
|
||||
|
||||
$lang['TERMS_EMPTY_TEXT'] = '[align=center]The text of this page is edited at: [url=https://%s/admin/admin_terms.php]admin/admin_terms.php[/url]. This line can see only administrators.[/align]';
|
||||
$lang['TERMS_EMPTY_TEXT'] = '[align=center]The text of this page is edited at: %s. This line can see only administrators.[/align]';
|
||||
$lang['TERMS_EXPLAIN'] = 'On this page, you can specify the text of the basic rules of the resource is displayed to users.';
|
||||
|
||||
$lang['TR_STATS'] = [
|
||||
|
|
|
@ -11,8 +11,6 @@ define('BB_SCRIPT', 'memberlist');
|
|||
|
||||
require __DIR__ . '/common.php';
|
||||
|
||||
$page_cfg['use_tablesorter'] = true;
|
||||
|
||||
$user->session_start(['req_login' => true]);
|
||||
|
||||
$start = abs((int)request_var('start', 0));
|
||||
|
@ -79,7 +77,6 @@ if ($result = DB()->fetch_rowset($sql)) {
|
|||
'AVATAR' => $user_info['avatar'],
|
||||
'FROM' => $user_info['from'],
|
||||
'JOINED' => $user_info['joined'],
|
||||
'JOINED_RAW' => $user_info['joined_raw'],
|
||||
'POSTS' => $user_info['posts'],
|
||||
'PM' => $user_info['pm'],
|
||||
'EMAIL' => $user_info['email'],
|
||||
|
|
|
@ -75,6 +75,6 @@ class APCu extends Common
|
|||
|
||||
public function is_installed(): bool
|
||||
{
|
||||
return function_exists('apcu_add');
|
||||
return extension_loaded('apcu') && apcu_enabled();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -77,6 +77,6 @@ class APCu extends Common
|
|||
|
||||
public function is_installed(): bool
|
||||
{
|
||||
return function_exists('apcu_add');
|
||||
return extension_loaded('apcu') && apcu_enabled();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,17 +15,17 @@
|
|||
</table>
|
||||
</form>
|
||||
|
||||
<table class="forumline tablesorter">
|
||||
<table class="forumline">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="{sorter: 'digit'}"><b class="tbs-text">#</b></th>
|
||||
<th class="{sorter: 'text'}"><b class="tbs-text">{L_USERNAME}</b></th>
|
||||
<th class="{sorter: false}"><b class="tbs-text">{L_PM}</b></th>
|
||||
<th class="{sorter: 'text'}"><b class="tbs-text">{L_EMAIL}</b></th>
|
||||
<th class="{sorter: 'text'}"><b class="tbs-text">{L_LOCATION}</b></th>
|
||||
<th class="{sorter: 'digit'}"><b class="tbs-text">{L_JOINED}</b></th>
|
||||
<th class="{sorter: 'digit'}"><b class="tbs-text">{L_POSTS_SHORT}</b></th>
|
||||
<th class="{sorter: false}"><b class="tbs-text">{L_WEBSITE}</b></th>
|
||||
<th>#</th>
|
||||
<th>{L_USERNAME}</th>
|
||||
<th>{L_PM}</th>
|
||||
<th>{L_EMAIL}</th>
|
||||
<th>{L_LOCATION}</th>
|
||||
<th>{L_JOINED}</th>
|
||||
<th>{L_POSTS_SHORT}</th>
|
||||
<th>{L_WEBSITE}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<!-- BEGIN memberrow -->
|
||||
|
@ -38,10 +38,7 @@
|
|||
<td>{memberrow.PM}</td>
|
||||
<td>{memberrow.EMAIL}</td>
|
||||
<td>{memberrow.FROM}</td>
|
||||
<td class="small">
|
||||
<u>{memberrow.JOINED_RAW}</u>
|
||||
{memberrow.JOINED}
|
||||
</td>
|
||||
<td>{memberrow.JOINED}</td>
|
||||
<td>{memberrow.POSTS}</td>
|
||||
<td>{memberrow.WWW}</td>
|
||||
</tr>
|
||||
|
|
|
@ -20,7 +20,7 @@ if (!$bb_cfg['terms'] && !IS_ADMIN) {
|
|||
}
|
||||
|
||||
$template->assign_vars([
|
||||
'TERMS_EDIT' => bbcode2html(sprintf($lang['TERMS_EMPTY_TEXT'], $bb_cfg['server_name'])),
|
||||
'TERMS_EDIT' => bbcode2html(sprintf($lang['TERMS_EMPTY_TEXT'], make_url('admin/admin_terms.php'))),
|
||||
'TERMS_HTML' => bbcode2html($bb_cfg['terms']),
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue