mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Minor improvements (#884)
* Minor improvements * Update displaying_torrent.php * Updated * Updated * Updated * Update terms.php
This commit is contained in:
parent
4b453de64a
commit
209b8cd638
20 changed files with 207 additions and 211 deletions
|
@ -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 .= ' <input type="text" name="page" maxlength="5" size="2" class="post" /> <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&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'],
|
||||
));
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue