getOwnerID() != $_SESSION['uid']) { header("Location: app.php?msg=no_permission"); die(); } $note->saveNote(); ?>