]> andersk Git - sql-web.git/blame - setup.php
git-svn-id: svn://presbrey.mit.edu/sql/mitsql@101 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[sql-web.git] / setup.php
CommitLineData
9840d102
JP
1<?php
2
3require_once('mitsql.cfg.php');
4require_once('mitsql.lib.php');
5
6if (!isLoggedIn()) redirect('index');
7
8$User = new User($Login->getUserID());
9
10if (isPost()) {
11 if (isset($i_chgpw)) {
12 $p1 = (isset($i_p[1])?$i_p[1]:'');
13 $p2 = (isset($i_p[2])?$i_p[2]:'');
14 if (empty($p1)) {
15 $err[] = 'You may not have a blank password.';
16 } elseif ($p1 != $p2) {
17 $err[] = 'Your confirmation password does not match.';
18 } else {
19 $User->setPassword($p1);
20 $msg[] = 'Your password was changed.';
21 }
22 }
23}
24
25include 'tpl/setup.php';
26
27?>
This page took 0.973873 seconds and 5 git commands to generate.