-
Notifications
You must be signed in to change notification settings - Fork 138
/
short_profile_info.php
38 lines (29 loc) · 1.23 KB
/
short_profile_info.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
* CC-BY License - http://creativecommons.org/licenses/by/3.0/
*/
require_once('inc/header.inc.php');
require_once(BX_DIRECTORY_PATH_INC . 'design.inc.php');
require_once(BX_DIRECTORY_PATH_INC . 'params.inc.php');
require_once(BX_DIRECTORY_PATH_INC . 'utils.inc.php');
bx_import('BxDolPrivacy');
bx_import('BxDolUserStatusView');
bx_import('BxDolSubscription');
$iMemberId = getLoggedId();
if (!isset($_GET['ID']) && !(int)$_GET['ID'])
exit;
$iProfId = (int)$_GET['ID'];
$aProfileInfo = getProfileInfo($iProfId);
$sProfLink = '<a href="' . getProfileLink($iProfId) . '">' . getNickName($aProfileInfo['ID']) . '</a> ';
$oUserStatus = new BxDolUserStatusView();
$sUserIcon = $oUserStatus->getStatusIcon($iProfId);
$sUserStatus = $oUserStatus->getStatus($iProfId);
$aUnit = array(
'status_icon' => $sUserIcon,
'profile_status' => _t('_prof_status', $sProfLink, $sUserStatus),
'profile_status_message' => $aProfileInfo['status_message'],
'profile_actions' => $oFunctions->getProfileViewActions($iProfId, true),
);
header('Content-type:text/html;charset=utf-8');
echo $oFunctions->transBox($oSysTemplate->parseHtmlByName('short_profile_info.html', $aUnit) . $sAddon);