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