mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Minor improvements (#766)
This commit is contained in:
parent
ce9c3d9b47
commit
75c0920dce
5 changed files with 20 additions and 41 deletions
|
@ -998,24 +998,6 @@ function get_userdata($u, $force_name = false, $allow_guest = false)
|
|||
return $u_data;
|
||||
}
|
||||
|
||||
function make_jumpbox($selected = 0)
|
||||
{
|
||||
global $datastore, $template, $bb_cfg;
|
||||
|
||||
if (!$bb_cfg['show_jumpbox']) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$jumpbox = $datastore->get('jumpbox')) {
|
||||
$datastore->update('jumpbox');
|
||||
$jumpbox = $datastore->get('jumpbox');
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'JUMPBOX' => (IS_GUEST) ? $jumpbox['guest'] : $jumpbox['user'],
|
||||
));
|
||||
}
|
||||
|
||||
// $mode: array(not_auth_forum1,not_auth_forum2,..) or (string) 'mode'
|
||||
function get_forum_select($mode = 'guest', $name = POST_FORUM_URL, $selected = null, $max_length = HTML_SELECT_MAX_LENGTH, $multiple_size = null, $js = '', $all_forums_option = null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue