Minor improvements (#884)

* Minor improvements

* Update displaying_torrent.php

* Updated

* Updated

* Updated

* Update terms.php
This commit is contained in:
Roman Kelesidis 2023-09-04 16:42:15 +07:00 committed by GitHub
commit 209b8cd638
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 207 additions and 211 deletions

View file

@ -81,14 +81,14 @@ if (!isset($_REQUEST['dosearch'])) {
}
}
$lastvisited = array(1, 7, 14, 30, 60, 120, 365, 500, 730, 1000);
$lastvisited = [1, 7, 14, 30, 60, 120, 365, 500, 730, 1000];
$lastvisited_list = '';
foreach ($lastvisited as $days) {
$lastvisited_list .= '<option value="' . $days . '">' . $days . ' ' . (($days > 1) ? $lang['DAYS'] : $lang['DAY']) . '</option>';
}
$template->assign_vars(array(
$template->assign_vars([
'TPL_ADMIN_USER_SEARCH_MAIN' => true,
'YEAR' => date('Y'),
@ -102,8 +102,8 @@ if (!isset($_REQUEST['dosearch'])) {
'LASTVISITED_LIST' => $lastvisited_list,
'U_SEARCH_USER' => BB_ROOT . 'search.php?mode=searchuser',
'S_SEARCH_ACTION' => 'admin_user_search.php',
));
'S_SEARCH_ACTION' => 'admin_user_search.php'
]);
} else {
$mode = '';
@ -876,7 +876,7 @@ if (!isset($_REQUEST['dosearch'])) {
if ($num_pages > 2) {
$pagination .= '&nbsp;&nbsp;<input type="text" name="page" maxlength="5" size="2" class="post" />&nbsp;<input type="submit" name="submit" value="' . $lang['GO'] . '" class="post" />';
}
$template->assign_vars(array(
$template->assign_vars([
'TPL_ADMIN_USER_SEARCH_RESULTS' => true,
'PAGE_NUMBER' => sprintf($lang['PAGE_OF'], $page, $num_pages),
@ -890,7 +890,7 @@ if (!isset($_REQUEST['dosearch'])) {
'U_LASTVISIT' => ($sort == 'lastvisit') ? "$base_url&sort=$sort&order=$o_order" : "$base_url&sort=lastvisit&order=$order",
'S_POST_ACTION' => "$base_url&sort=$sort&order=$order"
));
]);
if (!$result = DB()->sql_query($select_sql)) {
bb_die('Could not select user data');
@ -921,7 +921,7 @@ if (!isset($_REQUEST['dosearch'])) {
for ($i = 0, $iMax = count($rowset); $i < $iMax; $i++) {
$row_class = !($i % 2) ? 'row1' : 'row2';
$template->assign_block_vars('userrow', array(
$template->assign_block_vars('userrow', [
'ROW_CLASS' => $row_class,
'USER' => profile_url($rowset[$i]),
'EMAIL' => $rowset[$i]['user_email'],
@ -934,7 +934,7 @@ if (!isset($_REQUEST['dosearch'])) {
'U_VIEWPOSTS' => "../search.php?search_author=1&amp;uid={$rowset[$i]['user_id']}",
'U_MANAGE' => '../profile.php?mode=editprofile&' . POST_USERS_URL . '=' . $rowset[$i]['user_id'] . '&admin=1',
'U_PERMISSIONS' => 'admin_ug_auth.php?mode=user&' . POST_USERS_URL . '=' . $rowset[$i]['user_id'],
));
]);
}
}