This commit is contained in:
2025-05-01 14:37:08 -06:00
parent b6008d462e
commit 5cd4571a92
91 changed files with 1009 additions and 36 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
require_once 'functions/init.php';
require_once 'functions/user.php';
if (isset($_POST['username']) && isset($_POST['password']) && isset($_POST['v_password'])) {
if (!signup($_POST['username'], $_POST['password'], $_POST['v_password']))
echo '<p>Username is taken, or password do not match.</p>';
else {
header('Location: catalog.php');
}
}
require_once 'components/head.php';
require_once 'components/user/signup.php';
echo signup_form();
require_once 'components/foot.php';