[1, 64] ]); } catch (Exception $e) { exit(page_err( "invalid form parameters: " . $e->getMessage() )); } $id = (integer)$_GET["id"]; $db = new Database("../run/poker.db"); $me = whoami($db); $u = null; try { $u = $db->get_user_by_id($id); } catch (Exception $e) { exit(page_err( "error getting user: " . $e->getMessage() )); } if (!!$me && $me->id == $u->id) { $i = null; try { $i = $db->get_info($u->id); } catch (Exception $e) { exit(page_err( "error getting info" . $e->getMessage() )); } $a = htmlspecialchars($i->about); echo page( "admin panel :: {$u->name}", << admin panel for {$u->name}