canSignup()) { if (empty($i_p1)) { $err[] = 'Your password may not be blank.'; } elseif ($i_p1 != $i_p2) { $err[] = 'Your confirmation password does not match.'; } else { $u = new User($LoginSSL->getUserId()); $u->signup($i_p1); // TODO: missing function call, replace? // $LoginSSL->refresh(); redirect('login', true); } } elseif (isPost()) { $err[] = 'You may not signup.'; } } } include 'tpl/signup.php'; ?>