Current Path :
/
home
/
develito
/
httpdocs
/
modules
/
mod_jalogin
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/httpdocs/modules/mod_jalogin/mod_jalogin.php
<?php /** * ------------------------------------------------------------------------ * JA Login module * ------------------------------------------------------------------------ * Copyright (C) 2004-2018 J.O.O.M Solutions Co., Ltd. All Rights Reserved. * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html * Author: J.O.O.M Solutions Co., Ltd * Websites: http://www.joomlart.com - http://www.joomlancers.com * ------------------------------------------------------------------------ */ // no direct access defined('_JEXEC') or die('Restricted access'); // Include the syndicate functions only once require_once (dirname(__FILE__) . '/helper.php'); if(version_compare(JVERSION, '4','ge')){ JHTML::_('bootstrap.tooltip'); }else{ JHTML::_('behavior.tooltip'); } include_once(dirname(__FILE__).'/assets/asset.php'); $params->def('greeting', 1); $type = modJALoginHelper::getType(); $return = modJALoginHelper::getReturnURL($params, $type); $user = JFactory::getUser(); $option = $app->input->get('option', ''); $task = $app->input->get('task', ''); if(!$user->id && $option !== "com_users" && $option !== "com_contact" && $params->get('show_register_form')) { $app = JFactory::getApplication(); $captchaType = $app->get('captcha'); if ($captchaType) { $captcha = JCaptcha::getInstance($captchaType); } } //Secret Key: only apply in Joomla 3 $tfa = null; if(version_compare(JVERSION, '3.0', 'ge')){ $tfa = JPluginHelper::getPlugin('twofactorauth'); } $lang = JFactory::getLanguage(); $lang->load('plg_user_terms', JPATH_ADMINISTRATOR); //DISPLAYING require JModuleHelper::getLayoutPath($module->module, $params->get('layout', 'default'));