' . DesignBoxContent ( _t( '_My Photos' ), $sRet, 1) . '
';
//return $sRet;
}
function getBlockCode_Contacts () {
$sSiteUrl = $GLOBALS['site']['url'];
$free_mode = getParam("free_mode") == "on" ? 1 : 0;
$iChMemberID = 0;
$iChMemberID = ($this->aMemberInfo['ID'] > 0) ? $this->aMemberInfo['ID'] : $this->iMember;
if ($iChMemberID == 0) {
return MsgBox(_t('_Sorry, nothing found'));
}
/*if ($_REQUEST['debug']=='1') {
}*/
// new messages attention
$new_mess_arr = db_arr( "SELECT ID FROM `Messages` WHERE Recipient = {$iChMemberID} AND New = '1' ORDER BY Date DESC LIMIT 1" );
if ( $new_mess_arr )
$mess = $new_mess_arr[ID];
// new kisses attention
$new_kiss_arr = db_arr( "SELECT ID FROM `VKisses` WHERE Member = {$iChMemberID} AND New = '1' LIMIT 1" );
if ( $new_kiss_arr )
$vkiss = 1;
// new friends attention
$new_friend_arr = db_arr( "SELECT `ID` FROM `FriendList` WHERE `Profile` = {$iChMemberID} AND `Check` = '0' LIMIT 1" );
if ( $new_friend_arr )
$frd = 1;
// request for private photo
$new_ppr_arr = db_arr( "SELECT IDTo FROM `PrivPhotosRequests` WHERE `IDTo` = {$iChMemberID} AND `Grant` = '0' LIMIT 1" );
if ( $new_ppr_arr )
$ppr = 1;
ob_start();
?>
echo _t( "_Messages" ); ?>: |
if ( $mess )
echo _t( "_ATT_MESSAGE", $mess, $sSiteUrl );
else
echo _t( "_ATT_MESSAGE_NONE", $sSiteUrl );?>
|
echo _t( "_Kisses" ); ?>: |
if ( $vkiss )
echo _t( "_ATT_VKISS", $sSiteUrl );
else
echo _t( "_ATT_VKISS_NONE", $sSiteUrl );?>
|
echo _t( "_Friends" ); ?>: |
if ( $frd )
echo _t( "_ATT_FRIEND", $sSiteUrl );
else
echo _t( "_ATT_FRIEND_NONE", $sSiteUrl );?>
|
echo _t( "_Profile status" ); ?>: |
echo _t( "__{$this->aMemberInfo['Status']}" ); ?>
switch ( $this->aMemberInfo['Status'] )
{
case 'Unconfirmed': echo _t( "_ATT_UNCONFIRMED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break;
case 'Approval': echo _t( "_ATT_APPROVAL", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break;
case 'Active': echo _t( "_ATT_ACTIVE", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break;
case 'Rejected': echo _t( "_ATT_REJECTED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break;
case 'Suspended': echo _t( "_ATT_SUSPENDED", $oTemplConfig -> popUpWindowWidth, $oTemplConfig -> popUpWindowHeight ); break;
}
?>
|
echo _t( "_Membership2" ); ?>: |
echo GetMembershipStatus($this->aMemberInfo['ID']);
?>
|
echo _t( "_Last login" ); ?>: |
if ( !$this->aMemberInfo['DateLastLogin'] || $this->aMemberInfo['DateLastLogin'] == "0000-00-00 00:00:00" )
$this->aMemberInfo['DateLastLogin'] = 'never';
echo $this->aMemberInfo['DateLastLogin'];
?>
|
if ( 0 == $free_mode && 1 == $en_aff )
{
echo "
" . _t( "_Affiliate Program" ) . ": |
";
$ar = db_arr ( "SELECT aff_num FROM Profiles WHERE ID='{$this->aMemberInfo['ID']}' LIMIT 1" );
$res = db_res ( "SELECT * FROM members_as_aff WHERE num_of_mem <= '$ar[0]'" );
$txt = _t( "_Got_members_part_1" ).$ar[0]._t ( "_Got_members_part_2" );
if ( mysql_num_rows( $res ) > 0 )
{
$txt = _t ( "_Congratulation" ).$txt;
$txt .= _t('_Click here to change your membership status');
}
else
{
$txt .= _t ( "_Need_more_members" );
}
echo $txt;
echo " |
";
}
//
echo "
";
$ret = ob_get_contents();
ob_end_clean();
return $ret;
}
function getBlockCode_News () {
global $oTemplConfig;
return printNewsPanel($oTemplConfig->iMaxNewsOnMemberPanel);
}
function getBlockCode_SharePhotos () {
$aMem = array('ID'=>$this->iMember);
$oNew = new BxDolSharedMedia('photo', $this->aConfSite, $this->aConfDir, $aMem);
$aRes = $oNew->getBlockCode_SharedMedia($oNew->iViewer);
return $aRes;
}
function getBlockCode_ShareVideos () {
$aMem = array('ID'=>$this->iMember);
$oNew = new BxDolSharedMedia('video', $this->aConfSite, $this->aConfDir, $aMem);
$aRes = $oNew->getBlockCode_SharedMedia($oNew->iViewer);
return $aRes;
}
function getBlockCode_ShareMusic () {
$aMem = array('ID'=>$this->iMember, 'Password'=>$this->aMemberInfo['Password']);
$oNew = new BxDolSharedMedia('music', $this->aConfSite, $this->aConfDir, $aMem);
$aRes = $oNew->getBlockCode_SharedMedia($oNew->iViewer);
return $aRes;
}
function getBlockCode_Friends () {
global $site;
$sFriendList = ShowFriendList( $this -> iMember);
$iFriendNums = getFriendNumber( $this -> iMember );
if( $sFriendList )
{
ob_start();
?>