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); $LoginSSL->refresh(); sess('Login', $LoginSSL); redirect('login', true); } } elseif (isPost()) { $err[] = 'You may not signup.'; } } } include 'tpl/signup.php'; ?>