forked from science-ation/science-ation
- Put the nav bar in the password change page
This commit is contained in:
parent
7d825a7cbf
commit
7e1f2bbfd1
@ -40,23 +40,6 @@
|
|||||||
|
|
||||||
$notice=$_GET['notice'];
|
$notice=$_GET['notice'];
|
||||||
|
|
||||||
switch($type) {
|
|
||||||
case 'volunteer':
|
|
||||||
$what = "Volunteer";
|
|
||||||
break;
|
|
||||||
case 'committee':
|
|
||||||
$what = "Committee Member";
|
|
||||||
break;
|
|
||||||
case 'judge':
|
|
||||||
$what = "Judge";
|
|
||||||
break;
|
|
||||||
case 'student':
|
|
||||||
$what = "Participant";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$back_link = "{$type}_main.php";
|
$back_link = "{$type}_main.php";
|
||||||
$password_expiry_days = $config["{$type}_password_expiry_days"];
|
$password_expiry_days = $config["{$type}_password_expiry_days"];
|
||||||
|
|
||||||
@ -81,13 +64,16 @@
|
|||||||
if($_SESSION['password_expired'])
|
if($_SESSION['password_expired'])
|
||||||
{
|
{
|
||||||
unset($_SESSION['password_expired']);
|
unset($_SESSION['password_expired']);
|
||||||
header("location: $back_link?notice=password_changed");
|
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header("location: $back_link?notice=password_changed");
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
send_header("$what - Change Password");
|
send_header("{$user_what[$type]} - Change Password",
|
||||||
|
array("{$user_what[$type]} Registration" => "{$type}_main.php")
|
||||||
|
);
|
||||||
|
|
||||||
if($_SESSION['password_expired'] == true)
|
if($_SESSION['password_expired'] == true)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user