diff --git a/home.php b/home.php index ad7ed1c..cab1bd6 100644 --- a/home.php +++ b/home.php @@ -2,7 +2,6 @@
-
diff --git a/index.php b/index.php index 879f9cc..b1d0172 100644 --- a/index.php +++ b/index.php @@ -80,7 +80,7 @@ $path = $dir . '/' . $title; $lastchanged = filemtime($path); $previous = $_POST['lastchanged']; - if (!isset($_GET['clip']) && (int)$lastchanged > (int)$previous) + if ((int)$lastchanged > (int)$previous) { $tempcontent = file_get_contents($path . '.md'); if ($tempcontent != $content) @@ -130,12 +130,6 @@ { downloadall(); } - else if (isset($_GET['clip']) && $_GET['param']) - { - $content = $_GET['param'] . "\r\n" . file_get_contents($dir . '/todo.md'); - savenote('todo', $content); - $_GET['param'] = ''; - } else if (isset($_POST['save']) || isset($_POST['home']) || isset($_POST['links']) || isset($_POST['stats']) || isset($_POST['download'])) { $title = $_POST['title']; diff --git a/readme.md b/readme.md index 6bf4f87..3db706f 100644 --- a/readme.md +++ b/readme.md @@ -14,7 +14,6 @@ No javascript. |------------------------|----------------------------------|-------------------------------|--------| | search (default action)| full text search | reload home | alt-s | | open | open if exists, or create | create with timestamp as title| alt-o | -| clip | insert in todo | | alt-c | | download | download all notes in a zip file | | alt-d | | Note page | action with param | hotkey | @@ -29,6 +28,5 @@ No javascript. | Url params | action | |------------------------|--------------------------| | reindex | force notes reindex | -| clip+param | same as button | | open+param | same as button | | search+param | same as button | \ No newline at end of file