Beispiel #1
0
         $sErrorMessage = '';
         //check message's options
         if (!$sMessageSubject) {
             $sErrorMessage = '_Mailbox title empty';
         }
         if (!$sMessageBody) {
             $sErrorMessage = '_Mailbox description empty';
         }
         if (!$vRecipientID) {
             $sErrorMessage = '_Mailbox recipient empty';
         }
         $sOutputHtml = !$sErrorMessage ? $oMailBox->sendMessage($sMessageSubject, $sMessageBody, $vRecipientID, $aComposeSettings) : _t_err($sErrorMessage);
         break;
     case 'auto_complete':
         if ($sAutoCompleteQ) {
             $sOutputHtml = $oMailBox->getAutoCompleteList($sAutoCompleteQ);
         }
         break;
     case 'get_thumbnail':
         $iRecipientID = getId($vRecipientID);
         if ($iRecipientID) {
             $sOutputHtml = get_member_thumbnail($iRecipientID, 'none');
         }
         break;
 }
 // try to define the callback function name ;
 if (isset($_GET['callback_function']) and in_array($_GET['callback_function'], $aCallbackFunctions)) {
     if (method_exists($oMailBox, $_GET['callback_function'])) {
         $sOutputHtml = $oMailBox->{$_GET['callback_function']}();
     }
 }