setSafeMode(true); $this->notesModel = new \ppa\Model\NotesModel(); $note = null; function isLoggedIn() { return isset($_SESSION['user_id']); } function isAdmin() { return isLoggedIn() && isset($_SESSION['role']) && $_SESSION['role'] === 'admin'; } function sanitize($data, $flags = ENT_QUOTES, $encoding = 'UTF-8') { return htmlspecialchars((string)$data, $flags, $encoding); } ?>
Drag & drop a .txt or .md file here, or fill manually.
Start typing or drop a file to see preview...