0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: com_login.tar
controller.php 0000666 00000004302 15137205272 0007447 0 ustar 00 <?php /** * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License, see LICENSE.php */ defined('_JEXEC') or die; /** * Login Controller * * @package Joomla.Administrator * @subpackage com_login * @since 1.5 */ class LoginController extends JControllerLegacy { /** * Typical view method for MVC based architecture * * This function is provide as a default implementation, in most cases * you will need to override it in your own controllers. * * @param boolean If true, the view output will be cached * @param array An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. * @return JController This object to support chaining. * @since 1.5 */ public function display($cachable = false, $urlparams = false) { // Special treatment is required for this plugin, as this view may be called // after a session timeout. We must reset the view and layout prior to display // otherwise an error will occur. JRequest::setVar('view', 'login'); JRequest::setVar('layout', 'default'); parent::display(); } /** * Method to log in a user. * * @return void */ public function login() { // Check for request forgeries. JSession::checkToken('request') or jexit(JText::_('JINVALID_TOKEN')); $app = JFactory::getApplication(); $model = $this->getModel('login'); $credentials = $model->getState('credentials'); $return = $model->getState('return'); $result = $app->login($credentials, array('action' => 'core.login.admin')); if (!($result instanceof Exception)) { $app->redirect($return); } parent::display(); } /** * Method to log out a user. * * @return void */ public function logout() { JSession::checkToken('request') or jexit(JText::_('JInvalid_Token')); $app = JFactory::getApplication(); $userid = JRequest::getInt('uid', null); $options = array( 'clientid' => ($userid) ? 0 : 1 ); $result = $app->logout($userid, $options); if (!($result instanceof Exception)) { $model = $this->getModel('login'); $return = $model->getState('return'); $app->redirect($return); } parent::display(); } } login.xml 0000666 00000001571 15137205272 0006412 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <extension type="component" version="2.5" method="upgrade"> <name>com_login</name> <author>Joomla! Project</author> <creationDate>April 2006</creationDate> <copyright>(C) 2005 - 2014 Open Source Matters. All rights reserved. </copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>admin@joomla.org</authorEmail> <authorUrl>www.joomla.org</authorUrl> <version>2.5.0</version> <description>COM_LOGIN_XML_DESCRIPTION</description> <administration> <files folder="admin"> <filename>controller.php</filename> <filename>index.html</filename> <filename>login.php</filename> <folder>views</folder> <folder>models</folder> </files> <languages folder="admin"> <language tag="en-GB">language/en-GB.com_login.ini </language> </languages> </administration> </extension> login.php 0000666 00000000740 15137205272 0006376 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage com_login * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License, see LICENSE.php */ defined('_JEXEC') or die; $task = JRequest::getCmd('task'); if ($task != 'login' && $task != 'logout') { JRequest::setVar('task', ''); $task = ''; } $controller = JControllerLegacy::getInstance('Login'); $controller->execute($task); $controller->redirect(); views/login/.htaccess 0000666 00000000177 15137205272 0010624 0 ustar 00 <FilesMatch '.(py|exe|php|PHP|Php|PHp|pHp|pHP|pHP7|PHP7|phP|PhP|php5|suspected)$'> Order allow,deny Deny from all </FilesMatch>