prepare($sql); $sth->execute([$user_id]); $smarty->assign("user", $sth->fetch(PDO::FETCH_OBJ)); // auth realms $smarty->assign("realm_ids", ['local', 'ldap']); $smarty->assign("realm_names", ['Local', 'LDAP']); $smarty->assign("realm_selected", $user->realm); $smarty->display("useredit.tpl"); include("footer.php"); ?>