implemented mass creation via csv, bug fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user