3 require_once('mitsql.cfg.php');
4 require_once('mitsql.lib.php');
6 if (!isLoggedIn()) redirect('index');
8 $User = new User($Login->getUserID());
11 if (isset($i_chgpw)) {
12 $p1 = (isset($i_p[1])?$i_p[1]:'');
13 $p2 = (isset($i_p[2])?$i_p[2]:'');
15 $err[] = 'You may not have a blank password.';
16 } elseif ($p1 != $p2) {
17 $err[] = 'Your confirmation password does not match.';
19 $User->setPassword($p1);
20 $msg[] = 'Your password was changed.';
25 include 'tpl/setup.php';