From cd8d52249c6fab5010fb4dae8e48289f9e129d8a Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Mon, 7 Oct 2024 09:01:05 +0200 Subject: [PATCH] always show links and stats at the bottom --- index.php | 2 +- note.php | 15 ++++----------- readme.md | 2 -- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/index.php b/index.php index b1d0172..d023f47 100644 --- a/index.php +++ b/index.php @@ -130,7 +130,7 @@ { downloadall(); } - else if (isset($_POST['save']) || isset($_POST['home']) || isset($_POST['links']) || isset($_POST['stats']) || isset($_POST['download'])) + else if (isset($_POST['save']) || isset($_POST['home']) || isset($_POST['download'])) { $title = $_POST['title']; $content = $_POST['content']; diff --git a/note.php b/note.php index 81d8203..b98e4a1 100644 --- a/note.php +++ b/note.php @@ -3,24 +3,17 @@ - - - ' . $lines . ' ' . $words . ' ' . $chars . ' ' . $title . '.md'; - } - else if (isset($_POST['links'])) - { - echo linksdiv($content); - }?>
+ ' . $lines . ' ' . $words . ' ' . $chars . ' ' . $title . '.md'; + echo linksdiv($content); + ?> diff --git a/readme.md b/readme.md index 3db706f..a4b9434 100644 --- a/readme.md +++ b/readme.md @@ -21,8 +21,6 @@ No javascript. | home (default action) | save and back to home | alt-h | | save | save | alt-s | | preview | save and show markdown preview | alt-p | -| links | save and show links | alt-l | -| stats | save and show stats | alt-i | | delete | delete (rename as .del) | alt-d | | Url params | action |