2018-06-01 17:10:45 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
#Modules and how they can be accessed.
|
2019-02-08 11:28:11 +00:00
|
|
|
|
2018-06-01 17:10:45 +01:00
|
|
|
#access:
|
2020-12-24 18:24:41 +00:00
|
|
|
#auth = need to be logged-in to see it
|
2018-06-01 17:10:45 +01:00
|
|
|
#hidden_on_login = only visible when not logged in
|
|
|
|
#admin = need to be logged in as an admin to see it
|
2019-02-08 11:28:11 +00:00
|
|
|
|
|
|
|
$MODULES = array(
|
2018-06-01 17:10:45 +01:00
|
|
|
'log_in' => 'hidden_on_login',
|
|
|
|
'change_password' => 'auth',
|
2019-02-08 11:28:11 +00:00
|
|
|
'account_manager' => 'admin',
|
2018-06-01 17:10:45 +01:00
|
|
|
);
|
|
|
|
|
2020-12-24 18:24:41 +00:00
|
|
|
if ($ACCOUNT_REQUESTS_ENABLED == TRUE) {
|
|
|
|
$MODULES['request_account'] = 'hidden_on_login';
|
|
|
|
}
|
2022-04-12 15:43:21 +01:00
|
|
|
if (!$REMOTE_HTTP_HEADERS_LOGIN) {
|
|
|
|
$MODULES['log_out'] = 'auth';
|
|
|
|
}
|
2020-12-24 18:24:41 +00:00
|
|
|
|
2018-06-01 17:10:45 +01:00
|
|
|
?>
|