Minor improvements (#187)

This commit is contained in:
Roman Kelesidis 2023-06-18 13:37:21 +07:00 committed by GitHub
parent ae0566b1eb
commit cfaad73d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 11 deletions

View File

@ -108,6 +108,7 @@ if (!isset($_REQUEST['dosearch']))
'FORUMS_LIST' => $forums_list,
'LASTVISITED_LIST' => $lastvisited_list,
'U_SEARCH_USER' => BB_ROOT . 'search.php?mode=searchuser',
'S_SEARCH_ACTION' => 'admin_user_search.php',
));
}

View File

@ -34,7 +34,7 @@ elseif (isset($this->request['topic_id']))
WHERE t.topic_id = $topic_id
AND f.forum_id = t.forum_id
LIMIT 1");
if(!$post) $this->ajax_die('not post');
if(!$post) $this->ajax_die($lang['INVALID_TOPIC_ID_DB']);
$is_auth = auth(AUTH_ALL, $post['forum_id'], $userdata, $post);
}

View File

@ -210,13 +210,13 @@ function hl (id, on)
<td class="small tCenter" title="{L_POSTS_SHORT}"><em class="med" style="color: grey">{L_POSTS_SHORT}:</em> {c.f.NUM_POSTS}</td>
<td class="med nowrap tCenter">
&nbsp;
<a class="med" href="{c.f.U_FORUM_EDIT}">edit</a>
<a class="med" href="{c.f.U_FORUM_EDIT}">{L_EDIT}</a>
&nbsp;&middot;&nbsp;
<a class="med" href="{c.f.U_FORUM_PERM}">perm</a>
<a class="med" href="{c.f.U_FORUM_PERM}">{L_PERMISSIONS}</a>
&nbsp;&middot;&nbsp;
<a class="med" href="{c.f.U_FORUM_RESYNC}">sync</a>
<a class="med" href="{c.f.U_FORUM_RESYNC}">{L_SYNC}</a>
&nbsp;&middot;&nbsp;
<a class="med" href="{c.f.U_FORUM_DELETE}">x</a>
<a class="med" href="{c.f.U_FORUM_DELETE}">{L_DELETE}</a>
&nbsp;
</td>
<td class="small" align="center" nowrap="nowrap"><b>{c.f.PRUNE_DAYS}</b></td>

View File

@ -11,7 +11,7 @@
</tr>
<tr>
<td class="row1">{L_USERNAME}:</td>
<td class="row2"><input class="post" type="text" class="post" name="username" maxlength="50" size="20" /> <input type="hidden" name="mode" value="edit" />{S_HIDDEN_FIELDS} <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_bbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></td>
<td class="row2"><input class="post" type="text" name="username" maxlength="50" size="20" /> <input type="hidden" name="mode" value="edit" />{S_HIDDEN_FIELDS} <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_bbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></td>
</tr>
<tr>
<th colspan="2">{L_UNBAN_USERNAME}</th>

View File

@ -13,7 +13,7 @@
<th>{L_SEARCH_USERS_ADVANCED}</th>
</tr>
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}:</b>&nbsp;<input class="post" type="text" name="username" maxlength="255" size="25" />&nbsp;<input type="submit" class="post2" name="search_username" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERNAME_EXPLAIN}</span></td>
<td class="row1"><span class="gen"><b>{L_USERNAME}:</b>&nbsp;<input class="post" type="text" name="username" maxlength="255" size="25" />&nbsp;<input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" onclick="window.open('{U_SEARCH_USER}', '_bbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" />&nbsp;<input type="submit" class="post2" name="search_username" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERNAME_EXPLAIN}</span></td>
</tr>
<tr>
<td class="row2">&nbsp;</td>
@ -91,7 +91,7 @@
</tr>
<!-- END forums_exist -->
<tr>
<td class="row1"><span class="gen"><select name="misc" class="post"><option value="admins" selected="selected">{L_ADMINISTRATORS}</option><option value="mods">{L_MODERATORS}</option><option value="banned">{L_BANNED_USERS}</option><option value="disabled">{L_DISABLED_USERS}</option></select>&nbsp;<input type="submit" class="post2" class="post2" name="search_misc" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_MISC_EXPLAIN}</span></td>
<td class="row1"><span class="gen"><select name="misc" class="post"><option value="admins" selected="selected">{L_ADMINISTRATORS}</option><option value="mods">{L_MODERATORS}</option><option value="banned">{L_BANNED_USERS}</option><option value="disabled">{L_DISABLED_USERS}</option></select>&nbsp;<input type="submit" class="post2" name="search_misc" value="{L_SEARCH}" /></span><br /><span class="small">{L_SEARCH_USERS_MISC_EXPLAIN}</span></td>
</tr>
<tr>
<td class="row2">&nbsp;</td>