Exemplo n.º 1
0
 function updateStatusMessage($sUser, $sPwd, $sStatusMsg)
 {
     if (!($iId = BxDolXMLRPCUtil::checkLogin($sUser, $sPwd))) {
         return new xmlrpcresp(new xmlrpcval(array('error' => new xmlrpcval(1, "int")), "struct"));
     }
     ob_start();
     $_GET['action'] = '1';
     require_once BX_DIRECTORY_PATH_ROOT . 'list_pop.php';
     ob_end_clean();
     $_POST['status_message'] = $sStatusMsg;
     ActionChangeStatusMessage($iId);
     return new xmlrpcresp(new xmlrpcval($iRet, "int"));
 }
Exemplo n.º 2
0
        $sPageCaption = _t('_Spam report');
        $GLOBALS['_page']['header'] = $sPageCaption;
        $GLOBALS['_page_cont'][$_ni]['page_main_code'] = DesignBoxContent($sPageCaption, PageListSpam($iProfileId, $mTarget), $oTemplConfig->PageListPop_db_num);
        break;
        //changes profile status
    //changes profile status
    case 'change_status':
        if ($bAjxMod && isset($_POST['status'])) {
            echo ActionChangeStatus($iProfileId, $_POST['status']);
        }
        return;
        //change profile's status message
    //change profile's status message
    case 'change_status_message':
        if ($bAjxMod) {
            echo ActionChangeStatusMessage();
        }
        return;
    default:
        if ($bAjxMod and $iTargetId) {
            $mixedRes = PageListControl($sAction, $iProfileId, $iTargetId);
            if ($mixedRes) {
                echo $mixedRes . genAjaxyPopupJS($iTargetId);
                exit;
            }
        }
        $GLOBALS['_page']['header'] = _t('_Error occured');
        $GLOBALS['_page_cont'][$GLOBALS['_ni']]['page_main_code'] = _t('_Error occured');
        break;
}
//--