Fixes more root references
This commit is contained in:
parent
85e8307cd3
commit
9f12fad184
|
@ -92,7 +92,7 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<details>
|
<details>
|
||||||
<summary>New Post</summary>
|
<summary>New Post</summary>
|
||||||
<form action="/new-post.php" method="post">
|
<form action="new-post.php" method="post">
|
||||||
<h2>New Post</h2>
|
<h2>New Post</h2>
|
||||||
<p>
|
<p>
|
||||||
<label>Title: <input type="text" name="post_title"></label>
|
<label>Title: <input type="text" name="post_title"></label>
|
||||||
|
@ -150,7 +150,7 @@ HTML;
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details>
|
||||||
<summary>Upload Media</summary>
|
<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>
|
<h2>New Media</h2>
|
||||||
<p>
|
<p>
|
||||||
<label>File: <input type="file" name="mediaUpload"></label>
|
<label>File: <input type="file" name="mediaUpload"></label>
|
||||||
|
|
|
@ -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>
|
|
|
@ -71,7 +71,7 @@ PHP;
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="slant"></div>
|
<div class="slant"></div>
|
||||||
<form action="/blog_log.php" method="post">
|
<form action="blog_log.php" method="post">
|
||||||
<h1>Log In</h1>
|
<h1>Log In</h1>
|
||||||
<p>
|
<p>
|
||||||
<label>Username<br><input type="text" required name="user" <?php echo $invalid ? 'aria-describedby="error-message"' : ''; ?>></label>
|
<label>Username<br><input type="text" required name="user" <?php echo $invalid ? 'aria-describedby="error-message"' : ''; ?>></label>
|
||||||
|
|
2
edit.php
2
edit.php
|
@ -78,7 +78,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</header>
|
</header>
|
||||||
<main>
|
<main>
|
||||||
<form action="/edit.php" method="post">
|
<form action="edit.php" method="post">
|
||||||
<h2>Editing - <?php echo $title; ?></h2>
|
<h2>Editing - <?php echo $title; ?></h2>
|
||||||
<p>
|
<p>
|
||||||
<label><br><textarea name="data" required><?php echo $update ?: "" ;?></textarea></label>
|
<label><br><textarea name="data" required><?php echo $update ?: "" ;?></textarea></label>
|
||||||
|
|
Loading…
Reference in New Issue