Revision 286
Added by stefan almost 19 years ago
preferences.php | ||
---|---|---|
28 | 28 |
if(!FRONTEND_LOGIN) { |
29 | 29 |
if(INTRO_PAGE) { |
30 | 30 |
header('Location: '.WB_URL.PAGES_DIRECTORY.'/index'.PAGE_EXTENSION); |
31 |
exit(0); |
|
31 | 32 |
} else { |
32 | 33 |
header('Location: '.WB_URL.'/index'.PAGE_EXTENSION); |
34 |
exit(0); |
|
33 | 35 |
} |
34 | 36 |
} |
35 | 37 |
|
36 | 38 |
require_once(WB_PATH.'/framework/class.wb.php'); |
37 | 39 |
if (wb::is_authenticated()==false) { |
38 | 40 |
header('Location: '.WB_URL.'/account/login.php'); |
41 |
exit(0); |
|
39 | 42 |
} |
40 | 43 |
|
41 | 44 |
// Required page details |
Also available in: Unified diff
Added an exit call after every heading("Location:...") redirector to prevent unwanted execution of code.