if ( defined( 'JPATH_ADMINISTRATOR' ) ) { include_once JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php'; require_once $_CB_framework->getCfg( 'absolute_path' ) . '/components/com_comprofiler/comprofiler.html.php'; } else { include_once $mainframe->getCfg( 'absolute_path' ). '/administrator/components/com_comprofiler/plugin.foundation.php'; require_once $mainframe->getPath( 'front_html' ); } $_CB_framework->cbset( '_ui', 1 ); // we're in 1: frontend, 2: admin back-end if($_CB_framework->getCfg( 'debug' )) { ini_set('display_errors',true); error_reporting(E_ALL ); // | E_STRICT ); } cbimport( 'language.front' ); cbimport( 'cb.tabs' ); cbimport( 'cb.imgtoolbox' ); if ( class_exists( 'JFactory' ) ) { // Joomla 1.5 : for string WARNREG_EMAIL_INUSE used in error js popup. $lang =& JFactory::getLanguage(); $lang->load( "com_user" ); } global $_CB_framework, $_CB_database, $ueConfig, $_PLUGINS, $_POST; $option = $_CB_framework->getRequestVar( 'option' ); $emailpass = ( isset( $ueConfig['emailpass'] ) ? $ueConfig['emailpass'] : '0' ); $regErrorMSG = null; if ( ( ( $_CB_framework->getCfg( 'allowUserRegistration' ) == '0' ) && ( ( ! isset($ueConfig['reg_admin_allowcbregistration']) ) || $ueConfig['reg_admin_allowcbregistration'] != '1' ) ) ) { cbNotAuth(); return; } if ( $_CB_framework->myId() ) { echo '