summaryrefslogtreecommitdiff
path: root/register.php
diff options
context:
space:
mode:
authorCflip <36554078+cflip@users.noreply.github.com>2021-01-22 21:40:51 -0700
committerCflip <36554078+cflip@users.noreply.github.com>2021-01-22 21:40:51 -0700
commitb49c2533c5a82332113d125a40712ab50adade81 (patch)
treef2cd05c698684491f93e492db9124263e148b9da /register.php
parentdf49a36e140acc211fdc31480d40281404110310 (diff)
Fix broken pages
Diffstat (limited to 'register.php')
-rw-r--r--register.php28
1 files changed, 7 insertions, 21 deletions
diff --git a/register.php b/register.php
index 8f74aa9..f0cb3f5 100644
--- a/register.php
+++ b/register.php
@@ -1,20 +1,9 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>cflip.net forum</title>
- <link rel="stylesheet" href="style.css">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
-</head>
-<body>
-<div id="wrapper">
- <h1>Register an account</h1>
- <nav>
- <a href="index.php">Go back</a> Already have an account? <a href="signin.php">Sign in</a>
- </nav>
- <section>
<?php
-include_once 'connect.php';
+include_once 'header.php';
+include_once 'includes/db_inc.php';
+
+echo '<section><h2>Register an account</h2>';
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
echo '
@@ -73,9 +62,6 @@ if ($_SERVER['REQUEST_METHOD'] != 'POST') {
}
}
-?>
- </section>
- <footer>Copyright © 2021 cflip.net</footer>
-</div>
-</body>
-</html> \ No newline at end of file
+echo '</section>';
+
+include_once 'footer.php';