Esempio n. 1
0
function display_edit_user_rights()
{
    global $smarty;
    if (valid_request(array(isset($_GET['user_id'])))) {
        assign_user_info($_GET['user_id']);
        $smarty->assign('content', $smarty->fetch("edit_user_rights.tpl"));
    }
    return true;
}
Esempio n. 2
0
/**
 * Assignes: $user_info, $user_teams
 *
 *
 * @access public
 * @return boolean true
 */
function display_user_profile()
{
    global $smarty;
    if (isset($_GET['user_id'])) {
        assign_user_info($_GET['user_id'], true);
        assign_user_teams($_GET['user_id']);
        assign_user_guids($_GET['user_id']);
        $smarty->assign('content', $smarty->fetch("user.tpl"));
    } else {
        // @todo show search function
    }
    return true;
}