<?php global $_CB_framework, $_CB_database, $ueConfig, $mainframe, $_SERVER;
$user_id = cbGetParam( $_REQUEST, 'user', null );
$myId = $_CB_framework->myId();
$cbUser =& CBuser::getInstance( $myId );
if ( ! $cbUser ) {
$cbUser =& CBuser::getInstance( null );
}
$user = $cbUser->getUserData();
if ( ! $user ) {
return;
}
$query = "SELECT username FROM jos_users WHERE id = ". (int)
$_CB_framework->myId();
$_CB_database->setQuery( $query );
$username = htmlspecialchars( cbUnHtmlspecialchars( $_CB_database->loadResult() ) );
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( 'cb.html' );
cbimport( 'language.front' );
cbimport( 'cb.plugins' );
cbimport( 'cb.snoopy' );
function getField( $fieldName, $defaultValue = null, $output = 'html', $formatting = 'none', $reason = 'profile', $list_compare_types = 0 ) {};
$cb_activities = $cbUser->getField( 'cb_activities', null, 'html', 'none', 'list' );
$cb_interests = $cbUser->getField( 'cb_interests', null, 'html', 'none', 'list' );
$cb_music = $cbUser->getField( 'cb_music', null, 'html', 'none', 'list' );
$cb_books = $cbUser->getField( 'cb_books', null, 'html', 'none', 'list' );
$cb_movies = $cbUser->getField( 'cb_movies', null, 'html', 'none', 'list' );
$cb_tv = $cbUser->getField( 'cb_tv', null, 'html', 'none', 'list' );
?>
<?php
echo $username;
?>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.