Пример #1
0
jimport('joomla.plugin.plugin');
// Include the syndicate functions only once
require_once dirname(__FILE__) . '/helper.php';
modbt_loginHelper::fetchHead($params);
// load language
$language = JFactory::getLanguage();
$language_tag = $language->getTag();
// loads the current language-tag
JFactory::getLanguage()->load('plg_captcha_recaptcha', JPATH_ADMINISTRATOR, $language_tag, true);
JFactory::getLanguage()->load('mod_bt_login', JPATH_SITE, $language_tag, true);
JFactory::getLanguage()->load('lib_joomla', JPATH_SITE, $language_tag, true);
JFactory::getLanguage()->load('com_users', JPATH_SITE, $language_tag, true);
$mainframe = JFactory::getApplication();
$bttask = JRequest::getVar('bttask');
if ($bttask) {
    modbt_loginHelper::ajax($bttask, $params);
}
$mainframe = JFactory::getApplication();
//get position display
$align = $params->get('align_option');
//get color setting
$bgColor = $params->get('bg_button_color', '#6d850a');
$textColor = $params->get('text_button_color', '#fff');
$showLogout = $params->get('logout_button', 1);
//setting component to integrated
$integrated_com = $params->get('integrated_component');
$moduleRender = '';
$linkOption = '';
if ($integrated_com != '') {
    if ($integrated_com == 'k2') {
        $moduleRender = modbt_loginHelper::loadModule('mod_k2_login', 'K2 Login');
Пример #2
0
jimport('joomla.application.component.helper');
jimport('joomla.plugin.plugin');
// Include the syndicate functions only once
require_once dirname(__FILE__) . '/helper.php';
modbt_loginHelper::fetchHead($params);
// load language
$language = JFactory::getLanguage();
$language_tag = $language->getTag();
// loads the current language-tag
JFactory::getLanguage()->load('plg_captcha_recaptcha', JPATH_ADMINISTRATOR, $language_tag, true);
JFactory::getLanguage()->load('mod_bt_login', JPATH_SITE, $language_tag, true);
JFactory::getLanguage()->load('lib_joomla', JPATH_SITE, $language_tag, true);
JFactory::getLanguage()->load('com_users', JPATH_SITE, $language_tag, true);
$mainframe = JFactory::getApplication();
if (JRequest::getVar("bttask")) {
    modbt_loginHelper::ajax();
}
$mainframe = JFactory::getApplication();
//get position display
$align = $params->get('align_option');
//get color setting
$bgColor = $params->get('bg_button_color', '#6d850a');
$textColor = $params->get('text_button_color', '#fff');
$showLogout = $params->get('logout_button', 1);
//setting component to integrated
$integrated_com = $params->get('integrated_component');
$moduleRender = '';
$linkOption = '';
if ($integrated_com != '') {
    if ($integrated_com == 'k2') {
        $moduleRender = modbt_loginHelper::loadModule('mod_k2_login', 'K2 Login');