mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-12 12:46:38 +02:00
[ticket/12612] Move function from ucp.php to functions_user.php
PHPBB3-12612
This commit is contained in:
@ -3530,3 +3530,23 @@ function phpbb_get_banned_user_ids($user_ids = array(), $ban_end = true)
|
|||||||
|
|
||||||
return $banned_ids_list;
|
return $banned_ids_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function for assigning a template var if the zebra module got included
|
||||||
|
*/
|
||||||
|
function _module_zebra($mode, &$module_row)
|
||||||
|
{
|
||||||
|
global $template;
|
||||||
|
|
||||||
|
$template->assign_var('S_ZEBRA_ENABLED', true);
|
||||||
|
|
||||||
|
if ($mode == 'friends')
|
||||||
|
{
|
||||||
|
$template->assign_var('S_ZEBRA_FRIENDS_ENABLED', true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($mode == 'foes')
|
||||||
|
{
|
||||||
|
$template->assign_var('S_ZEBRA_FOES_ENABLED', true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -357,23 +357,3 @@ $module->assign_tpl_vars(append_sid("{$phpbb_root_path}ucp.$phpEx"));
|
|||||||
|
|
||||||
// Generate the page, do not display/query online list
|
// Generate the page, do not display/query online list
|
||||||
$module->display($module->get_page_title());
|
$module->display($module->get_page_title());
|
||||||
|
|
||||||
/**
|
|
||||||
* Function for assigning a template var if the zebra module got included
|
|
||||||
*/
|
|
||||||
function _module_zebra($mode, &$module_row)
|
|
||||||
{
|
|
||||||
global $template;
|
|
||||||
|
|
||||||
$template->assign_var('S_ZEBRA_ENABLED', true);
|
|
||||||
|
|
||||||
if ($mode == 'friends')
|
|
||||||
{
|
|
||||||
$template->assign_var('S_ZEBRA_FRIENDS_ENABLED', true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($mode == 'foes')
|
|
||||||
{
|
|
||||||
$template->assign_var('S_ZEBRA_FOES_ENABLED', true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user