mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
parent
345845e5cf
commit
4c725f6246
5 changed files with 41 additions and 20 deletions
|
@ -1002,6 +1002,24 @@ 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