parent
6d719619cb
commit
5308081946
15
index.php
15
index.php
|
@ -15,6 +15,7 @@
|
|||
<style type="text/css">
|
||||
body {
|
||||
font-family: helvetica;
|
||||
color: rgb(55, 53, 47);
|
||||
}
|
||||
textarea {
|
||||
height: 500px;
|
||||
|
@ -23,16 +24,17 @@
|
|||
font-size: inherit;
|
||||
outline: none;
|
||||
border: none;
|
||||
color: inherit;
|
||||
}
|
||||
input {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><a accesskey="l" href="index.php">View list</a> <a accesskey="n" href="index.php?create=true">New note</a> | bbn</div>
|
||||
<br>
|
||||
<a accesskey="l" href="index.php">View list</a> <a accesskey="n" href="index.php?create=true">New note</a>
|
||||
<?php
|
||||
|
||||
$password = '';
|
||||
|
@ -69,11 +71,9 @@
|
|||
$title = $_GET['open'];
|
||||
$content = file_get_contents($dir . '/' . $title);
|
||||
|
||||
echo '<form action="index.php" method="POST">
|
||||
<div>
|
||||
<input name="title" value="' . $title . '">
|
||||
</div>
|
||||
<br>
|
||||
echo '<input form="note" name="title" value="' . $title . '">
|
||||
<br><br>
|
||||
<form id="note" action="index.php" method="POST">
|
||||
<div>
|
||||
<textarea autofocus name="content" spellcheck="false">' . $content . '</textarea>
|
||||
</div>
|
||||
|
@ -83,6 +83,7 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
echo '<br><br>';
|
||||
if ($dh = opendir($dir)) {
|
||||
while (($file = readdir($dh)) !== false) {
|
||||
if (str_ends_with($file, '.md'))
|
||||
|
|
Loading…
Reference in New Issue