} global $_CB_framework, $ueConfig, $_CB_PMS, $cbSpecialReturnAfterLogin, $cbSpecialReturnAfterLogout; if (!file_exists(JPATH_SITE . '/libraries/CBLib/CBLib/Core/CBLib.php') || !file_exists(JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php')) { echo 'CB not installed'; return; } include_once JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php'; cbimport('cb.html'); cbimport('language.front'); outputCbTemplate(); require_once dirname(__FILE__) . '/helper.php'; if ((int) $params->get('cb_plugins', 1)) { global $_PLUGINS; $_PLUGINS->loadPluginGroup('user'); } $type = modCBLoginHelper::getType(); $cbUser = CBuser::getMyInstance(); if (!$cbUser) { $cbUser = CBuser::getInstance(null); } $user = $cbUser->getUserData(); $livePath = $_CB_framework->getCfg('live_site') . '/modules/mod_cblogin'; $templateClass = 'cb_template cb_template_' . selectTemplate('dir'); $moduleLayout = $params->get('layout', '_:bootstrap'); $showButton = (int) $params->get('show_buttons_icons', 0); $secureForm = (int) $params->get('https_post', 0); $showUsernameLabel = (int) $params->get('name_label', 5); $usernameInputLength = (int) $params->get('name_length', 14); $showPasswordLabel = (int) $params->get('pass_label', 5); $passwordInputLength = (int) $params->get('pass_length', 14); $showSecretKeyLabel = (int) $params->get('key_label', 5);