Some more bugfixing
This commit is contained in:
16
lib.php
16
lib.php
@@ -41,13 +41,15 @@ $smarty->template_dir = 'tpl';
|
||||
$smarty->compile_dir = 'tpl_c';
|
||||
$smarty->registerPlugin('function', 'treelist', 'print_tree');
|
||||
$smarty->registerPlugin('function', 'msgout', 'msgout');
|
||||
$smarty->assign("suser_name", $_SESSION['suser_displayname']);
|
||||
$smarty->assign("suser_tooltips", $_SESSION['suser_tooltips'] ?? 'off');
|
||||
$smarty->assign("suser_add", $_SESSION['suser_role_add']);
|
||||
$smarty->assign("suser_edit", $_SESSION['suser_role_edit']);
|
||||
$smarty->assign("suser_delete", $_SESSION['suser_role_delete']);
|
||||
$smarty->assign("suser_manage", $_SESSION['suser_role_manage']);
|
||||
$smarty->assign("suser_admin", $_SESSION['suser_role_admin']);
|
||||
if (!empty($_SESSION['suser_id'])) {
|
||||
$smarty->assign("suser_name", $_SESSION['suser_displayname']);
|
||||
$smarty->assign("suser_tooltips", $_SESSION['suser_tooltips'] ?? 'off');
|
||||
$smarty->assign("suser_add", $_SESSION['suser_role_add']);
|
||||
$smarty->assign("suser_edit", $_SESSION['suser_role_edit']);
|
||||
$smarty->assign("suser_delete", $_SESSION['suser_role_delete']);
|
||||
$smarty->assign("suser_manage", $_SESSION['suser_role_manage']);
|
||||
$smarty->assign("suser_admin", $_SESSION['suser_role_admin']);
|
||||
}
|
||||
|
||||
// prepare global message system
|
||||
$g_message = new Message;
|
||||
|
||||
Reference in New Issue
Block a user