コード例 #1
0
ファイル: index.php プロジェクト: swk/bluebox
    ?>
:  </b> <?php 
    echo $message['cid_name'];
    ?>
 &lt;<?php 
    echo $message['cid_number'];
    ?>
&gt;</li>
					<li><b><?php 
    echo Kohana::lang('voicemail.index.time');
    ?>
 : </b><?php 
    echo date('n/j/y h:i a', $message['created_epoch']);
    ?>
 (<?php 
    echo VoicemailManager::prettyDate($message['created_epoch'], true);
    ?>
)</li>
					<li><b><?php 
    echo Kohana::lang('voicemail.index.duration');
    ?>
 : </b><?php 
    echo sprintf("%d:%2.1f", floor($message['message_len'] / 60), $message['message_len'] % 60);
    ?>
 (m:s)</li>
					<li><b><?php 
    echo Kohana::lang('voicemail.index.label');
    ?>
 : </b><?php 
    echo ucwords($message['in_folder']);
    ?>
コード例 #2
0
ファイル: voicemailviewer.php プロジェクト: swk/bluebox
 /**
  *
  *  blast
  * 	<user>@<domain> <sound_file> [<cid_num>] [<cid_name>]
  *  voicemail_inject is used to add an arbitrary sound file to a users voicemail mailbox.
  */
 public function blast()
 {
     $account_id = users::getAttr('account_id');
     $domain = VoicemailManager::getDomain($account_id);
     $this->view->mailboxes = VoicemailManager::getAllMailboxes();
     if ($this->input->post()) {
         if ($this->input->post('file_id') == 0) {
             message::set('Select a file to to use in the voicemail message');
         } else {
             foreach ($this->input->post('blast') as $mailbox) {
                 echo VoicemailManager::blast($mailbox, $domain, Media::getMediaFile($this->input->post('file_id')));
             }
         }
     }
 }