implemented mass creation via csv, bug fixes

This commit is contained in:
2025-03-30 20:37:28 -06:00
parent e6735a9a20
commit 5a5471da5d
11 changed files with 176 additions and 31 deletions
+4 -2
View File
@@ -9,7 +9,7 @@ $msg = '';
if (isset($_POST['form_id'])) {
switch ($_POST['form_id']) {
case 'signup_form':
$msg = signup(
$msg = create_user(
$_POST['username'],
$_POST['email'],
$_POST['password'],
@@ -21,8 +21,10 @@ if (isset($_POST['form_id'])) {
(!empty($_POST['crop_width']) ? $_POST['crop_width'] : '')
);
if ($msg === true)
if ($msg === true) {
login($_POST['username'], $_POST['password'], false);
header('Location: user.php?action=view&user_id=' . $_COOKIE['user_id']);
}
break;