There was an error logging in. Try again.
"; } } ?>No entries to show.
"; } echo ""; break; case "pendingcomments": $entries = dateSort(toArray("queue.csv"), true); echo "No entries to show.
"; } echo ""; break; case "edit": if (isset($_GET['pending'])) { $entry_id = $_GET['pending']; $entries = toArray("queue.csv"); $submittext = "Save and approve"; $back = "pendingcomments"; } elseif (isset($_GET['approved'])) { $entry_id = $_GET['approved']; $entries = toArray("entries.csv"); $submittext = "Save changes"; $back = "comments"; } $key = array_search($entry_id, array_column($entries, 'id')); echo "This comment ID doesn't exist.
Edit entry"; if (isset($_POST['submit'])) { $reply = str_replace(array("\r\n", "\r", "\n"), "Entry approved successfully.
"; } else { echo "An error occurred processing this request.
"; } } } elseif ($_POST['comment_status'] == "comments") { if (updateComment($_POST['comment_key'], $_POST['comment_id'], $_POST['name'], $_POST['url'], $_POST['date'], $_POST['comment'], $reply, $headers)) { echo "Entry updated successfully.
"; } else { echo "An error occurred processing this request.
"; } } ?> Entry deleted successfully."; } else { echo "An error occurred processing this request.
"; } ?>Oops! You must have gotten here by mistake.