<?php if ( ! ( defined( '_VALID_CB' ) || defined( '_JEXEC' ) || defined( '_VALID_MOS' ) ) ) { die( 'Direct Access to this location is not allowed.' ); } /** * CB framework * @global CBframework $_CB_framework */ global $_CB_framework, $_CB_database, $ueConfig, $mainframe; if ( defined( 'JPATH_ADMINISTRATOR' ) ) { if ( ! 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' ); } else { if ( ! file_exists( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' ) ) { echo 'CB not installed'; return; } include_once( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' ); } cbimport( 'cb.database' ); cbimport( 'language.front' ); include_once('includes/magicquotes.inc.php'); include_once('includes/functions.inc.php'); // ob_start(); $bailout = false; echo '<h1>There you are!</h1>'; // check for userid // check for Ambassador committee membership // is User logged in to site! if( !isset($user->id) || $user->id == "" ) { $bailout = true; } if (!$bailout) { $cb_user =& CBuser::getInstance( $user->id ); if (!$cb_user) { $user =& CBuser::getInstance( null ); } else { echo '<pre>'; $field = $cb_user->getField('name'); echo $field; echo '</pre>'; } } ?>