Revision 286
Added by stefan almost 20 years ago
| class.login.php | ||
|---|---|---|
| 34 | 34 |
// Stop this file from being accessed directly |
| 35 | 35 |
if(!defined('WB_URL')) {
|
| 36 | 36 |
header('Location: ../index.php');
|
| 37 |
exit(0); |
|
| 37 | 38 |
} |
| 38 | 39 |
|
| 39 | 40 |
define('LOGIN_CLASS_LOADED', true);
|
| ... | ... | |
| 110 | 111 |
if($this->authenticate()) {
|
| 111 | 112 |
// Authentication successful |
| 112 | 113 |
header("Location: ".$this->url);
|
| 114 |
exit(0); |
|
| 113 | 115 |
} else {
|
| 114 | 116 |
$this->message = $MESSAGE['LOGIN']['AUTHENTICATION_FAILED']; |
| 115 | 117 |
$this->increase_attemps(); |
| ... | ... | |
| 142 | 144 |
// Authentication successful |
| 143 | 145 |
//echo $this->url;exit(); |
| 144 | 146 |
header("Location: ".$this->url);
|
| 147 |
exit(0); |
|
| 145 | 148 |
} else {
|
| 146 | 149 |
$this->message = $MESSAGE['LOGIN']['AUTHENTICATION_FAILED']; |
| 147 | 150 |
$this->increase_attemps(); |
| ... | ... | |
| 362 | 365 |
// Warn user that they have had to many login attemps |
| 363 | 366 |
function warn() {
|
| 364 | 367 |
header('Location: '.$this->warning_url);
|
| 368 |
exit(0); |
|
| 365 | 369 |
} |
| 366 | 370 |
|
| 367 | 371 |
} |
Also available in: Unified diff
Added an exit call after every heading("Location:...") redirector to prevent unwanted execution of code.