AAAAindex.html000066600000000035151377531160006554 0ustar00 .htaccess000066600000000177151377531160006364 0ustar00 Order allow,deny Deny from all joomla_logout.php000066600000002563151377531160010152 0ustar00 'joomla_functions', 'title' => 'Joomla Functions'); var $events = array('success' => 0, 'fail' => 0); var $details = array('title' => 'Joomla Logout', 'tooltip' => 'Log out a logged in user or a specific user (defined by ID).'); function run($form, $actiondata){ $params = new JParameter($actiondata->params); $mainframe = JFactory::getApplication(); $user_id = null; if(strlen(trim($params->get('user_id', null)))){ $user_id = (int)trim($params->get('user_id', null)); } if($mainframe->logout($user_id) === true){ $this->events['success'] = 1; //redirect if so $redirect = $params->get('redirect_url', ''); if(!empty($redirect)){ $mainframe->redirect($redirect); } }else{ $this->events['fail'] = 1; $form->validation_errors[] = 'Error occurred.'; return false; } } function load($clear){ if($clear){ $action_params = array( 'user_id' => '', 'redirect_url' => 'index.php' ); } return array('action_params' => $action_params); } } ?>joomla_logout.ctp000066600000004033151377531160010143 0ustar00
Joomla Logout
Header(array('settings' => 'Settings', 'help' => 'Help'), 'joomla_logout_config_{n}'); ?> tabStart('settings'); ?> input('action_joomla_logout_{n}_redirect_url_config', array('type' => 'text', 'label' => 'Redirect URL', 'class' => 'big_input', 'smalldesc' => 'The URL to redirect to after logout.')); ?> input('action_joomla_logout_{n}_user_id_config', array('type' => 'text', 'label' => 'User ID', 'class' => 'medium_input', 'smalldesc' => 'The id of the user to logout, leave empty and it will logout the logged in user.')); ?> tabEnd(); ?> tabStart('help'); ?>

tabEnd(); ?>