aboutsummaryrefslogtreecommitdiff
path: root/views/register/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/register/index.php')
-rw-r--r--views/register/index.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/views/register/index.php b/views/register/index.php
index 1dc7bea..86f4aa7 100644
--- a/views/register/index.php
+++ b/views/register/index.php
@@ -1,15 +1,7 @@
-<?php
- $title = 'Register a new user';
- include '../meta.php';
-
- $status = null;
- runController('register');
-?>
-
-<?php if ($status !== null): ?>
- <?php if ($status !== ""): ?>
+<?php if (isset($user_status)): ?>
+ <?php if ($user_status !== ""): ?>
<p>
- Fail: <?= $status ?>
+ Fail: <?= $user_status ?>
</p>
<?php else: ?>
<p>
@@ -18,7 +10,7 @@
<?php endif; ?>
<?php endif; ?>
-<form action="./index.php" method="POST">
+<form action="#" method="POST">
<input type="text" name="username" placeholder="Username" minlength="1" pattern="[A-Za-z][A-Za-z_0-9]*">
<input type="password" name="password" placeholder="Password" minlength="4">
<input type="submit" value="Register">