} else { if (isset($_POST["update"])) { $bookmark->check($_POST["id"], UPDATE); // Right to update the bookmark $bookmark->check(-1, CREATE, $_POST); // Right when entity change $bookmark->update($_POST); $_GET["action"] = ""; } else { if ($_GET["action"] == "edit" && isset($_GET['mark_default']) && isset($_GET["id"])) { $bookmark->check($_GET["id"], READ); if ($_GET["mark_default"] > 0) { $bookmark->mark_default($_GET["id"]); } else { if ($_GET["mark_default"] == 0) { $bookmark->unmark_default($_GET["id"]); } } $_GET["action"] = ""; } else { if ($_GET["action"] == "load" && isset($_GET["id"]) && $_GET["id"] > 0) { $bookmark->check($_GET["id"], READ); $bookmark->load($_GET["id"]); $_GET["action"] = ""; } else { if (isset($_POST["action"]) && ($_POST["action"] == "up" || $_POST["action"] == "down")) { Session::checkLoginUser(); $bookmark->changeBookmarkOrder($_POST['id'], $_POST["action"]); $_GET["action"] = ""; } else { if (isset($_POST["purge"])) {