diff options
| author | Syndamia <kamen@syndamia.com> | 2025-01-26 14:04:11 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-01-26 14:04:11 +0200 |
| commit | bfa238c056f31f36c00faad1c5995cbb8af3bd26 (patch) | |
| tree | e35d6b33fff3e79ae905d7dad699134553a1292d /views/register | |
| parent | c36f74386bcbb19c13915fe3796cb757aa7d1845 (diff) | |
| download | nowayforward_human-bfa238c056f31f36c00faad1c5995cbb8af3bd26.tar nowayforward_human-bfa238c056f31f36c00faad1c5995cbb8af3bd26.tar.gz nowayforward_human-bfa238c056f31f36c00faad1c5995cbb8af3bd26.zip | |
feat!: Rework all views to be used with the router
Diffstat (limited to 'views/register')
| -rw-r--r-- | views/register/index.php | 16 | ||||
| -rw-r--r-- | views/register/meta.php | 4 |
2 files changed, 8 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"> diff --git a/views/register/meta.php b/views/register/meta.php new file mode 100644 index 0000000..0cf11ce --- /dev/null +++ b/views/register/meta.php @@ -0,0 +1,4 @@ +<?php + +$title = 'Register a new account'; +$controller = 'register'; |
