mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Simplified jumpbox 📜 (#815)
* Simplified jumpbox 📜
* Updated
* Update README.md
* Updated
* Update page_header.tpl
* Update functions.php
This commit is contained in:
parent
867c0ec1a2
commit
f098041713
8 changed files with 27 additions and 25 deletions
|
@ -1012,16 +1012,20 @@ function get_userdata($u, bool $is_name = false, bool $allow_guest = false)
|
|||
return $u_data;
|
||||
}
|
||||
|
||||
function make_jumpbox($selected = 0)
|
||||
function make_jumpbox()
|
||||
{
|
||||
global $datastore, $template;
|
||||
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(['JUMPBOX' => (IS_GUEST) ? $jumpbox['guest'] : $jumpbox['user']]);
|
||||
$template->assign_vars(['JUMPBOX' => (IS_GUEST) ? DB()->escape($jumpbox['guest']) : DB()->escape($jumpbox['user'])]);
|
||||
}
|
||||
|
||||
// $mode: array(not_auth_forum1,not_auth_forum2,..) or (string) 'mode'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue