示例#1
0
/**
 * 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 . 'profiles.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'tags.inc.php';
check_logged();
$iLoggedID = getLoggedId();
if (isset($_GET['action']) && $_GET['action'] == 'get_prof_status_mess') {
    if ($iLoggedID) {
        bx_import('BxDolUserStatusView');
        header('Content-Type: text/html; charset=utf-8');
        echo BxDolUserStatusView::getStatusPageLight($iLoggedID);
    }
    exit;
}
$sAction = bx_get('action');
if ($sAction !== false && $sAction == 'get_prof_comment_block') {
    $iProfileID = (int) bx_get('id');
    if ($iProfileID) {
        $sCloseC = _t('_Close');
        bx_import('BxTemplCmtsView');
        $oCmtsView = new BxTemplCmtsView('profile', $iProfileID);
        if (!$oCmtsView->isEnabled()) {
            exit;
        }
        $sCloseImg = getTemplateImage('close.gif');
        $sCaptionItem = <<<BLAH