Current Path :
/
home
/
develito
/
www
/
modules
/
mod_jalogin-1
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/www/modules/mod_jalogin-1/mod_jalogin.php
<?php /** * ------------------------------------------------------------------------ * JA Login module for J25 & J3x * ------------------------------------------------------------------------ * 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'); 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(); $captchatext = ""; $option = $app->input->get('option', ''); $task = $app->input->get('task', ''); if(!$user->id && ($option !== "com_users") && ($option !== "com_contact" )){ if (version_compare(JVERSION, '4.0', 'ge')) JForm::addFormPath(JPATH_SITE."/components/com_users/forms"); else JForm::addFormPath(JPATH_SITE."/components/com_users/models/forms"); $form = JForm::getInstance('com_users.registration',"registration", array('control' => 'jform'), false, false); $captcha = $form->getField("captcha"); if (!empty($captcha)) { $captchaType = preg_match('/invisible/', $captcha->plugin); $captchatext = $captcha->input; } } //Secret Key: only apply in Joomla 3 $tfa = null; if(version_compare(JVERSION, '3.0', '>=')){ $tfa = JPluginHelper::getPlugin('twofactorauth'); } $lang = JFactory::getLanguage(); $lang->load('plg_user_terms', JPATH_ADMINISTRATOR); //DISPLAYING require JModuleHelper::getLayoutPath($module->module, $params->get('layout', 'default'));