$orca_integration_xml .= '<false />'; } else { $special_user = isSpecialOrcaUser($user); $orca_admin = isOrcaAdmin($user); require_once BX_DIRECTORY_PATH_ROOT . 'inc/utils.inc.php'; require_once BX_DIRECTORY_PATH_ROOT . 'profilePhotos.php'; $oProfile = new BxDolProfile($user); $userID = $oProfile->_iProfileID; $av = $gConf['url']['icon'] . 'basic.gif'; $profile_url = $gConf['url']['base'] . "?action=goto&amp;user={$user}"; if ('admin' == $user) { $av = $gConf['url']['icon'] . 'admin.gif'; } elseif ($userID) { $oPhoto = new ProfilePhotos($userID); $oPhoto->getMediaArray(); $aFile = $oPhoto->getPrimaryPhotoArray(); if (extFileExists($oPhoto->sMediaDir . 'icon_' . $aFile['med_file'])) { $av = $oPhoto->sMediaUrl . 'icon_' . $aFile['med_file']; } elseif ($special_user) { $av = $gConf['url']['icon'] . 'special.gif'; } $profile_url = $site['url'] . 'profile.php?ID=' . $userID; } // Ray integration [begin] $iId = $userID; $sPassword = md5(getPassword($iId)); $bEnableRay = getParam('enable_ray') == 'on'; $check_res = checkAction($iId, ACTION_ID_USE_RAY_IM); $aRay = '<ray_on>0</ray_on>'; if ($bEnableRay && $check_res[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED) { $aRay = '<ray_on>1</ray_on><ray_id>' . $iId . '</ray_id><ray_pwd>' . $sPassword . '</ray_pwd>';
function get_member_icon($ID, $float = 'none', $bDrawMargin = FALSE) { global $site; require_once BX_DIRECTORY_PATH_ROOT . 'profilePhotos.php'; //$sSexSql = "SELECT `Sex` FROM `Profiles` WHERE `ID` = '{$ID}'"; $aSexSql = getProfileInfo($ID); //db_arr( $sSexSql ); $oPhoto = new ProfilePhotos($ID); $oPhoto->getActiveMediaArray(); $aFile = $oPhoto->getPrimaryPhotoArray(); if (extFileExists($oPhoto->sMediaDir . 'icon_' . $aFile['med_file'])) { $sFileName = $oPhoto->sMediaUrl . 'icon_' . $aFile['med_file']; } else { if ($aSexSql['Sex'] == 'female' or $aSexSql['Sex'] == 'Female') { $sSexPic = 'woman_small.gif'; } elseif ($aSexSql['Sex'] == 'male' or $aSexSql['Sex'] == 'Male') { $sSexPic = 'man_small.gif'; } else { $sSexPic = 'visitor_small.gif'; } $sFileName = getTemplateIcon($sSexPic); } $sMarginsAddon = $bDrawMargin ? " margin-right:10px;margin-bottom:10px; " : ''; $style = 'width:' . $oPhoto->aMediaConfig['size']['iconWidth'] . 'px;' . 'height:' . $oPhoto->aMediaConfig['size']['iconHeight'] . 'px;' . 'background-image:url(' . $sFileName . ');'; $ret = ''; $ret .= '<div class="thumbnail_block" style="float:' . $float . '; position:relative; ">'; $ret .= "<a href=\"" . getProfileLink($ID) . "\">"; $ret .= '<img src="' . getTemplateIcon('spacer.gif') . '" style="' . $sMarginsAddon . $style . '" alt="' . process_line_output($aFileName['med_title']) . '" />'; $ret .= '</a>'; $ret .= '</div>'; return $ret; }
function get_member_primary_photo($ID, $float) { global $site; require_once BX_DIRECTORY_PATH_ROOT . 'profilePhotos.php'; $oPhoto = new ProfilePhotos($ID); $oPhoto->getActiveMediaArray(); $aFile = $oPhoto->getPrimaryPhotoArray(); if (extFileExists($oPhoto->sMediaDir . 'photo_' . $aFile['med_file'])) { $sFileName = $oPhoto->sMediaUrl . 'photo_' . $aFile['med_file']; } else { $sFileName = getTemplateIcon($oPhoto->sSexPic); } $style = 'width:' . $oPhoto->aMediaConfig['size']['photoWidth'] . 'px;' . 'height:' . $oPhoto->aMediaConfig['size']['photoHeight'] . 'px;' . 'background-image:url(' . $sFileName . ');'; $ret = ''; $ret .= '<div class="thumbnail_block" style="float:' . $float . '; ">'; $ret .= "<a href=\"{$site['url']}upload_media.php\">"; $ret .= '<img src="' . getTemplateIcon('spacer.gif') . '" style="' . $style . '" alt="' . process_line_output($aFileName['med_title']) . '" />'; $ret .= '</a>'; $ret .= '</div>'; return $ret; }