429,14 → 429,6 |
// Encode plain text password with challenge |
$pappassword = implode('', unpack('H*', ($newpwd ^ $newchal))); |
|
|
// Cleaning the cache |
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT'); |
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); |
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); |
header('Cache-Control: post-check=0, pre-check=0', false); |
header('Pragma: no-cache'); |
|
header("Location: http://$uamip:$uamport/logon?username=$username&password=$pappassword&userurl=$userurl"); |
exit(); |
} |
475,17 → 467,9 |
} |
} |
|
|
// Otherwise it was not a form request |
// Send out an error message |
if ($result === 0) { //erreur |
// Cleaning the cache |
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT'); |
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); |
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); |
header('Cache-Control: post-check=0, pre-check=0', false); |
header('Pragma: no-cache'); |
|
header("Location: http://$uamip:$uamport/prelogin"); |
exit(); |
} |