1
0
Fork 0

Fixes more root references

This commit is contained in:
sloum 2023-12-21 14:55:05 -08:00
parent 85e8307cd3
commit 9f12fad184
4 changed files with 4 additions and 60 deletions

View File

@ -92,7 +92,7 @@
<?php endif; ?>
<details>
<summary>New Post</summary>
<form action="/new-post.php" method="post">
<form action="new-post.php" method="post">
<h2>New Post</h2>
<p>
<label>Title: <input type="text" name="post_title"></label>
@ -150,7 +150,7 @@ HTML;
</details>
<details>
<summary>Upload Media</summary>
<form action="/upload.php" method="post" enctype="multipart/form-data">
<form action="upload.php" method="post" enctype="multipart/form-data">
<h2>New Media</h2>
<p>
<label>File: <input type="file" name="mediaUpload"></label>

View File

@ -1,56 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php echo $page_title; ?></title>
</head>
<body>
<header>
<h1><?php echo $site_name; ?></h1>
</header>
<main>
<form action="/new-post.php">
<h2>New Post</h2>
<label>Title: <input type="text" name="post_title"></label>
<label>Post (markdown):<br><textarea name="post_body"></textarea>
<input type="submit" value="Submit">
</form>
<hr class="small-divider">
<details>
<summary>Posts</summary>
<table>
<thead>
<tr>
<th>Post Title</th>
<th>Post Date</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</details>
<hr>
<form action="/new-post.php">
<h2>New Page</h2>
<label>Page Name <input type="text" name="page_name"></label>
<label>Add to menu? <input type="checkbox" name="page_in_menu"></label>
<label>Post (markdown):<br><textarea name="page_body"></textarea>
<input type="submit" value="Submit">
</form>
<hr class="small-divider">
<details>
<summary>Pages</summary>
<table>
<thead>
<tr>
<th>Page URL</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</details>
</main>
</body>
</html>

View File

@ -71,7 +71,7 @@ PHP;
</p>
<?php endif; ?>
<div class="slant"></div>
<form action="/blog_log.php" method="post">
<form action="blog_log.php" method="post">
<h1>Log In</h1>
<p>
<label>Username<br><input type="text" required name="user" <?php echo $invalid ? 'aria-describedby="error-message"' : ''; ?>></label>

View File

@ -78,7 +78,7 @@
</ul>
</header>
<main>
<form action="/edit.php" method="post">
<form action="edit.php" method="post">
<h2>Editing - <?php echo $title; ?></h2>
<p>
<label><br><textarea name="data" required><?php echo $update ?: "" ;?></textarea></label>