notes app created with files backend
This commit is contained in:
parent
7755aa53f7
commit
9d716fd449
9 changed files with 85 additions and 14 deletions
15
local/notes/index.php
Normal file
15
local/notes/index.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
$_title = "Notes";
|
||||
$root = $_SERVER["DOCUMENT_ROOT"];
|
||||
require "$root/templates/header.php";
|
||||
?>
|
||||
<a href="write.php">Write a note</a><br>
|
||||
<h4>Notes</h4>
|
||||
<?php
|
||||
foreach (scandir("notesDir") as $note) {
|
||||
if ($note === '.' || $note === '..')
|
||||
continue;
|
||||
echo "<a href='write.php?title=$note'>$note</a><br>\n";
|
||||
}
|
||||
require "$root/templates/footer.php";
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue