pub / rememori

Simple file-based bookmarking and notes application
git clone https://src.jayvii.de/pub/rememori.git
Home | Log | Files | Exports | Refs | README | RSS

commit 2dc08ac9856d5780e5b3ac7a30558b2b504a51ce
parent 9e05ff01496d077c07649361920dbe86a6fdec0e
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Thu, 24 Oct 2024 16:37:06 +0200

fix: set correct copyright text and filetypes

Diffstat:
Alib/edit.php | 26++++++++++++++++++++++++++
Dlib/edit.sh | 26--------------------------
Mlib/read.php | 2+-
Mlib/write.php | 2+-
4 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/lib/edit.php b/lib/edit.php @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: AGPL-3.0-or-later + * SPDX-FileCopyrightText: 2024 JayVii <jayvii[AT]posteo[DOT]de> + */ + +<?php + +function edit_note( + string $user, + string $category, + string $filename +) { + + /* Read Note: if it does not exist yet, use empty string */ + $content = read_note($user, $category, $filename) || ""; + +?> + +<!-- Show Text Note Form --> +<form action="/" target="_self" method="post" enctype="multipart/form-data"> + <label for="note"><?php echo $GLOBALS["i18n_note"]; ?></label> + <textarea id="note" name="note"><?php echo $content; ?></textarea> + <label for="category"><?php echo $GLOBALS["i18n_category"]; ?></label> + <input id="category" name="category" value="<?php echo $category"; ?>"> + <label for="visibility"><?php echo $GLOBALS["i18n_visibility"]; ?></label> + <input type="submit" value="<?php echo $GLOBALS["i18n_save"]; ?>"> +</form> diff --git a/lib/edit.sh b/lib/edit.sh @@ -1,26 +0,0 @@ -/* SPDX-License-Identifier: AGPL-3.0-or-later - * SPDX-FileCopyrightText: 2021-2024 JayVii <jayvii[AT]posteo[DOT]de> - */ - -<?php - -function edit_note( - string $user, - string $category, - string $filename -) { - - /* Read Note: if it does not exist yet, use empty string */ - $content = read_note($user, $category, $filename) || ""; - -?> - -<!-- Show Text Note Form --> -<form action="/" target="_self" method="post" enctype="multipart/form-data"> - <label for="note"><?php echo $GLOBALS["i18n_note"]; ?></label> - <textarea id="note" name="note"><?php echo $content; ?></textarea> - <label for="category"><?php echo $GLOBALS["i18n_category"]; ?></label> - <input id="category" name="category" value="<?php echo $category"; ?>"> - <label for="visibility"><?php echo $GLOBALS["i18n_visibility"]; ?></label> - <input type="submit" value="<?php echo $GLOBALS["i18n_save"]; ?>"> -</form> diff --git a/lib/read.php b/lib/read.php @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: AGPL-3.0-or-later - * SPDX-FileCopyrightText: 2021-2024 JayVii <jayvii[AT]posteo[DOT]de> + * SPDX-FileCopyrightText: 2024 JayVii <jayvii[AT]posteo[DOT]de> */ <?php diff --git a/lib/write.php b/lib/write.php @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: AGPL-3.0-or-later - * SPDX-FileCopyrightText: 2021-2024 JayVii <jayvii[AT]posteo[DOT]de> + * SPDX-FileCopyrightText: 2024 JayVii <jayvii[AT]posteo[DOT]de> */ <?php