function _securesite_403 in Secure Site 7.2
Same name and namespace in other branches
- 6.2 securesite.inc \_securesite_403()
Menu callback; handle restricted pages.
1 string reference to '_securesite_403'
- securesite_menu in ./
securesite.module - Implements hook_menu().
File
- ./
securesite.inc, line 57 - Secure Site log-in functions.
Code
function _securesite_403() {
global $user;
if (in_array('user/logout', drupal_get_destination())) {
module_load_include('pages.inc', 'user');
user_logout();
}
if (empty($user->uid) && !isset($_SESSION['securesite_guest'])) {
_securesite_dialog(securesite_type_get());
}
else {
$path = drupal_get_normal_path(variable_get('securesite_403', ''));
menu_set_active_item($path);
return menu_execute_active_handler($path);
}
}